Guides
How to make a scanned PDF searchable with OCR
A scanned PDF is a picture of text, so you can't search it or copy from it. OCR fixes that. Here's how it works, how to get accurate results, and how to do it without uploading the file.
MD Rakib Shekh · Founder & Lead Architect
· 6 min read

On this page
You search a PDF for a word you can see on the page, and the search finds nothing. You try to copy a paragraph, and the whole page gets selected like a photo. That's a scanned PDF: a picture of a page with no real text inside.
OCR turns that picture back into text you can search, copy and reuse. Here's how it works, how to get good results, and how to do it without sending the document anywhere.
What OCR does
OCR stands for optical character recognition. Software looks at the shapes on the page, works out which letters they are, and writes down the text it finds.
The most useful result is a searchable PDF. It keeps every page of the scan exactly as it looked and adds an invisible layer of text on top. You still see the original page, but now search, select and copy work.
Is your PDF a scan? A quick test
- Try to select one word. If you can't, or the whole page highlights as one block, it's probably a scan.
- Search for a word you can see. If nothing is found, there's no text layer.
- Zoom in a lot. Scanned text turns blurry or blocky. Real text stays sharp at any zoom.
How to make a scanned PDF searchable with Pagestro
OCR PDF reads your pages in your browser. The first time you use it, your browser downloads the recognition engine and language data. After that, your pages are read on your own device. The document itself is never uploaded.
Step 1. Open OCR PDF and add the scan. You can add a PDF, or an image in JPG, PNG, WebP, BMP or TIFF format, up to 100 MB.
Step 2. Let recognition run. Pages that already contain real text skip this step, so files that mix typed and scanned pages go faster.
Step 3. Check the result. You can switch between the scan, the recognized text, tables and Markdown, and the Layout view shows every block where it sat on the page.
Step 4. If the document isn't in English, pick its language and run it again with one click.
Step 5. Choose Searchable PDF and download.
The same run can also give you Word, Excel, CSV, Markdown, HTML, JSON or plain text, or all of them in one ZIP. If you plan to edit the text, Word is usually the better choice; our guide on converting a PDF to Word explains the trade-offs. For tables, Excel or CSV keeps the rows and columns, and our guide on getting tables out of a PDF into Excel has more tips.
| Output | Use it for |
|---|---|
| Searchable PDF | Keeping the original look while making it searchable |
| Word | Editing the text and headings |
| Excel or CSV | Working with numbers from tables |
| Markdown or HTML | Moving the text into a website, wiki or notes app |
| JSON | Developers: every line with its position and confidence |
| Plain text | Copying the words into anything else |
Which languages can it read?
Recognition starts in English. You can switch to:
- Multilingual European, which reads French, German, Spanish, Italian and Portuguese together with English
- Chinese (Simplified)
- Japanese
- Korean
Other languages aren't supported. The hidden text layer in the searchable PDF uses Noto fonts, so accented letters and Chinese, Japanese and Korean text can be searched and copied.
How to get accurate results
OCR is only as good as the image it reads, and most problems start before recognition does.
Scan at a decent resolution. If your scanner lets you choose, pick a higher setting rather than the lowest one. Tiny, fuzzy letters are the most common cause of mistakes.
Keep the page straight. Tilted lines are harder to read. Line the paper up with the edge of the scanner glass.
Use even light for photos. Shadows across the page and glare from a flash hide letters. Our guide on scanning documents with your phone covers this, and Scan to PDF can straighten a photo and even out the paper before you run OCR.
Pick the right language. Choose the document's language before you rely on the result, especially for accented letters.
Expect less from handwriting. Pagestro marks handwriting as handwriting and reads it on a best-effort basis. Printed text gives much better results.
Know the other limits. Formulas are kept as plain text, not turned into math notation. Decorative fonts, low-resolution scans and skewed pages all lower accuracy.
Layout and tables
Good OCR is about more than single letters. Pagestro works out columns, boxes, tables, label and value pairs (like "Invoice #" and its number) and the reading order from where things sit on the page. Multi-column pages are split so the text reads in the right order, and detected tables export to Excel or CSV with their rows and columns intact.
Why private OCR matters
The documents people run through OCR are often the sensitive ones: signed contracts, ID cards, medical letters, bank statements. Cloud OCR services need a copy of the scan on their servers to read it. Here the recognition engine runs in your browser instead, so the scan stays on your device from start to finish.
When another approach is better
- A whole archive. For thousands of pages, desktop software or a scanner that does its own OCR can process big batches with less hands-on time.
- Mostly handwriting. OCR built for print struggles with handwriting. For a short note, retyping may be quicker.
- The file is too big to send afterwards. OCR doesn't shrink the scan. Run the searchable PDF through Compress PDF if you need to email it.
Frequently asked questions
Does OCR change how my PDF looks?
No. A searchable PDF keeps every original page as it was and adds invisible text on top.
Is my document uploaded for OCR?
No. The first time, your browser downloads the recognition engine and language data, but your document never leaves your device.
Can OCR read handwriting?
Only on a best-effort basis. Pagestro marks handwriting as handwriting, and printed text is much more accurate.
Can I run OCR on a photo instead of a PDF?
Yes. JPG, PNG, WebP, BMP and TIFF images work as well as PDFs.
Which languages are supported?
English, Multilingual European (French, German, Spanish, Italian and Portuguese with English), Chinese (Simplified), Japanese and Korean.
- OCR
- Scanned PDF
- Searchable PDF
- Privacy

Written by
MD Rakib Shekh
Founder & Lead Architect
Founder of Pagestro & UIXport. Specializing in WebAssembly browser tools, PDF processing, and high-performance design workflows.





