OCR (optical character recognition) is software that looks at an image of a page, works out which shapes are letters and numbers, and turns them into real text you can search, copy and edit. If you cannot highlight or search the words in a PDF, it is almost certainly a scanned image, and OCR is how you turn that PDF into text. Accuracy depends mostly on the scan: a clean, straight page at around 300 dpi gives far better results than a skewed phone photo taken in poor light.
Scanned PDFs and text PDFs
Two PDFs can look identical on screen and be completely different inside.
- A text PDF is usually created by software, for example by saving a Word document, or an invoice from your accounting system, as a PDF. The words are stored as text, so you can search, select and copy them.
- A scanned PDF is a picture of each page wrapped in a PDF file. To a computer, it is just pixels.
To tell them apart, press Ctrl+F (Cmd+F on a Mac) and search for a word you can see. If nothing is found, or you cannot highlight a single line, the page is an image.
This matters for more than convenience. GOV.UK's guidance on accessible documents warns that people cannot search the content of scanned documents and screen readers will not read them, and it recommends converting scanned text with OCR.
If your PDF already contains text, you do not need OCR at all. The PDF to text extractor pulls the existing text out directly, which is quicker and exact.
How OCR works
You do not need the technical detail, but a rough picture helps you understand why some scans work and others do not.
- Clean-up. The image is converted to dark text on a light background. Shadows, specks and a tilted page make this step harder.
- Layout analysis. The software finds blocks of text, then lines, then words.
- Recognition. It identifies the characters. Modern engines read a whole line at a time and use the surrounding letters as context.
- Output. You get plain text, or in some tools a hidden text layer behind the page image, so the PDF looks the same but becomes searchable.
OCR can only read what the scan shows clearly, so most of the work happens before you press the button.
About Tesseract
Many OCR tools, including Desirly's, are built on Tesseract, an open-source OCR engine released under the Apache 2.0 licence. At the time of writing (October 2026), its developers say it can recognise more than 100 languages, and since version 4 it has included a neural network engine focused on recognising whole lines of text. Desirly's OCR tool uses Tesseract to recognise English text in scanned pages and images, and it runs in your browser, so your documents are not uploaded.
How to get accurate OCR results
The Tesseract documentation is refreshingly practical about what helps. Before you scan or photograph a document:
- Use at least 300 dpi. Tesseract's documentation says it works best on images of at least 300 dpi. Lower resolutions make small text harder to recognise.
- Keep pages straight. The documentation notes that line detection gets significantly worse when a page is too skewed. Line the paper up against the scanner edge, or straighten photos before running OCR.
- Get even contrast. Pages with unevenly dark backgrounds cause problems when the image is converted to black and white. Avoid shadows, faded copies and coloured paper where you can.
- Crop the edges. Dark scanner borders can be mistaken for characters, so crop to the page with a small margin.
- Flatten the paper. Curved pages near a book's spine distort the lines.
- Photographing with a phone? Lay the page flat, shoot from directly above in good daylight, and fill the frame with the page.
Know the limits
- Handwriting. Tesseract's own FAQ says it is designed for printed text, so handwritten notes usually come out poorly.
- Codes and numbers. The documentation explains that Tesseract is tuned for ordinary sentences of words, so part numbers, postcodes and reference codes are more error-prone than normal prose.
- Complex layouts. Multi-column pages, tables and text over pictures can come out in the wrong order.
- Language. Desirly's OCR tool supports English. Text in other languages will not be recognised reliably.
Common OCR mistakes to check for
Even a good scan produces some errors. These are the classic ones:
| On the page | What OCR may produce |
|---|---|
| 0 (zero) | O (capital letter) |
| 1 (one) | l (lower-case L) or I |
| m | rn |
| 5 | S |
| £12.50 | E12.50 or £12,50 |
| Two columns | Lines from both columns mixed together |
Proofread anything you will rely on: prices, totals, dates, VAT numbers, account numbers, names and addresses. Remember that searching for a supplier's name only works if OCR spelled it correctly.
Turning a scanned PDF into searchable text, step by step
- Check whether you need OCR. Search the PDF for a word. If it is found, use the text extractor instead.
- Prepare the file. Rotate sideways pages and remove blank ones first.
- Open the OCR tool and choose your scanned PDF or image.
- Start small. Recognition happens in your browser and a long document can take a while, so try a few pages first to check the quality.
- Review the text against the original, concentrating on numbers and names.
- Save or reuse it. Paste it into a document, spreadsheet or your notes. If you need an editable Word version of the whole document, see our guide to converting a PDF to Word.
Where OCR helps a small business
- Searchable paperwork. Scanned supplier invoices and receipts are far easier to find when you can search them. For what to keep and for how long, see our guide to record keeping for online sellers.
- Reusing old material. Pull the text from an old printed price list, brochure or letter instead of retyping it.
- Quoting from paper letters. Copy an exact reference number or clause rather than reading it off a scan.
- Accessibility. Real text can be read aloud, resized and searched in a way an image cannot.
A worked example
Here is a hypothetical example. You have a box of paper delivery notes from a wholesale supplier and want to be able to find any order by its reference number.
- You scan a test batch of ten at 300 dpi in greyscale, with the pages lined up straight.
- You run them through OCR and search for a reference you can see on one note. It is found.
- Proofreading shows that OCR read a zero as a letter O in two reference numbers, so you add a step to check references by eye before filing.
- Happy with the result, you scan the rest of the box the same way.
Testing a small batch first saves you rescanning a whole box.
If you have a scanned document you need to search or copy from, try the free OCR tool and check the numbers before you rely on them.
Frequently asked questions
Is OCR 100% accurate?
No. Accuracy depends on scan quality, fonts and layout. Clean printed text can come out very well, but always proofread numbers, names and anything important.
Can OCR read handwriting?
Not reliably with engines like Tesseract, which is designed for printed text. Clear block capitals may work in places, but expect to correct a lot.
Does OCR work on photos taken with a phone?
Yes, if the photo is sharp, straight, evenly lit and fills the frame with the page. Shadows, angles and curved pages all reduce accuracy.
What is the difference between OCR and extracting text?
Extracting text copies words that are already stored in a PDF. OCR reads words from an image of a page. Try extraction first, and use OCR only when there is no text to extract.
Sources
This guide is general information, not legal, tax or financial advice. Fees, rules and thresholds change, so check the official source before you act. Spotted something out of date? Tell us and we will review it.