Let
X
Back to Blog

Convert LaTeX to PDF, Word & Markdown

Shihab ShahriarJune 16, 2026

To convert LaTeX to PDF, compile it in a browser editor like LetX (no install, ~1–2 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–2 seconds, 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. For equations, OCR them with the free Equation to LaTeX tool (upload an image, get LaTeX with a live preview), then rebuild the document structure from a template.

Markdown → LaTeX

Drafting in Markdown and publishing in LaTeX is a fast workflow. Use the Markdown to LaTeX converter — headings, lists, and emphasis map to LaTeX commands and $...$ math is protected — or run pandoc notes.md -o notes.tex. The full guide covers both routes.

Browse all free converters and utilities at letx.app/tools.

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–2 seconds. 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 1,000+ students and researchers 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).