PDF to Text with OCR — Extract Text from Any PDF, Even Scans
Extract text from a PDF, and read scanned pages with optional OCR on request. English only, nothing uploaded.
Runs entirely in your browser — nothing you paste is uploaded or stored.
What is pdf to text (ocr)?
This tool gets the text out of a PDF in two stages. First it reads the text that is already stored in the file, which is instant and exact, and shows it page by page. Pages that have no stored text, which is what you get from a scanner or a photographed document, are listed, and a button lets you read them with OCR, short for optical character recognition. OCR draws each page as an image on your device and runs a text-recognition engine over it. Because the recognition engine is a download of roughly seven megabytes, it is never loaded until you press the button, and it is cached by your browser afterwards. Only English is installed. All of it runs in your browser, so the PDF and the text read from it stay on your device. You can copy the result or save it as a .txt file, with or without a line marking each page, and the page reports how confident the recognition engine was so you know how closely to proof-read.
When to use it
- Getting searchable, copyable text out of a scanned contract, receipt or letter that is only a picture.
- Recovering the text of a PDF whose text cannot be selected or copied in your PDF viewer.
- Pulling plain text from a long PDF to search, diff or paste into another tool.
- Checking whether a PDF really has a text layer, or is made of page images, before you rely on it.
How to use this tool
- Drop a PDF onto the tool, or choose one from your device. Any text stored in the file appears straight away.
- If some pages have no stored text, press Run OCR. The first run downloads the recognition engine, then reads each page in turn.
- Tick "Read every page with OCR" if you want recognition on pages that already have text, for example when the stored text is garbled.
- Copy the text or download it as a .txt file. Proof-read numbers and names, using the confidence figure as a guide.
Example
A two-page sample PDF that has selectable text on both pages.
Input
sample-report.pdf, generated by the Load example button.Output
The text of both pages, separated by "--- Page 1 ---" and "--- Page 2 ---" lines, with no OCR needed.Press "Load example" to see the stored-text path. A scanned PDF of your own will offer the OCR button.
Stored text versus OCR
Most PDFs made on a computer carry their text as characters. Reading that is exact and fast, with no guessing, so it is always tried first. A PDF made by scanning paper contains only pictures. Those pages need OCR, which looks at the pixels and decides which letters they are. That is slower and can be wrong, which is why the tool separates the two and tells you which pages needed recognition.
Getting better OCR results
Recognition quality depends mostly on the page picture. The tool draws pages at 200 DPI, which suits normal print. If a scan is already low resolution, drawing it larger does not add detail. Sharp, evenly lit, straight scans of black text on white paper read best. If the result is poor, rescan at a higher resolution or with more contrast, then run it again. For a single photographed image rather than a PDF, the Image to Text tool does the same job.
Privacy and size
Nothing is uploaded. The recognition engine and language data are files on this site’s own domain, fetched once and cached. A long scanned document takes a while, one page at a time, and you can cancel at any point; pages already read are kept.
Frequently asked questions
Is my PDF uploaded for OCR?
No. The pages are drawn and recognised inside your browser. The recognition engine and its English language data are served from this site and cached by your browser, and your PDF and the text read from it are never sent anywhere.
Why is OCR not run automatically?
The recognition engine is a download of about seven megabytes and reading a page takes noticeable time, so it only runs when you ask. Pages that already contain text never need it, which is why the tool reads the stored text first and tells you exactly which pages are missing it.
Which languages does OCR support?
English only. Each extra language adds several megabytes of data, so none are installed. Text in other languages or scripts will be read badly, and numbers and Latin letters inside it are the most reliable part.
How accurate is the recognised text?
It depends on the scan. Clean, sharp, horizontal printed text is usually read very well, while small print, skewed pages, low contrast, handwriting and unusual fonts are often wrong. The confidence figure is the engine's own average and is only a guide, so check amounts, dates and names against the original.
What does the Read every page option do?
It runs OCR on all pages, ignoring any stored text. Use it when the stored text of a PDF is wrong, for example when a scan was run through poor software that left a damaged hidden text layer.
Why does it say the PDF is password-protected?
A password-protected file cannot be read by the browser's PDF engine. Remove the password with Unlock PDF first, using the password you know, then use the unlocked copy here.
Find these tools useful? A coffee helps keep them free and ad-light.
Buy me a coffee