Cross-Industry & Business Teams

LLM vs OCR: Which Reads Scans and Handwriting Better? We Tested

LLM vs OCR on scans, phone photos, Hindi, Urdu, Arabic and handwriting. 1,088 readings scored for wrong numbers, cost per page and silent errors.

November 28, 202610 min read
Hand-drawn crumpled and crooked pages under reading glasses, illustrating a test of LLMs against OCR on scans and handwriting

What matters most

  • In a 136-image test, Gemini 3.1 Pro read all 1,152 printed numbers correctly after retries; Gemini 3.8 Flash and both Claude models missed one each.
  • Tesseract, run without image clean-up, got 372 of the same 1,152 numbers wrong.
  • A small LLM invented plausible Urdu text on a clean page, so readable output is not proof of accuracy.
  • The five strongest readers marked none of their 9 pages with wrong numbers as unreadable.
  • Check extracted numbers with format and total rules, and keep the source image one click away.

On a clean English page, almost anything can read text. The argument about LLM vs OCR only gets interesting on the pages that real firms hold: a crooked scan, a photo taken under a desk lamp, a page in Urdu, a line someone wrote by hand. So we tested those.

We gave 136 images to eight readers: Tesseract, the most widely used free OCR engine, and seven LLM vision models from OpenAI, Anthropic and Google. That is 1,088 readings, scored against exact answers. On printed pages, the best LLM got all 1,152 numbers right. Tesseract got 780. But "use an LLM" is the wrong lesson. One small LLM filled a clean Urdu page with text that was never there, and GPT-5.5 cost 67 times as much per page as Claude Haiku while getting more numbers wrong.

Here is what matters most:

  • Gemini 3.1 Pro got all 1,152 printed numbers right after retries. Gemini 3.8 Flash and both Claude models got 1,151, and GPT-5.5 got 1,146.
  • Tesseract got 372 numbers wrong, and nothing in its output told us which ones.
  • GPT-5.4 nano invented fluent-looking Urdu on a clean page. A readable output is not a correct one.
  • The five strongest readers had 9 pages with a wrong number between them, and marked none of them as unreadable.
  • Gemini 3.1 Pro first returned nothing at all on 4 of 96 printed pages, while reporting a normal finish.
  • Reading cost ran from $0.33 to $22.07 per 1,000 pages, and the most expensive reader was not the most accurate.

What we tested

Printed pages. We wrote made-up official notices in English, Hindi, Urdu and Arabic, filled with random names, case numbers, dates, amounts and account numbers. That matters. Test an LLM on a famous public text and it can answer from memory. It cannot have memorised account number 2058378718 on a page that didn't exist until we made it. Eight pages per language, each in three versions: clean, a low-resolution grey scan with noise, and an angled, shaded, blurred phone photo. That's 96 images.

Handwriting. 40 randomly chosen lines of real English handwriting from the public IAM line dataset.

Readers. Tesseract (through tesseract.js 6, its standard language models, no image clean-up), GPT-5.4 nano, GPT-5.4 mini, GPT-5.5, Claude Haiku 5.5, Claude Sonnet 5.5, Gemini 3.8 Flash and Gemini 3.1 Pro (a preview model). Every LLM got the same prompt: transcribe exactly, keep the original script, and write [illegible] instead of guessing. All were set to low reasoning effort. One run each, on 28 November 2026.

Scoring. We counted two things. How many of the 1,152 key numbers came out exactly right, and the character error rate: the share of letters and digits that would have to change to make the output match the page. Lower is better. The per-image scores are here.

The results

Printed pages, 96 images per reader:

  • Gemini 3.1 Pro: 0 wrong numbers, 0.02% character error, $5.41 per 1,000 pages (after retrying 4 empty replies).
  • Gemini 3.8 Flash: 1 wrong number, 0.04% character error, $1.75 per 1,000 pages.
  • Claude Sonnet 5.5: 1 wrong number, 0.06% character error, $6.57 per 1,000 pages.
  • Claude Haiku 5.5: 1 wrong number, 0.16% character error, $0.33 per 1,000 pages.
  • GPT-5.5: 6 wrong numbers, 2.03% character error, $22.07 per 1,000 pages.
  • GPT-5.4 mini: 16 wrong numbers, 7.20% character error, $4.30 per 1,000 pages.
  • GPT-5.4 nano: 116 wrong numbers, 37.71% character error, $0.92 per 1,000 pages.
  • Tesseract: 372 wrong numbers, 10.99% character error, no per-page fee.

Costs are list prices applied to the tokens each run used. Gemini 3.8 Flash was on an introductory price at the time. They cover reading only, not your servers, engineering or review time. The gap between the top four is tiny in a test this size. Don't read one wrong number as a ranking. Flash's one miss had every digit right, with a comma in an amount turned into a full stop.

By language, Urdu was the hard one. On Urdu pages, character error was under 0.05% for both Gemini models, 0.18% for Sonnet, 0.45% for Haiku, 6.71% for GPT-5.5, 24.86% for GPT-5.4 mini, 30.36% for Tesseract and 74.9% for GPT-5.4 nano. Our Urdu pages use Nastaliq, the flowing script most Urdu is printed in, where letters stack diagonally. English was close to solved: every LLM stayed under 0.2%.

Tesseract's weak spot surprised us. It read Hindi words reasonably well (6.09% character error) but got only 42.71% of the numbers on Hindi pages right. The digits were ordinary English digits. We re-ran it with English switched on alongside each language, expecting that to fix it. Overall it got worse: character error rose from 10.99% to 16.57%, and the share of correct numbers barely moved. A tuned setup with image clean-up would likely do better than ours, so treat this as Tesseract out of the box.

