July 29, 2026 6 min read
How to Extract Text from a Scanned Document (OCR Explained)
You've got a photo of a printed page — a receipt, a page from a book, a scanned form — and you need the actual text out of it, not just a picture of it. That's what OCR (Optical Character Recognition) does: it looks at the shapes of letters in an image and converts them into real, selectable, searchable text.
What makes OCR accurate or inaccurate
OCR engines are pattern-matching against known letterforms, so a few things make a big difference to accuracy:
- Printed text works far better than handwriting — consistent fonts are what OCR was trained on.
- Straight, well-lit photos beat angled or shadowy ones — a skewed photo makes letters look distorted.
- Higher resolution helps — a blurry or very small photo loses the fine detail that distinguishes similar letters (like "rn" versus "m").
- Plain backgrounds beat busy ones — text over a patterned or textured surface confuses the letter-detection step.
Using it
Our OCR tool runs entirely in your browser using an on-device recognition engine — the image never leaves your device. Upload a photo or scan, wait a few seconds while it reads the page, then copy the extracted text or download it as a .txt file.
Getting better results
If the first pass comes out messy, it's almost always a photo-quality issue rather than a tool limitation. Retake the photo straight-on (not at an angle), make sure the page is well and evenly lit with no glare, and crop out anything that isn't the text itself before running it through OCR again.
OCR works on pixels, not meaning
Optical character recognition first has to identify shapes that resemble letters and numbers. That means a clean scan can produce excellent results while a blurry photograph, decorative font, or low-contrast receipt can produce mistakes. OCR should therefore be treated as an extraction step followed by a quick review.
Prepare the image first
Straighten pages, improve lighting, and avoid tiny low-resolution screenshots when possible. Large printed characters with strong contrast are easier to recognize than faint text against a textured background.
Numbers deserve extra checking
OCR mistakes in ordinary prose are annoying; mistakes in account numbers, dates, invoice totals, URLs, and serial numbers can be serious. Compare extracted numbers against the source image before using them in an important workflow.
Scanned PDF versus selectable PDF
If you can already select and copy the text in a PDF, OCR may not be necessary. OCR is most useful when the page is essentially a photograph and there is no real text layer to select.
Try the tool
OCR — Image to Text