How to get text from a scanned PDF
Is your PDF scanned or digital?
A quick test: open the PDF and try to select a word with the mouse. If you can highlight individual words, it already has a text layer – use PDF to Text, which is instant and exact. If clicking selects the whole page as one picture, or nothing at all, the PDF is a scan and this OCR tool is the right choice. Some PDFs are mixed: typed pages with scanned signatures or attachments. OCR works on those too, because every page is treated as an image.
How it works
PDF.js draws each selected page onto a canvas at the resolution you choose, exactly as a viewer would display it. The canvas is passed to the Tesseract engine, which finds text lines and reads them with a neural network trained for the chosen language. The text of each page is added in page order, with an optional marker so you can find your place in long documents.
Choosing a resolution
| Setting | Best for | Speed |
|---|---|---|
| 200 DPI | Large, clear print such as letters and reports | Fastest |
| 300 DPI | Most documents – the usual standard for OCR | Moderate |
| 400 DPI | Small print, footnotes, dense forms and contracts | Slowest; uses more memory |
Higher resolution only helps up to a point: if the original scan was made at 150 DPI, rendering it at 400 DPI cannot add detail that is not there.
Accuracy: what to expect
| Source | What to expect | Notes |
|---|---|---|
| Clean scan or screenshot of printed text | Very good – most words correct | Best case. Check numbers and names. |
| Phone photo of a flat page in good light | Good | Accuracy falls with blur, shadow and tilt. |
| Faded receipt or thermal paper | Fair | Use Improve contrast. Totals and dates must be checked. |
| Tables, forms and multi-column layouts | Text is read, structure is not kept | Columns may be read across instead of down. |
| Decorative fonts, logos, text on photos | Poor to fair | The model is trained mainly on document text. |
| Handwriting | Usually poor | The engine is designed for printed text, not handwriting. |
Tips for better results
- Resolution matters most. Body text should be at least 20–30 pixels tall in the image. A phone photo of a whole A4 page is usually enough; a cropped thumbnail is not.
- Keep the page flat and square. Curved book pages, strong perspective and rotation beyond a few degrees reduce accuracy. Rescan crooked pages if you can.
- Even light, no glare. Shadows across the page and reflections on glossy paper hide characters. Daylight from a window works better than a flash.
- Pick the right language. The engine uses a language model to decide between similar shapes, so English data will garble French accents, and Latin-script data cannot read Arabic or Urdu at all.
- Try “Improve contrast” for faded receipts, pencil, coloured paper and low-contrast screenshots. Leave it off for clean, high-contrast scans, where it makes no difference.
How long does it take?
Speed depends on your device and the amount of text. As a rough guide, a modern laptop reads a dense A4 page at 300 DPI in a few seconds; a phone may take several times longer. The progress bar shows which page is being read. For documents of hundreds of pages, process them in ranges such as 1-50, 51-100 and so on.
Privacy and how your files are handled
The recognition engine is Tesseract, an open-source OCR engine (Apache 2.0 licence), compiled to WebAssembly by the tesseract.js project and served from docelora.com rather than a third-party CDN. When you select the button, your browser loads the engine, then the trained data for the language you chose. Your images and PDFs are read into the page’s memory and recognised there. Nothing you choose is sent to Docelora, and no account is needed.
The engine and language files are stored in your browser’s own storage (IndexedDB) so the next run starts faster. They contain no information about your documents. You can remove them by clearing site data for docelora.com in your browser settings.
Limitations
Up to 200 pages can be processed per run. Encrypted PDFs cannot be opened. The output is plain text: tables, columns, headers and footers are read as lines of text without their structure. Handwriting, stamps and signatures are not recognised reliably. If you need a PDF that stays visually identical but becomes searchable, use OCR PDF instead.
Troubleshooting
- “Password-protected” – remove the password with the owner’s permission, then try again.
- Pages come out empty – the page may be blank, very faint or in a different language; try Improve contrast and the correct language.
- The browser tab crashes on long files – choose a smaller page range or 200 DPI.
- Text from a digital PDF looks slightly wrong – it did not need OCR; use PDF to Text for an exact copy.
Related tools
Frequently asked questions
How do I convert a scanned PDF to text?
Choose the PDF, pick the language and pages, then press Read text. When all pages are done, copy the text or download it as a TXT file.
Why did PDF to Text give me nothing?
Because the pages of a scanned PDF are images. There is no stored text to extract, so OCR has to read the pictures of the letters.
Can I OCR only some pages?
Yes. Choose Selected pages and enter numbers or ranges, for example 1-3, 7, 10-.
What resolution should I choose?
300 DPI suits most documents. Use 400 DPI for very small print and 200 DPI to speed up large, clear text.
Is there a page limit?
Up to 200 pages per run, to keep memory use reasonable in a browser. Process longer files in several ranges.
Can it read PDFs that mix typed and scanned pages?
Yes. Every selected page is rendered and recognised, whether or not it already contains text.
Will the output keep page breaks?
Yes. Pages are separated by a blank line, and the optional markers show where each page begins.
Can I make the PDF itself searchable instead?
Yes – use OCR PDF, which keeps the pages as they look and adds an invisible text layer so you can search and select text.
Does it work with password-protected PDFs?
No. Encrypted files must be unlocked first, and only if you are entitled to do so.
Is my file uploaded to a server?
No. The file is opened and recognised by code running in your browser tab. Docelora’s server delivers the page, the OCR engine and the language data, but it does not receive your file or the recognised text.
Why is the first run slower than later ones?
The first time you use a language, your browser downloads the OCR engine (about 3–4 MB) and the language data (1–3 MB for most languages). These are cached, so later runs start almost immediately.
Which languages are supported?
Twenty: English, Arabic, Bengali, Chinese (Simplified), Chinese (Traditional), Dutch, French, German, Hindi, Indonesian, Italian, Japanese, Korean, Polish, Portuguese, Russian, Spanish, Turkish, Urdu, Vietnamese. You can combine any two for mixed-language documents.
Should I select two languages?
Only when the document really contains both, for example English with Urdu, or French with Arabic. Adding a language that is not present makes recognition slower and can introduce stray characters.
Is the result 100% accurate?
No OCR engine is. Clean printed text usually comes out with few errors, while photos, faded paper and unusual fonts produce more. Always check names, numbers, dates and amounts against the original.
What does “average engine confidence” mean?
It is the engine’s own estimate of how sure it is about the words it read, averaged across pages or images. It is a useful warning sign when it is low, but a high figure does not prove the text is correct.
Can it read handwriting?
Not reliably. Tesseract is trained on printed text. Neat block capitals sometimes work, but joined-up handwriting usually produces poor results.
Is the layout or formatting kept?
Line breaks and paragraph gaps are kept where the engine detects them. Fonts, bold, colours, tables and columns are not reproduced; the output is plain text.
Does it work on a phone?
Yes, in current versions of Safari, Chrome, Samsung Internet, Firefox and Edge. Recognition uses the processor heavily, so it is slower than on a computer and long jobs drain the battery faster.
Is it free?
Yes. There is no account, no watermark and no limit on how many times you use it.
Why do I see random symbols in the result?
Usually the wrong language is selected, the image is too small or blurred, or the area contains pictures or patterns that the engine tried to read as text. Crop to the text and try again.
Can I use it offline?
Once the page, engine and language data have loaded and been cached, recognition itself does not need the network. You still need to open the page while online.
Which browsers are supported?
Current versions of Chrome, Edge, Firefox and Safari on Windows, macOS, Linux, Android and iOS. WebAssembly and JavaScript must be enabled.
Who makes the OCR engine?
Tesseract is an open-source engine originally developed at HP and later maintained with support from Google and the open-source community. Docelora uses the tesseract.js WebAssembly build and does not claim to have written the engine.
Last reviewed: 7 November 2026.