OCRRouter

Tesseract vs Granite Docling

Pick Tesseract for clean printed scans in many languages, especially when you need searchable PDFs on CPU with no model server. Pick Granite Docling for English PDFs with tables, code and equations, where you want structured output inside a Docling pipeline. The main split is plain text lines (Tesseract) versus document structure (Granite Docling).

Tesseracttesseract/tesseractGranite Doclingibm/granite-docling
TypeOpen sourceOpen source
PriceFree1 credit / page
Per 1,000 pages$0.00$1.00
Typical speed0.6 s / page1.5 s / page
Best forClean printed text, freeSmall-model document conversion
InputsPDF, imagesPDF, images
Languages100+ languagesEnglish, experimental CJK and Arabic
Max pages per request500500
TablesNo✓ Yes
HandwritingNoNo
MathNo✓ Yes
Bounding boxesNo✓ Yes
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, while Granite Docling is English primary with Japanese, Arabic and Chinese marked experimental.
  • It runs on CPU only with no model server, so it fits small machines and offline batch jobs.
  • It writes searchable PDF, hOCR, TSV, ALTO and PAGE XML, and it is the engine behind OCRmyPDF.

Choose Granite Docling if

  • It returns table structure, equations and code. The model card reports table TEDS 0.97 on FinTabNet, equation F1 0.968 and code F1 0.988.
  • It outputs DocTags, Markdown, HTML, LaTeX and bounding boxes, ready for Docling pipelines.
  • It has only 258M parameters, so it runs on CPU or a small GPU at low cost.

Key differences

TesseractGranite Docling
LicenceApache-2.0Apache-2.0
How you run itLocal CLI or C++ library with an LSTM recognizer. CPU only, no GPU needed.Self-hosted 258M vision language model, typically inside Docling. Needs care on GPUs without bfloat16, such as T4, where it may output only exclamation marks unless run in float32.
Output formatsPlain text, hOCR, searchable PDF, TSV, ALTO, PAGE XMLDocTags, Markdown, HTML, LaTeX, bounding boxes
Tables, formulas and reading orderNo table structure, formula or reading-order output. Returns lines and words only.Table TEDS 0.97 on FinTabNet (150dpi), equation F1 0.968, code F1 0.988, as reported by the model authors.
LanguagesMore than 100 languages out of the box, and can be trained for more.English primary. Japanese, Arabic and Chinese are experimental.
Handwriting and input qualityNot built for handwriting. Accuracy drops sharply without binarization, deskew and roughly 300 DPI input.Not published
Known failureConfuses digit 1 with lowercase l (GitHub issue #2753).Gets stuck in repetitive loops on page headings and invoices (HF discussion #24). Ollama issue #12355 reports hallucinations from FP16 overflow on CPU.

Sources

What each one is

Tesseract

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

Tesseract details

Granite Docling

Compact IBM vision model that converts pages to DocTags for the Docling pipeline.

Granite Docling 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": ["ibm/granite-docling"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Tesseract alternativesGranite Docling alternativesBest OCR models in 2026