Skip to content

OCR PDF: make a scanned PDF searchable

A PDF that came out of a scanner or a phone camera is just a picture of each page: you cannot search for a word, select a sentence or copy a figure. This tool reads every page with OCR (optical character recognition) and gives you back the same PDF, with the same pages, but with the text hidden underneath, ready to search with Ctrl+F and copy. You can also download just the text as .txt. It all happens in your browser: the PDF never leaves your device.

Works anywhere in the world, wherever you are.

Language of the text

Add a second language only if the text really mixes both: the engine gets slower and mixes up more letters. The first time, 0.8 MB of language data is downloaded from this same site.

Leave blank for all (up to 100 per run). Each page takes a few seconds on a computer and longer on a phone.

Options

Clean-up only changes the copy the engine reads, never the pages of your PDF. Turn it off if the scan has strong shadows or a coloured background. Skipping pages with text avoids doubling it in searches; their text still goes into the .txt. A page that reads badly is read again turned 90°, 180° and 270°, and the best reading is kept (slower for those pages).

Uses Tesseract's classic engine (legacy mode), which compares the shape of each letter with patterns and dictionaries. It is less accurate than the neural-network OCR of cloud services, but it works offline once loaded, with no artificial intelligence and no upload. Accuracy depends mostly on the quality of the scan: it does not read handwriting.

Choose a scanned PDF

—

The searchable PDF and the text show up here when reading is done.

The PDF never leaves your device: pages are drawn and read in your browser, and the new PDF is put together right there. Nothing is uploaded and nothing is saved. Up to 100 MB and 100 pages per run. The first time, the engine and the language (about 3 to 5 MB) are downloaded from this same site.

About this calculator

How to use it

Choose the PDF, the language of the text and, if you like, the pages (for example “1-5, 8”; blank for all). If the document mixes two languages, such as an English contract with Spanish clauses, add a second language. Press “Recognise text” and you will see the progress page by page; you can stop at any time and keep what has been read so far.

When it finishes you get two things: “Download searchable PDF”, which saves the file with “-ocr” at the end of its name, and a box with the text of every page, which you can correct, copy or download as .txt. If some pages already had text (because the PDF is digital or was OCR'd before), those pages are skipped so the text is not doubled, and their text still goes into the .txt.

How it works inside

Each page is drawn at 300 DPI, the resolution the engine is tuned for, with pdf.js, Mozilla's PDF reader. That copy is turned to grayscale, its contrast is stretched and it is made black and white with Otsu's threshold, the way a scanner would; your original PDF is not touched. Then Tesseract's classic engine finds the lines and words and, for each one, gives its text and the rectangle it covers.

With those rectangles, each word is written onto the original page in the “invisible text” mode the PDF standard defines (text rendering mode 3: the text is not painted, but it is there). It sits on the baseline of its line and is stretched to the exact width of the word in the picture, so searching or selecting highlights the word you see. A real space is written between words, so a copied sentence keeps its spaces.

The font is the standard Helvetica that every PDF reader has, so no font is embedded and the file barely grows. Every letter of the five languages (ñ, ç, ã, õ, ß, œ, umlauts and accents) fits in its character set. If the engine returned a symbol that does not fit, its closest equivalent is written (an “fi” ligature as “f” + “i”, an “ő” as “o”) or it is left out of the PDF only; the .txt keeps it.

Why a classic engine, and how accurate to expect it to be

We use Tesseract's legacy mode, which recognises each letter by comparing its shape with patterns and checks the words against a dictionary for the language. It uses no neural networks and no artificial intelligence, works offline once loaded and never needs to send your pages to a server. The trade-off: it is less accurate than the neural-network OCR of cloud services.

Accuracy depends mostly on the scan. A printed document scanned straight at 300 DPI without shadows usually reads almost entirely; a tilted, blurry or dim photo gives quite a few mistakes, and handwriting is not read. The summary shows the engine's own mean confidence (not a measured accuracy) and warns you when the read is poor. Remember that a misread word will not come up in a search.

Example: a 12-page scanned lease

You choose the PDF, “English” as the language and leave the pages blank. The engine and dictionary are downloaded once (about 3 MB) and reading starts: each page takes a few seconds on a computer. At the end the summary says, for example, 12 pages read with OCR and the mean confidence.

You open the “-ocr.pdf” in your usual reader, press Ctrl+F, type “deposit” and it takes you to every place it appears, highlighted over the picture. You can select clause 7 and paste it into an email. If you need the text to edit it, the .txt has all of it, with a “=== Page N ===” line before each page.

Your PDF stays with you

The file is opened, drawn and read in your browser, and the new PDF is put together right there with pdf-lib. It is never uploaded to a server, the file name and its text are not in the Share link or in the statistics, and nothing is saved: close the page and it is all gone. The only download is the OCR engine and the language, from this same site and only when you press “Recognise text”.

If the PDF has a password, you are asked for it and it only works if you know it. A PDF protected with a password or restrictions cannot be rewritten without breaking it: in that case you still get the .txt, and we point you to Unlock PDF to remove the protection first.

Important limitations

  • Up to 100 MB per file and 100 pages per run; for longer documents, read them in ranges (1-100, 101-200…) and join them afterwards with Merge PDF.
  • Reads English, Spanish, Portuguese, French and German, one or two at a time. Other alphabets, handwriting, formulas and very decorative text are not recognised.
  • This is classic OCR: it makes more mistakes than neural-network OCR, especially with tilted, blurry or shadowed scans. Always check figures, names and dates.
  • Very large pages (bigger than A3) are read at a little under 300 DPI so a phone does not run out of memory. A page scanned sideways or upside down is caught because it reads badly, and is read again turned (slower); text running vertically within an upright page is not read.
  • A searchable PDF cannot be made from a file protected with a password or restrictions; the protection has to be removed first (with the password).

Frequently asked questions

No. The PDF is opened, drawn and read inside your browser, and the searchable PDF is made right there. Only the OCR engine and the language dictionary are downloaded, from this same site; the file and its text never leave your device.

No. The picture of each page stays exactly the same and is not recompressed: invisible text is only added on top, at the position of each word. That is why the file barely grows and prints just as before.

No. It uses Tesseract's legacy mode, which compares the shape of letters with patterns and checks words against dictionaries. Tesseract's modern mode, based on a neural network, is not used and its trained network is not even downloaded. That makes it somewhat less accurate than cloud OCR, but it works offline and sends nothing.

This tool does not make a Word file, but it gives you the text of every page to copy or download as .txt, and you can paste it into Word or Google Docs. The layout (columns, tables, bold) is not kept.

Because the engine misread it (one wrong letter is enough) or did not recognise it. It happens more with blurry scans, small print or dirty backgrounds. Try a better scan, the clean-up on or off, or check that the language is right.

The first time, the engine and language have to be downloaded, a few seconds. After that, each page takes a few seconds on a computer and a little longer on a phone; a 50-page document can take several minutes. You can stop and keep the pages already read.

This calculation runs in your browser and is never sent to a server. Your last values may be saved on your device only, for convenience. Results are estimates and are not financial, tax, accounting or legal advice.