Convert Markdown to LaTeX, DOCX, and PDF

The most feature rich Markdown conversion tool, built for STEM researchers, students, and teachers.

Markdown Conversion graphic
Markdown Conversion graphic

Mathpix Markdown (MMD)

We took standard Markdown and extended it with key LaTeX features and chemistry support.


Your LaTeX constructions are properly preserved during conversion to LaTeX, DOCX, HTML, and PDF.

Mathpix Markdown feature details
Mathpix Markdown feature details small

Markdown conversion optimized for scientific documents

Since Mathpix Markdown is a strict superset of Markdown, our conversion tooling for MMD is more powerful than what is possible with standard Markdown.

Document with an equation

Equations

Advanced support for math, physics, and statistics expressions via Mathjax, including equation references via the \eqref, \label, \ref commands

Document with a table

Tables

Full support for LaTeX style tabular environments in addition to Markdown style tables

Document with an image

Images

Figures are preserved in the output documents as expected; for LaTeX outputs, which are returned as compressed zip files, they are put in a special images folder

Markdown conversion support

MPX CLI for Markdown conversion

Use our command line tool to convert between different filetypes using OCR technology.

Convert

Convert Markdown files to other formats on your local machine.

npm install -g @mathpix/mpx-cli mpx login npm install -g @mathpix/mpx-cli export MATHPIX_OCR_API_KEY=... mpx set-api-key ... # This will save the key in a file at # ~/.mpx/config on Linux, macOS, or Unix # C:\Users\USERNAME\.mpx\config on Windows $ mpx convert input-file.mmd output-file.tex $ mpx convert input-file.mmd output-file.docx $ mpx convert input-file.mmd output-file.pdf $ mpx convert input-file.mmd output-file.html $ mpx convert input-file.mmd output-file.pdf --pdf-method html
Learn more

Verify

Serve local MMD files as a static HTML site to check results.

$ mpx serve. /input-dir $ mpx serve. /input-dir/example.mmd $ mpx build. /input-dir. /output-dir
Learn more

Read Markdown Conversion related posts on our blog

2022-03-13

OCR-powered Markdown Table Generator

Use Mathpix’s table generator tool for easy pasting Markdown tables into editors. Forget about manually retyping tabular data and significantly boost your productivity!

Read more

2021-05-21

Convert whole PDFs to LaTeX, DOCX, Markdown; updated pricing

You can now process entire PDFs using Mathpix's OCR technology and get LaTeX, DOCX, Markdown, or HTML results via Snip or the API...

Read more

2022-01-12

Mathpix PDF to LaTeX Converter

Use Mathpix's simple AI-powered PDF conversion tool to convert your PDF to LaTeX and export to Overleaf.

Read more