Convert PDF to Markdown

Mathpix Snip converts scientific PDFs to editable Markdown files in minutes. Use our simple AI-powered PDF to Markdown converter to create beautiful scientific documents, easily edit with Snip Notes or VS Code, and share on the web.

Works on PDFs containing math, tables, and chemistry
Works on 2-column PDFs
Optimized for scientific papers
Perfect compatibility with Snip Notes and Visual Studio Code

PDF conversion optimized for scientific documents

Mathpix is the only PDF converter with high-accuracy OCR features developed specifically for scientific documents like research papers

PDF with an equation

Equations

Even PhD-level math, physics, and statistics.

PDF with a table

Tables

High-accuracy for tables containing math symbols and full equations.

PDF with 2 columns

2-column PDFs

Converts the 2-column formatting required by many major journals.

How to convert PDF to Markdown on the web

A diagram showing PDF to Markdown conversion

1. Drag or upload your PDF into Snip Notes.

2. Your PDF gets digitized instantly into editable and exportable Mathpix Markdown.

3. Edit in-app or export to your favorite tool.

Go to Snip Notes

The best markup language for creating and sharing technical documents

Mathpix Markdown is a STEM-enhanced markdown, which combines math and science specific LaTeX support with standard Markdown syntax, and special extensions like SMILES for chemical diagram rendering.

Mathpix Markdown feature details
Mathpix Markdown feature details small

The best Markdown extension for VS Code

Visual Studio Code supports an .mmd extension so you can conveniently edit files on your local machine.

Intall Mathpix Markdown extension using Extensions Tab, create a new .mmd file and start writing!

Be sure to open the preview pane to check the rendering while you’re working.

VS Code feature details
VS Code feature details small

Our PDF to Markdown conversion tools

Digitize PDFs, edit, and export with Snip

Use Snip to digitize all your PDFs and read them on any device. You can also create editable Markdown documents and export them to useful formats like LaTeX, DOCX, and HTML.

PDF features in Snip
Go to Snip

Manage your PDF repository in your private cloud

Use all of the PDF processing features of Snip but with a self-hosted, fully contained solution.

OCR PDFs on your private cloud.
Learn more

Convert PDFs from the command line

Our MPX CLI command line tool converts PDF files on your local machine without needing to upload them online. You can also convert between file formats like LaTeX to Word using Markdown.

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.pdf output-file.mmd mpx convert input-file.pdf output-file.docx mpx convert input-file.pdf output-file.tex mpx convert input-file.pdf output-file.html mpx convert input-file.mmd output-file.docx mpx convert input-file.mmd output-file.tex mpx convert input-file.mmd output-file.html mpx convert input-file.mmd output-file.pdf mpx convert input-file.mmd output-file.pdf --pdf-method html
Learn more

Bulk PDF conversion using our API

Use the easy-to-implement Mathpix OCR API to convert PDFs to alternative formats like Markdown, LaTeX, and DOCX. Our PDF API (v3/pdf) enables document conversion at scale.

curl -X POST https://api.mathpix.com/v3/pdf -H 'app_id: APP_ID' -H 'app_key: APP_KEY' -H 'Content-Type: application/json' --data '{ "url": "http://cs229.stanford.edu/notes2020spring/cs229-notes1.pdf" }' curl --location --request POST 'https://api.mathpix.com/v3/pdf' --header 'app_id: APP_ID' --header 'app_key: APP_KEY' --form 'file=@"cs229-notes5.pdf"' --form 'options_json="{\"math_inline_delimiters\": [\"$\", \"$\"]}"'
Learn more

Read PDF to Markdown 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

2019-08-30

Snip Notes (beta): OCR Powered Notes App With Latex Flavored Markdown

Snip web app released as lightweight, single user, note taking app for math, science, and engineering.

Read more