OCRRouter

Mathpix Convert vs Marker

Pick Mathpix Convert if your documents are math-heavy papers, textbooks or handwritten equations and you want LaTeX or DOCX from a hosted API. Pick Marker if you want to self-host PDF to Markdown, need RAG chunks, or want a free option for research, personal use or a startup under $5M. The main split is a paid proprietary STEM API versus an open-source converter you run yourself.

Mathpix Convertmathpix/convertMarkerdatalab/marker
TypeOCR APIOCR API
Price7 credits / page14 credits / page
Per 1,000 pages$7.00$14.00
Typical speed1.5 s / page2.5 s / page
Best forMath and scientific papersBooks and research papers
InputsPDF, imagesPDF, images, DOCX
Languages30+ languages90+ languages
Max pages per request5001,000
Tables✓ Yes✓ Yes
Handwriting✓ YesNo
Math✓ Yes✓ Yes
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 is built for STEM content, converting math, tables and chemistry to LaTeX and Markdown.
  • It exports whole PDFs directly to DOCX and LaTeX.
  • It handles handwritten equations, and you call it as a hosted API with no GPU to run.

Choose Marker if

  • You can run it locally on GPU, CPU or Apple Silicon, so documents stay on your own machine.
  • Code is Apache-2.0 and the weights are free for research, personal use and startups under $5M.
  • It outputs JSON block trees and RAG chunks, and has a CPU fast mode that runs at 23.6 pages per second.

Key differences

Mathpix ConvertMarker
How you run itHosted API onlySelf-hosted on GPU, CPU or Apple Silicon, or Datalab's hosted API
LicenceProprietaryCode Apache-2.0; weights under a modified AI Pubs Open Rail-M license, with a $5M company limit for free use
PricePDF $0.005 per page up to 1M pages, $0.0035 above; images $0.002 each; one-time $19.99 API key feeFree self-hosted within the weight license, you pay for compute; hosted API has about 5,000 free pages per month
Output formatsLaTeX, Markdown, DOCX, HTML, JSONMarkdown, HTML, JSON, chunks, LaTeX, images
BenchmarksNo published accuracy benchmark on general OCR leaderboards83.7 on olmOCR-bench in vllm mode, 66.6 in CPU fast mode; all figures are Datalab's own
Handwriting and STEM focusHandwritten equations, math, tables and chemistryBooks and papers with equations; handwriting not published
Known catchImages with more than 12 text rows may be billed at the PDF page rate; billed monthly in arrearsCompanies above $5M need a paid license for commercial use of the weights

Sources

What each one is

Mathpix Convert

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

Mathpix Convert details

Marker

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

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

Questions

More comparisons

Mathpix Convert alternativesMarker alternativesBest OCR models in 2026