How to extract text from scanned documents and images
Prepare an image so OCR can read it, choose the right language, and correct the characters that recognition always gets wrong.
Published: 26 November 2026Updated: 26 November 20263 min readGuides are written in English.
Optical character recognition turns a picture of text into text you can search, quote and edit. It is also the step where people most often conclude that OCR "does not work" — usually because the input was too small, too crooked, or in the wrong language.
Recognition quality is decided mostly before the recogniser runs. This guide covers preparation, language selection, the errors to expect, and the correction pass that every OCR result needs.
Prepare the image first
- Resolution. Aim for roughly 300 DPI at the size of the original page. A phone photo of an A4 page at arm's length is usually enough; a screenshot of a zoomed-out page is not.
- Straighten. A tilt of two or three degrees costs more accuracy than most people expect. Image Deskew measures the text angle from the ink and rotates the image back.
- Crop to the text. Margins, desk edges and background clutter give the recogniser more to reject.
- Even light. Shadows across a page create false strokes; glare removes characters entirely.
- One column where possible. Two columns on one page interleave into nonsense.
Choose the language deliberately
Every recogniser loads a model per script, and the model decides which characters are plausible. Choosing English for a Korean page produces Latin letters that look like the shapes on the page — output that is fluent-looking and completely wrong.
- Use a combined pack such as English + Korean when a page mixes scripts (common on business cards and invoices).
- A wrong-language pass is worse than no pass: it wastes the correction effort because every word needs fixing.
- Language data is downloaded once on first use and cached, so the first run is slower than later ones.
Run it, then correct it
With Image to Text the recognised text appears in an editable box. Treat that box as a draft, not a result. The corrections that matter most are the ones that change meaning:
| Confusion | Example | Why it matters |
|---|---|---|
| O / 0 | 2O26 → 2026 | Dates and account numbers |
| l / 1 / I | l23 → 123 | Quantities, IDs |
| rn / m | rnodern → modern | Searchability |
| 5 / S | S00 → 500 | Amounts |
| Missing spaces | thetotal → the total | Readability and search |
Read the output against the image once, line by line, for any document where a number matters. For long documents, check every figure and spot-check prose.
Multi-page documents
A scanned PDF is a stack of images. PDF to Excel can run OCR over its pages when the document has no text layer, and keeps the recognised text tied to the page it came from, so a mistake can be traced back. Recognise the pages you need rather than a 200-page archive — accuracy per page drops when you stop checking.
What OCR cannot do
- Handwriting. Printed-text models fail on cursive; expect unusable output.
- Very low resolution. Below roughly 150 DPI characters lose the detail that distinguishes them.
- Stamps, seals and overlays. Text printed over an image or another stamp is usually lost.
- Formulas and tables. Symbols are not in the character set and columns are not structure.
- Languages without the right pack. Install or select the correct model first.
Related: converting PDF tables to Excel, turning business cards into a contact list.