OCRRouter

Marker vs Tesseract

Pick Marker when you need structured output from PDFs, such as Markdown, HTML or JSON, for books, papers with equations, or RAG chunking. Pick Tesseract when you need plain text or a searchable PDF from clean printed scans on a CPU, in many languages, with no licence limits. The main split is layout: Marker returns document structure, Tesseract returns only lines and words.

Markerdatalab/markerTesseracttesseract/tesseract
TypeOCR APIOpen source
Price14 credits / pageFree
Per 1,000 pages$14.00$0.00
Typical speed2.5 s / page0.6 s / page
Best forBooks and research papersClean printed text, free
InputsPDF, images, DOCXPDF, images
Languages90+ languages100+ languages
Max pages per request1,000500
Tables✓ YesNo
HandwritingNoNo
Math✓ YesNo
Bounding boxes✓ YesNo
ConfidenceNoNo
FormsNoNo
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 Marker if

  • It converts PDFs to Markdown, HTML, JSON block trees, LaTeX and RAG chunks, while Tesseract returns lines and words only.
  • It suits books and papers with equations, where Tesseract gives no formula or reading-order output.
  • Datalab reports 83.7 on olmOCR-bench in vllm mode, and its CPU fast mode runs at 23.6 pages per second, though that mode scores 66.6.

Choose Tesseract if

  • It recognizes more than 100 languages out of the box and can be trained for more.
  • It is Apache-2.0 with no revenue cap, while Marker's model weights block free commercial use for companies above $5M.
  • It runs on CPU only with no model server, so it fits small machines and offline batch jobs such as making PDFs searchable.

Key differences

MarkerTesseract
LicenceCode Apache-2.0; weights under a modified AI Pubs Open Rail-M licence, free for research, personal use and startups under $5MApache-2.0
How you run itLocal on GPU, CPU or Apple Silicon, or Datalab's hosted APILocal CLI or C++ library, CPU only
PriceFree self-hosted within the weight licence; hosted API has about 5,000 free pages per monthFree, self-hosted
Output formatsMarkdown, HTML, JSON, chunks, LaTeX, imagesPlain text, hOCR, searchable PDF, TSV, ALTO, PAGE
BenchmarkolmOCR-bench 83.7 in vllm mode, 66.6 in CPU fast mode (Datalab's own numbers)Not published
Tables and formulasHandles equations in books and papers; outputs JSON block treesNo table structure, formula or reading-order output
Known failureWeight licence blocks free commercial use above $5M; benchmarks are self-reportedAccuracy drops without binarization, deskew and about 300 DPI input; confuses digit 1 with lowercase l

Sources

What each one is

Marker

Hosted version of the open-source Marker and Surya models. Strong on books and papers.

Marker details

Tesseract

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

Tesseract 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": "datalab/marker","fallbacks": ["tesseract/tesseract"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Marker alternativesTesseract alternativesBest OCR models in 2026