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/convert | OCRmyPDFocrmypdf/ocrmypdf | |
|---|---|---|
| Type | OCR API | Open source |
| Price | 7 credits / page | 1 credit / page |
| Per 1,000 pages | $7.00 | $1.00 |
| Typical speed | 1.5 s / page | 1.0 s / page |
| Best for | Math and scientific papers | Searchable PDFs from scans |
| Inputs | PDF, images | PDF, images |
| Languages | 30+ languages | 100+ languages (via Tesseract) |
| Max pages per request | 500 | 1,000 |
| Tables | ✓ Yes | No |
| Handwriting | ✓ Yes | No |
| Math | ✓ Yes | No |
| Bounding boxes | ✓ Yes | No |
| Confidence | ✓ Yes | No |
| Forms | No | No |
| Multilingual | No | ✓ Yes |
| On OCRRouter | Available | Available |
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 Convert | OCRmyPDF | |
|---|---|---|
| How you run it | Hosted API | Open-source command-line tool that runs locally |
| Licence | Proprietary | MPL-2.0 |
| Price | PDF $0.005 per page up to 1M pages, $0.0035 above; images $0.002 each; one-time $19.99 API key activation fee | Free and self-hosted; you pay for compute |
| Output formats | LaTeX, Markdown, DOCX, HTML, JSON | Searchable PDF (PDF/A by default), plain text |
| Handwriting | Good for handwritten equations | Not suited for handwriting |
| Tables and layout | Converts tables and math into structured output | No layout, table or Markdown output; accuracy is capped by Tesseract |
| Known failure | Images 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
- Mathpix billing docs
- Mathpix OCR API
- OCRmyPDF GitHub README
- Issue #1790 form fields
- Issue #948 file size
What each one is
Mathpix Convert
Specialist for math, science papers and handwritten formulas. Outputs LaTeX.
Mathpix Convert detailsOCRmyPDF
Command-line tool that adds a searchable text layer to scanned PDFs, using Tesseract.
OCRmyPDF detailsTry both on your own file
Run the file once with each model and compare the output.
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