Photos hurt Tesseract most. Its character error went from 5.14% on clean pages to 20.72% on phone photos. Both Claude models and both Gemini models stayed under 0.25% in every condition.

Handwriting. Character error on 40 lines: Gemini 3.8 Flash 0.88%, Gemini 3.1 Pro 1.00%, Sonnet 1.35%, Haiku 1.53%, GPT-5.5 1.53%, GPT-5.4 mini 4.64%, GPT-5.4 nano 17.79%, Tesseract 45.63%. Lines with no errors at all (ignoring punctuation and capitals): Gemini 3.8 Flash 35, Gemini 3.1 Pro 34, GPT-5.5 32, Haiku 30, Sonnet 29, mini 22, nano 6, Tesseract 0. Be careful with these. IAM is a well-known research set, so LLMs may have seen it during training. Expect your own handwriting to score worse.

The errors that should worry you

Average accuracy hides how a reader fails, and that decides whether you can use it.

Invented text. On a clean Urdu page, GPT-5.4 nano returned lines of Urdu-looking words about property and rulings that were nowhere on the page, mixed with some real numbers and a couple of [illegible] marks. A person who doesn't read Urdu would have no way to know. Anyone feeding that into a translation tool would get confident English about things the document never said.

Reversed case numbers. In right-to-left pages, case number 160/2022 sometimes came out as 2022/160. We checked the image: it shows 160/2022. GPT-5.4 mini did this repeatedly on Arabic pages, and each Claude model's one wrong number was a reversal like this on an Urdu page. Both halves are correct, so a spot check can slide past it, while your system files the document under a case that doesn't exist.

Quiet one-digit errors. GPT-5.5 read case 987/2024 as 981/2024. It turned section 461 into "46" followed by the Hindi full-stop mark, which looks like a 1. It dropped one digit from a ten-digit account number. In fairness, one of its six had every digit right but swapped the commas in an amount for full stops. We counted it as wrong.

An empty page that reports success. On the first run, Gemini 3.1 Pro returned no text at all for 4 of the 96 printed pages: two English, two Urdu. The service reported a normal finish, with zero output and no error. On retry, three read correctly. The fourth hit a rate limit and then read correctly. A pipeline that trusts a success status would have filed four blank pages. Check that every page produced text of a believable length, and retry or route it to a person when it didn't. We saw this on a preview model in one run, so don't assume it is typical.

The flag you can't rely on. We told every LLM to write [illegible] instead of guessing. GPT-5.4 mini used it on 34 pages, and 27 of those had every number right, while 7 of its 14 pages with a wrong number carried no mark. The five strongest readers marked none of their 9 bad pages. So "send the uncertain ones to a person" does not work if the model decides what's uncertain.

What to do with this

Don't pick a reader from someone else's benchmark, including ours. Take 50 of your own worst pages, type the answers once, and score two or three readers on the fields that cost money when wrong. It is a few days of work and it settles most arguments. We did the same on W-2s, 1099s and K-1s, and the ranking and the failure types differed from this test.

Check numbers with rules, not with the model's confidence. Totals should add up. Dates should be real dates. Case numbers should match your register's format, which catches a reversal instantly. Account numbers should have the right length and match a known account.

Use a second reader where an error is expensive. Two different readers rarely make the same one-digit mistake, though we didn't measure that here. Send disagreements to a person.

Keep the image next to the text. Anyone relying on a number should be one click from the pixels it came from. That's the same rule we apply to quotes in why LLMs misquote.

On security: these readers can run through your own cloud accounts under business data terms, and Tesseract runs entirely on your machines. If records can't leave your network, that limits the choice before accuracy does, so settle it first. Reviewers keep the judgment calls. The system reads, checks and queues. For what this costs once you add the people, see LLM document processing cost per page.

What this test does not show

Our printed pages use one clean font each, with no stamps, tables, signatures, two-column layouts, fax damage or handwriting in Indian or Arabic scripts. Real court files and old invoices are harder. We did not test the document services from Google, Microsoft or Amazon, or specialist handwriting engines. Apart from the retries described above, we ran each image once, so we can't say how much results move between runs. We work with models from all three AI companies, and none of them paid for or saw this test.

FAQ

Is an LLM better than OCR for document extraction?

On our printed pages, both Gemini models, both Claude models and GPT-5.5 beat Tesseract clearly on every language. A small LLM, GPT-5.4 nano, had a worse character error rate than Tesseract overall. The model matters more than the category.

What is the best way to read Hindi, Urdu or Arabic scans?

In our test, both Gemini models and both Claude models stayed under 0.5% character error on all three, on synthetic printed pages. Test on your own documents before trusting that, especially for older print, stamps or handwriting.

Can an LLM read handwriting accurately?

On 40 lines of public English handwriting, the five best readers each had under 1.6% character error. The dataset is widely known, so real handwriting from your files will likely be harder.

How do I know when the reader got something wrong?

Don't depend on the model saying so. Use rules on the fields (sums, formats, lengths, known values), compare a second reader on high-value fields, and have a person check disagreements against the original image.

Test it on your worst pages

If your team keys data from scans, photos, handwriting or non-English records, we can run this kind of test on a sample of your own documents and show you the errors before anything is built. See document data extraction, or book a free call and bring the pages that break your current tool.

Cross-Industry & Business TeamsWhat Is a Reserve Study, and What Should Your Board Do With It?Cross-Industry & Business TeamsWhy Do LLMs Misquote? Stop Letting Them Type the QuoteCross-Industry & Business TeamsWhat Does LLM Document Processing Cost per Page, Really?