OCRRouter

Mathpix Convert vs OCRmyPDF

Pick Mathpix Convert for math-heavy papers and textbooks that need LaTeX, Markdown or DOCX output, including handwritten equations. Pick OCRmyPDF to make scanned PDF archives searchable as PDF/A on your own hardware at no licence cost. The main split is output: Mathpix Convert returns structured STEM content, while OCRmyPDF only adds a text layer to the PDF.

Mathpix Convertmathpix/convertOCRmyPDFocrmypdf/ocrmypdf
TypeOCR APIOpen source
Price7 credits / page1 credit / page
Per 1,000 pages$7.00$1.00
Typical speed1.5 s / page1.0 s / page
Best forMath and scientific papersSearchable PDFs from scans
InputsPDF, imagesPDF, images
Languages30+ languages100+ languages (via Tesseract)
Max pages per request5001,000
Tables✓ YesNo
Handwriting✓ YesNo
Math✓ YesNo
Bounding boxes✓ YesNo
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

  • You need math, tables or chemistry from PDFs and images converted into LaTeX or Mathpix Markdown.
  • You want whole PDFs exported straight to DOCX or LaTeX.
  • Your documents include handwritten equations, which OCRmyPDF is not suited for.

Choose OCRmyPDF if

  • You need validated searchable PDF/A output for archiving or compliance workflows.
  • You want a free, MPL-2.0 tool that runs locally on CPU and spreads work across all cores, with Tesseract language packs covering 100+ languages.
  • You run an office scanner pipeline and only need a text layer added without re-encoding the rest of the PDF where possible.

Key differences

Mathpix ConvertOCRmyPDF
How you run itHosted APIOpen-source command-line tool that runs locally
LicenceProprietaryMPL-2.0
PricePDF $0.005 per page up to 1M pages, $0.0035 above; images $0.002 each; one-time $19.99 API key activation feeFree and self-hosted; you pay for compute
Output formatsLaTeX, Markdown, DOCX, HTML, JSONSearchable PDF (PDF/A by default), plain text
HandwritingGood for handwritten equationsNot suited for handwriting
Tables and layoutConverts tables and math into structured outputNo layout, table or Markdown output; accuracy is capped by Tesseract
Known failureImages with more than 12 text rows may be billed at the PDF page rate; the $19.99 fee is non-refundable--skip-text with default PDF/A output removes form fields (issue #1790); PDFs whose forms share one Resources dictionary can hang (issue #1763); --deskew --clean-final can double or quadruple file size (issue #948)

Sources

What each one is

Mathpix Convert

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

Mathpix Convert details

OCRmyPDF

Command-line tool that adds a searchable text layer to scanned PDFs, using Tesseract.

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

Questions

More comparisons

Mathpix Convert alternativesOCRmyPDF alternativesBest OCR models in 2026