OCRRouter

Mathpix Convert vs Kraken

Pick Kraken if you transcribe historical manuscripts, early prints or right-to-left scripts and are ready to train a model on your own material. Pick Mathpix Convert if you need math-heavy PDFs turned into LaTeX or DOCX through a hosted API with no setup. The main split is the target material: Kraken is built for historical and non-Latin scripts, Mathpix Convert for STEM content.

Mathpix Convertmathpix/convertKrakenkraken/kraken
TypeOCR APIOpen source
Price7 credits / page1 credit / page
Per 1,000 pages$7.00$1.00
Typical speed1.5 s / page1.5 s / page
Best forMath and scientific papersHistorical documents and manuscripts
InputsPDF, imagesimages
Languages30+ languagesMany scripts, incl. right-to-left
Max pages per request500500
Tables✓ YesNo
Handwriting✓ Yes✓ Yes
Math✓ YesNo
Bounding boxes✓ Yes✓ Yes
Confidence✓ YesNo
FormsNoNo
MultilingualNo✓ 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 Mathpix Convert if

  • It converts math, tables and chemistry to LaTeX, Markdown, DOCX and HTML.
  • It exports whole PDFs straight to DOCX or LaTeX, and it handles handwritten equations.
  • It is a hosted API at $0.005 per PDF page, so you need no local install or training.

Choose Kraken if

  • It is built for historical documents and non-Latin scripts, with right-to-left, BiDi and top-to-bottom support.
  • It is Apache-2.0 and free to self-host, so you pay only for compute.
  • Layout analysis, reading order and character recognition are all trainable, and a public Zenodo repository holds community-trained models.

Key differences

Mathpix ConvertKraken
Target materialSTEM content: math, tables and chemistryHistorical manuscripts, early prints and non-Latin scripts
How you run itHosted APIPython library run locally on Linux or macOS (x64 or ARM, Python 3.10 to 3.13); no Windows support
LicenceProprietaryApache-2.0
PricePDF $0.005 per page (0-1M), $0.0035 above 1M; images $0.002 each; one-time $19.99 API key activation feeFree, self-hosted (you pay for compute)
Output formatsLaTeX, Markdown, DOCX, HTML, JSONALTO, PageXML, hOCR, plain text, bounding boxes
Setup effortGet an API key and call the APIUsually needs training on your own material for good accuracy
Known issuesImages with more than 12 text rows may be billed at the PDF page rate; billed monthly in arrears; the $19.99 fee is non-refundableInstall can fail with a dependency conflict (issue #816); learned line order is lost in segmentation and text output (issue #820)

Sources

What each one is

Mathpix Convert

Specialist for math, science papers and handwritten formulas. Outputs LaTeX.

Mathpix Convert details

Kraken

OCR engine for historical documents and manuscripts, with trainable models for unusual scripts.

Kraken 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": "mathpix/convert","fallbacks": ["kraken/kraken"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Mathpix Convert alternativesKraken alternativesBest OCR models in 2026