Mathpix OCR from your command line
Bring Mathpix OCR to your scripts and pipelines. Convert PDFs, images, and folders to Markdown, LaTeX, DOCX, and more, from a single static binary.
curl -fsSL https://mathpix.com/mpx-cli/install.sh | sh
Everything You Can Do from the Command Line
Digitize PDFs Using OCR
Convert PDFs from your local filesystem to formats like LaTeX, DOCX, HTML, and Markdown using OCR.
Convert Document Filetypes
Convert between document formats like LaTeX, DOCX, and HTML using Mathpix Markdown.
Convert Images to LaTeX
Use the command line to convert images to LaTeX, DOCX, MMD, and HTML like you would with Snip.
Convert a Folder
Point mpx scs convert at a directory and it converts every document in parallel with --map, writing outputs beside the inputs and a run report.
Named Profiles
Run mpx configure to store credentials in named profiles under ~/.mpx; flags and environment variables override them for CI.
Every API Option
Common options have flags; every other v3 API option is reachable through --options-json, so nothing in the API is out of reach.
Ready to Get Started?
Install mpx and start converting documents from your terminal.