OCRRouter

Mathpix Convert vs RapidOCR

Pick Mathpix Convert when the job is turning math-heavy papers, textbooks or handwritten equations into LaTeX, Markdown or DOCX, and you accept a paid hosted API. Pick RapidOCR when you need free, offline text and bounding boxes from Chinese or English images on your own CPU, and you do not need layout or tables.

Mathpix Convertmathpix/convertRapidOCRrapidai/rapidocr
TypeOCR APIOpen source
Price7 credits / page1 credit / page
Per 1,000 pages$7.00$1.00
Typical speed1.5 s / page0.6 s / page
Best forMath and scientific papersLightweight OCR on CPU or edge
InputsPDF, imagesimages
Languages30+ languagesChinese, English and more
Max pages per request500100
Tables✓ YesNo
Handwriting✓ YesNo
Math✓ YesNo
Bounding boxes✓ Yes✓ Yes
Confidence✓ Yes✓ Yes
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 in images and PDFs into LaTeX, Markdown, DOCX and HTML.
  • It exports whole PDFs straight to DOCX or LaTeX, and it handles handwritten equations.
  • It is a hosted API, so you run no models and manage no hardware.

Choose RapidOCR if

  • It is free under Apache-2.0 and runs offline, so you pay only for your own compute.
  • It embeds in Python, C++, Java or C# apps, with ONNX Runtime on CPU by default and optional TensorRT, OpenVINO or MNN engines.
  • It suits Chinese and English screenshots and receipts, and Docling can use it as an OCR backend.

Key differences

Mathpix ConvertRapidOCR
How you run itHosted APILibrary you run locally from Python, C++, Java or C#
LicenceProprietaryApache-2.0 (converted models keep their upstream licences)
PricePDF $0.005 per page (0-1M), $0.0035 above 1M; images $0.002 each; one-time $19.99 non-refundable API key feeFree, self-hosted; you pay for compute
Output formatsLaTeX, Markdown, DOCX, HTML, JSONPlain text and bounding boxes
Content focusSTEM: math, tables and chemistryChinese and English text; layout, tables and Markdown output are not its job
LanguagesNot publishedChinese and English by default; other languages need extra models
Known failureImages with more than 12 text rows may be billed at the PDF page rate16-bit grayscale PNG or TIFF give no text or wrong text (issue #776); Arabic recognition crashes (issue #719)

Sources

What each one is

Mathpix Convert

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

Mathpix Convert details

RapidOCR

PaddleOCR models packaged for ONNX Runtime and other engines. Easy to deploy without Paddle.

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

Questions

More comparisons

Mathpix Convert alternativesRapidOCR alternativesBest OCR models in 2026