OCRRouter

Tesseract vs Chandra

Pick Tesseract for clean printed scans, offline searchable PDFs and cheap CPU batch jobs in many languages. Pick Chandra when you need Markdown, HTML or JSON with layout from scans that contain tables, forms or math, and you can run a GPU or pay for the Datalab API. The main split is plain text lines on a CPU versus structured document output from a vision-language model.

Tesseracttesseract/tesseractChandradatalab/chandra
TypeOpen sourceOpen source
PriceFree2 credits / page
Per 1,000 pages$0.00$2.00
Typical speed0.6 s / page2.0 s / page
Best forClean printed text, freeComplex layouts and handwriting
InputsPDF, imagesPDF, images
Languages100+ languages40+ languages
Max pages per request500500
TablesNo✓ Yes
HandwritingNo✓ Yes
MathNo✓ Yes
Bounding boxesNo✓ Yes
ConfidenceNoNo
FormsNo✓ Yes
Multilingual✓ Yes✓ Yes
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 runs on CPU only with no model server, so it fits small machines and offline use.
  • It is Apache-2.0 with no revenue limit, and it recognizes more than 100 languages out of the box.
  • It outputs hOCR, searchable PDF, TSV, ALTO and PAGE XML, and it is the engine behind OCRmyPDF.

Choose Chandra if

  • It returns Markdown, HTML or JSON with bounding boxes and block labels, which suits PDF to Markdown for RAG pipelines.
  • Chandra 2 scores 85.8 on olmOCR-bench and averages 77.8% across 43 languages, per the authors' tables.
  • It is aimed at documents with tables, forms and math, where Tesseract returns only lines and words.

Key differences

TesseractChandra
LicenceApache-2.0, no usage limitsCode Apache-2.0; weights modified OpenRAIL-M, free for research, personal use and companies under $2M funding or revenue
How you run itLocal CLI or C++ library, CPU onlySelf-host on a single NVIDIA GPU via vLLM, or use the hosted Datalab API
PriceFree, you pay for computeSelf-hosted free within licence terms; API is $1, $3 or $7.50 per 1,000 pages, with $20/month free tier
OutputPlain text, hOCR, searchable PDF, TSV, ALTO, PAGE; no tables, formulas or reading orderMarkdown, HTML, JSON and bounding boxes
BenchmarksNot published85.8 on olmOCR-bench (Chandra 2, authors' figure)
Input qualityNeeds binarization, deskew and about 300 DPI; weak on skewed or noisy photosOld Scans category scores only 51.1 on olmOCR-bench
Known failureConfuses digit 1 with lowercase l (issue #2753); not built for handwritingToken-loop hallucinations and missing pages on some Russian and Kazakh scans (issue #51); 43.2% on Urdu

Sources

What each one is

Tesseract

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

Tesseract details

Chandra

Datalab's OCR model that keeps layout and handles forms, tables and handwriting.

Chandra 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": ["datalab/chandra"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Tesseract alternativesChandra alternativesBest OCR models in 2026