OCRRouter

Tesseract vs TrOCR

Pick Tesseract for printed pages and PDFs on a CPU box, in many languages. Pick TrOCR for English handwritten text lines, where it reports 2.89 CER on IAM with the large model. TrOCR only reads single text-line images, so a full page needs a separate line detector in front of it.

Tesseracttesseract/tesseractTrOCRmicrosoft/trocr
TypeOpen sourceOpen source
PriceFree1 credit / page
Per 1,000 pages$0.00$1.00
Typical speed0.6 s / page1.2 s / page
Best forClean printed text, freeHandwritten text lines
InputsPDF, imagesimages
Languages100+ languagesEnglish
Max pages per request500100
TablesNoNo
HandwritingNo✓ Yes
MathNoNo
Bounding boxesNoNo
ConfidenceNoNo
FormsNoNo
Multilingual✓ YesNo
On OCRRouterAvailableAvailable

Prices are what you pay on OCRRouter. Speed is the provider's typical figure, not a benchmark we ran.

Which to choose

Choose Tesseract if

  • It recognizes more than 100 languages out of the box, and you can train it for more.
  • It runs on CPU only with no model server, so it fits small machines and offline batch jobs.
  • It outputs plain text, hOCR, searchable PDF, TSV, ALTO and PAGE XML, and it is the engine behind OCRmyPDF.

Choose TrOCR if

  • It reports 2.89 character error rate on the IAM handwriting set with the large model, and Tesseract is not built for handwriting.
  • It has separate checkpoints fine-tuned for handwritten (IAM), printed (SROIE) and scene text.
  • It is MIT licensed, loads in a few lines with Hugging Face transformers, and can be fine-tuned on your own line images.

Key differences

TesseractTrOCR
Input unitPages and scans; returns lines and wordsSingle text-line images only; you need a separate line detector
HandwritingNot built for it; official models target printed textHandwritten checkpoint reports 2.89 CER on IAM (large model)
LanguagesMore than 100 out of the box, trainable for moreEnglish-focused checkpoints; other languages need fine-tuning
HardwareCPU only, no GPU neededBase 334M and large 558M parameters; slow versus CRNN recognizers on CPU
Output formatsPlain text, hOCR, searchable PDF, TSV, ALTO, PAGEPlain text
LicenceApache-2.0MIT (microsoft/unilm repository)
Known failureAccuracy drops without binarization, deskew and about 300 DPI input; confuses 1 with lNo layout, table or page-level output

Sources

What each one is

Tesseract

The classic open-source OCR engine. Plain text from clean printed scans.

Tesseract details

TrOCR

Transformer text recognition model. Reads single text lines, including handwriting.

TrOCR details

Try both on your own file

Run the file once with each model and compare the output.

PDF, PNG, JPG, WebP, HEIC. Up to 20 MB each, 10 files.No file?

Use one, fall back to the other

{"model": "tesseract/tesseract","fallbacks": ["microsoft/trocr"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Tesseract alternativesTrOCR alternativesBest OCR models in 2026