Supported Formats
Input formats
Documents
Accepted by POST v3/pdf. Maximum file size: 1 GB.
| Format | Extensions |
|---|---|
.pdf | |
| EPUB | .epub |
| Microsoft Word | .docx, .doc |
| Microsoft PowerPoint | .pptx |
| Amazon Kindle | .azw, .azw3, .kfx |
| Mobipocket | .mobi |
| DjVu | .djvu |
| WordPerfect | .wpd |
| OpenDocument Text | .odt |
Images
Accepted by POST v3/text, POST v3/latex, and POST v3/strokes. Images are decoded using OpenCV.
| Format | Extensions |
|---|---|
| JPEG | .jpeg, .jpg, .jpe |
| PNG | .png |
| Windows bitmap | .bmp, .dib |
| JPEG 2000 | .jp2 |
| WebP | .webp |
| Portable image format | .pbm, .pgm, .ppm, .pxm, .pnm |
| PFM | .pfm |
| Sun raster | .sr, .ras |
| TIFF | .tiff, .tif |
| OpenEXR | .exr |
| Radiance HDR | .hdr, .pic |
| GDAL | Raster and vector geospatial data |
Markdown
Accepted by POST v3/converter. Passed as a JSON string in the mmd field. Maximum body size: 10 MB.
| Format | Description |
|---|---|
| MMD | Mathpix Markdown |
Output formats
All endpoints return Mathpix Markdown (MMD) as the primary output. The v3/pdf and v3/converter endpoints can additionally convert into DOCX, LaTeX, HTML, PDF, PPTX, and ZIP variants.
Conversion Formats
This parameter is called formats for v3/converter and conversion_formats for v3/pdf.
The value is a JSON object where each key is a format extension from the table below and the value is:
trueto enablefalseto disable
{"docx": true, "tex.zip": true}
List of supported extensions
| Extension | Availability | Description |
|---|---|---|
| docx | Conversion | Microsoft Word document |
| html | Conversion | HTML file |
| html.zip | Conversion | Zip archive containing HTML and inline images |
| latex.pdf | Conversion | PDF with LaTeX rendering |
| lines.json | Always (v3/pdf only) | Line-by-line JSON data |
| lines.mmd.json | Always (v3/pdf only, deprecated) | Line-by-line MMD JSON data |
| md | Conversion | Plain Markdown |
| md.zip | Conversion | Zip archive containing Markdown and inline images |
| mmd | Always | Mathpix Markdown text file |
| mmd.zip | Conversion | Zip archive containing Mathpix Markdown and inline images |
| Conversion | PDF with HTML rendering | |
| pptx | Conversion | PowerPoint presentation |
| tex.zip | Conversion | Zip archive containing LaTeX and inline images |
The Availability column indicates when a format is ready:
- Always — generated automatically during processing. Ready to download as soon as the job completes.
- Conversion — must be requested explicitly using
formats(v3/converter) orconversion_formats(v3/pdf). You can also download any format on demand by callingGET .{ext}without pre-requesting it — the API will convert it at that point and return the result once ready.
For ZIP formats, images are embedded in the archive and referenced within the document:
\includegraphics[max width=\textwidth]{image-name}

<img src="./images/image-name.jpg" alt="">
See Conversion Options for per-format settings.