OCRRouter

Mathpix Convert vs Nanonets-OCR

Pick Mathpix Convert for math-heavy papers and textbooks, handwritten equations, and PDF to LaTeX or DOCX conversion through a hosted API. Pick Nanonets-OCR if you want to self-host a free model that turns printed business documents into Markdown for LLMs, with signatures, checkboxes and flowcharts tagged. The main split is STEM output you pay for per page versus a 3B open model you run yourself that was not trained on handwriting.

Mathpix Convertmathpix/convertNanonets-OCRnanonets/nanonets-ocr
TypeOCR APIOpen source
Price7 credits / page2 credits / page
Per 1,000 pages$7.00$2.00
Typical speed1.5 s / page1.8 s / page
Best forMath and scientific papersMarkdown with semantic tags
InputsPDF, imagesPDF, images
Languages30+ languagesMultilingual
Max pages per request500500
Tables✓ Yes✓ Yes
Handwriting✓ YesNo
Math✓ Yes✓ Yes
Bounding boxes✓ YesNo
Confidence✓ YesNo
FormsNo✓ Yes
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

  • You need LaTeX, Mathpix Markdown, DOCX or HTML output from whole PDFs with math, tables and chemistry.
  • You have handwritten equations, which Nanonets-OCR was not trained on and can hallucinate on.
  • You want a hosted API with no GPU to run, billed at $0.005 per PDF page or $0.002 per image.

Choose Nanonets-OCR if

  • You want to self-host free weights from Hugging Face and pay only for compute.
  • Your documents are business files with signatures, watermarks and checkboxes, which the model tags or converts to unicode symbols.
  • You need flowcharts and org charts extracted as Mermaid code, or printed PDFs turned into Markdown for LLMs.

Key differences

Mathpix ConvertNanonets-OCR
How you run itHosted APISelf-host the weights from Hugging Face
LicenceProprietaryNot stated on the Nanonets-OCR2-3B model card (no licence tag); base model is Qwen2.5-VL-3B
PricePDF $0.005 per page (0-1M), $0.0035 above 1M; images $0.002 each; one-time $19.99 API key activation feeFree, you pay for compute
Output formatsLaTeX, Markdown, DOCX, HTML, JSONMarkdown, HTML, LaTeX, Mermaid
HandwritingHandles handwritten equationsNot trained on handwriting; a handwriting test saw generation loops with CER up to 2100% and 69.1s per image on an L4
BenchmarksNo published accuracy benchmark on general OCR leaderboardsolmOCR-bench overall 69.5, DocVQA 89.43, ChartQA 78.56 (OCR2-3B, reported by the authors)
Known failureImages with more than 12 text rows may be billed at the PDF page rateTrained on a fixed prompt; hallucination with other prompts is expected

Sources

What each one is

Mathpix Convert

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

Mathpix Convert details

Nanonets-OCR

Open image-to-Markdown model that tags tables, equations, signatures, watermarks and checkboxes.

Nanonets-OCR 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": ["nanonets/nanonets-ocr"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Mathpix Convert alternativesNanonets-OCR alternativesBest OCR models in 2026