Skip to content

OCR accuracy: what resolution, contrast and a straight page are really worth

By the getPDF team · Published 11 October 2026

The short answer

OCR accuracy is decided by the scan before the engine starts. Scan at 300 dpi, keep the page straight, and pick the language the document is written in: on our test pages that combination gave 0 wrong words in 110. Below about 100 dpi, past a few degrees of tilt, or with the wrong language pack, errors climb fast. When a scan is worn, grey and grainy all at once, rescanning beats every setting.

OCR PDFSearchable text layer, 11 languages. Free, runs on your device.

How we measured

On 11 October 2026 we ran getPDF’s own OCR code (Tesseract 5, the same code the browser runs) on test pages: an invented letter to Jane Cooper of 110 words in 10 point Liberation Serif, with an IBAN, an email address, amounts and dates. We drew it as a scan at different resolutions, then made it grey, faded, tilted, blurred and grainy, and compared the text the engine read with the text on the page, word by word.

These are computer-drawn pages, cleaner than paper ever is: no dust, no curl, no uneven light. Read the numbers as the best case for each factor, and as a guide to which factor costs what.

What “accuracy” means here

There are 2 ways to count. Character accuracy counts letters; word accuracy counts whole words, and a word with 1 wrong letter is a wrong word. They tell very different stories. Our letter scanned at 72 dpi had 1.3 % of its characters wrong, which sounds fine, and 11 of its 110 words wrong, which is 1 in 10: about 1 broken word per printed line. One of them was in the IBAN.

For a search, character accuracy matters: most words are still findable. For copying a number into a payment, every single character matters. That is why the rest of this page counts words.

Resolution: 300 dpi, and why more buys nothing

Scan resolution 10 point letter: wrong words of 110 Confidence 7 point small print: wrong words of 110 Confidence
72 dpi 11 81 % 79 41 %
100 dpi 1 94 % 17 83 %
150 dpi 0 95 % 0 95 %
200 dpi 0 95 % 0 95 %
300 dpi 0 95 % 0 95 %
600 dpi 0 95 % 0 95 %

On a perfectly clean page, 150 dpi was already enough even for 7 point print. Paper is never that clean, though, and the small print shows how sudden the drop is: perfect at 150 dpi, 17 wrong words at 100 dpi, unreadable at 72. 300 dpi leaves room for grain, blur and tiny type, and it is the resolution getPDF reads every page at.

That last point has a consequence: the tool draws each page at 300 dpi before the engine reads it. A 600 dpi scan is drawn at 300 dpi too, so it reads exactly the same and only makes the file bigger. As grey lossless images, our A6 test page took 153 KB at 300 dpi and 367 KB at 600 dpi.

Contrast: less important than you would think

The same page at 300 dpi Wrong words of 110 Confidence
black on white 0 95 %
grey toner on off-white paper 0 95 %
faded: light grey print 0 95 %
very faded: barely darker than the paper 0 95 %
dark print on yellow paper 0 95 %
black and white only (1 bit), 300 dpi and 200 dpi 0 95 %

In our tests, faded, grey and coloured pages read fine as long as the letters themselves were intact: the engine cares about the shape of a letter, not how dark it is. What faded paper really costs is letters that are partly gone, and no setting brings those back. There is no need to convert a scan to black and white for OCR; do it for file size if you like.

Skew: up to 2 degrees is fine, 5 is not

Page tilted by Wrong words of 110 Confidence
0 degrees 0 95 %
1 degree 0 95 %
2 degrees 0 94 %
5 degrees 15 86 %
10 degrees 62 70 %

A slight tilt is corrected inside the engine. Beyond that, lines start to run into each other: at 10 degrees words from neighbouring lines were mixed together (“heatingOur”, “referenceevery”). getPDF does not straighten pages, so straighten the paper instead: push it against the edge of the scanner glass, or square the phone to the page. Note what the confidence did: 86 % with 15 wrong words still looks respectable. The score warns at 60 %, and a tilted page can be wrong well above that.

When everything goes wrong at once

Single problems are survivable. Combined, they are not. We made the same letter grey, slightly blurred and heavily grainy, the way a worn photocopy of a photocopy looks, and the result fell apart at every resolution. Measured again on 12 October 2026 with a remade letter of 103 words, the worn copy scored 15 to 18 % at 150 and 200 dpi and 5 to 6 % at 300 dpi, with at most 4 words right. The tool leaves out the specks it cannot make into words, more than 3,000 on a page at 150 dpi, and at 150 and 200 dpi still kept 300 to 620 scraps that looked enough like words to stay, against 103 printed. Mild grain on its own did nothing: 0 wrong words.

The good news is that getPDF tells you. Every one of those pages got the warning “confidence 15 %. The text is likely wrong in places” (with its own score), the result said how many marks it left out, and the low-confidence words were listed. When you see that, a better original is the only real fix.

The language pack matters as much as the scan

The cheapest factor is also the one people miss. The engine can only recognise the letters of the language it was given:

German test letter, 300 dpi Wrong words of 87 Words with ä, ö, ü or ß read right Confidence
English pack 19 0 of 16 86 %
German pack 3 16 of 16 95 %

“für” came out as “fiir”, “Hauptstraße” as “Hauptstrale”, and the confidence still said 86 %. Set Language to the language on the paper; the panel starts from your browser’s language, which is not always the document’s. Which OCR language to pick has the measurements for all 11.

What to fix first

  1. The language. Free, instant, and the biggest single gain on any non-English document.
  2. The tilt. Straighten the paper and rescan if the lines visibly slope.
  3. The resolution. Scan at 300 dpi; at least 200 for normal print, never below 150, and 300 without exception for small print.
  4. The original. A worn copy will not read well at any setting. Find the better copy, or the paper, and scan that.

The honest part

These numbers come from clean, computer-drawn test pages, so real scans do worse at every step: dust, curled pages, uneven light and odd fonts all cost something we could not measure here. Your scanner and your paper set the ceiling, not this tool.

getPDF does not clean up scans: it does not straighten, sharpen or remove grain, and the page is never changed. It reads the page as it is and tells you how sure it was, which pages fell under 60 % and which words to check. A poor result is usually a message about the scan, and rescanning one bad page is often faster than proofreading it. If the scan is the only copy you will ever have, see Make a scanned PDF searchable for what OCR can still do for you, and plan to read the important figures yourself.

Questions

What is the best dpi for OCR?

300 dpi. In our tests, 10 point print read perfectly from 150 dpi up, but 7 point print broke down at 100 dpi, and grain and blur eat into the margin. getPDF draws every page at 300 dpi before reading it, so scanning at 600 dpi buys nothing here.

Does a slightly crooked scan matter?

A little tilt does not. At 1 and 2 degrees our test letter came out with 0 wrong words; at 5 degrees, 15 of 110 words were wrong; at 10 degrees, 62. Straighten the paper on the glass before scanning.

Why is my OCR result bad when the scan looks fine to me?

Often the wrong language pack. Our German test letter read with the English pack had 19 of 87 words wrong at 86 % confidence, and all 16 of its words with umlauts or ß broke. With the German pack: 3 wrong.

Should I convert my scan to black and white first?

Not for accuracy. A clean page read the same in greyscale and as a 1-bit black and white scan, at 200 and 300 dpi. Black and white helps file size, not recognition.

The tools for this job