Free tools · LaTeX

Markdown to LaTeX

Paste Markdown from a README, Obsidian, Notion or a chat answer and get LaTeX that compiles: headings, emphasis, lists, tables, code blocks, links, images, footnotes and math, with special characters escaped.

How to use it

  1. Paste the Markdown.
  2. Choose whether headings start at \section (article) or \chapter (report), and whether you want a fragment or a complete document with a preamble.
  3. Copy the LaTeX. The packages the output needs are listed above it.

Why you'd use it

Notes get written in Markdown and papers get written in LaTeX. The conversion is mechanical but tedious, and the tedious part is exactly where hand conversion fails: an unescaped underscore or percent sign that stops the build.

The converter escapes every special character in prose, passes math and raw LaTeX environments through untouched, and tells you which packages to add.

FAQ

What Markdown is supported?

ATX and setext headings, paragraphs, bold, italic, strikethrough, inline and fenced code, ordered and unordered lists with nesting, task lists, block quotes, links, images, tables with alignment, footnotes, horizontal rules, and math in dollar signs. HTML tags are treated as text.

How are tables converted?

Into a tabular with booktabs rules and the column alignment from the separator row. Untick booktabs to get \hline rules and no extra package.

Does it need pandoc?

No. It is a small converter written for this page, and it runs in your browser. For complex documents pandoc remains the more complete tool.

What about math?

Inline $...$ and display $$...$$ are passed through unchanged, and a raw \begin{align} block is kept as is. amsmath is added to the package list when either appears.

Which packages does the output need?

Only those the content uses: hyperref for links, graphicx for images, booktabs for tables, amsmath for math, listings if you chose it for code, ulem for strikethrough.