Back to Blog

Convert LaTeX to PDF, Word & Markdown

Shihab Shahriar AntorJune 16, 2026

To convert LaTeX to PDF, compile it in a browser editor like LetX (no install, seconds). To convert LaTeX to or from Word, use Pandoc (pandoc in.tex -o out.docx). For Markdown to LaTeX, use the LetX Markdown converter or Pandoc. PDF back to LaTeX is the hard direction — a PDF throws away the source — so you recover what you can (especially equations via OCR) and rebuild the rest. Details below.

LaTeX → PDF (the easy one)

Compiling LaTeX is converting it to PDF. The only question is where the compiler runs. Locally you’d install a TeX distribution and run latexmk -pdf paper.tex. Online, open the project in LetX and press compile — it runs the same latexmk on cloud workers and returns the PDF in about 1 second, with SyncTeX so you can jump between source and output. Upload an existing project as a .zip to convert a whole folder at once.

LaTeX ↔ Word

The standard tool both directions is Pandoc:

# LaTeX to Word
pandoc paper.tex -o paper.docx

# Word to LaTeX
pandoc paper.docx -o paper.tex

Pandoc handles headings, lists, tables, and citations well. Where it struggles: complex equations, custom macros, and bespoke layouts — expect to clean those up by hand. For Word → LaTeX, the output is a solid starting skeleton you then refine in the editor rather than a finished document.

PDF → LaTeX (the hard direction)

There is no lossless PDF-to-LaTeX conversion: a PDF is the rendered output with the source discarded. The practical workflow is to recover the parts that matter — OCR or retype the equations, recover the prose, then rebuild the document structure from a template.

Markdown → LaTeX

Drafting in Markdown and publishing in LaTeX is a fast workflow. Run pandoc notes.md -o notes.tex — headings, lists, and emphasis map to LaTeX commands and $...$ math is preserved. The full guide covers the details.

Frequently asked questions

How do I convert LaTeX to PDF online for free?

Open your .tex file in a browser-based LaTeX editor like LetX and click compile — it runs latexmk and returns a PDF in about 1 second. No local TeX distribution to install.

How do I convert LaTeX to Word?

Use Pandoc: pandoc paper.tex -o paper.docx. Pandoc maps most LaTeX structure to a .docx, though complex math and custom macros may need cleanup. For the reverse (Word to LaTeX) run pandoc paper.docx -o paper.tex.

How do I convert a PDF back to LaTeX?

There is no perfect PDF-to-LaTeX converter because a PDF discards the source. For equations, use an OCR tool like the LetX Equation to LaTeX converter to recover the math, then rebuild the document structure by hand.

How do I convert Markdown to LaTeX?

Use the LetX Markdown to LaTeX converter, which maps headings, lists, and emphasis to LaTeX while protecting math, or run pandoc notes.md -o notes.tex with Pandoc.

Ready to try LetX?

Join researchers and students focusing on their work, not the tools.

Get Started Free

Written by Shihab Shahriar Antor — AI Engineer & Founder of Shahriar Labs. Builder of LetX (collaborative LaTeX) and QuantumSketch (AI STEM video).