Mathpix OCR API
Mathpix OCR recognizes printed and handwritten STEM document content — including math, text, tables, and chemistry diagrams — from images, stroke data, or PDF files.
The primary output format is Mathpix Markdown (MMD), a superset of Markdown that adds support for math equations, tables, chemistry diagrams, and other STEM content. The API also provides document conversion endpoints to transform MMD into other formats like DOCX, LaTeX, HTML, PDF, and PPTX.
Get started
- Get your API keys at console.mathpix.com
- Process a PDF — step-by-step guide
- Process an image — step-by-step guide
Endpoints
| Endpoint | Description |
|---|---|
| POST v3/pdf | Process PDFs and documents (async) |
| POST v3/text | Process a single image |
| POST v3/converter | Convert Mathpix Markdown to DOCX, LaTeX, HTML, etc. |
| POST v3/batch | Process multiple images in one request |
| POST v3/strokes | Process handwriting stroke coordinates |
Support
Questions or problems? Email support@mathpix.com.