LaTeX to Markdown
Convert common LaTeX structures to Markdown, keeping math intact.
Convert common LaTeX structures to Markdown, keeping math intact. Paste your content and get an instant result.
Paste a LaTeX fragment and this page returns Markdown: sectioning commands become headings, textbf and emph become bold and italic, and itemize or enumerate environments become lists.
Math is lifted out before any other rule runs and put back afterwards, so a backslash inside a formula is never mistaken for a command. Braced arguments are matched by counting braces, not by a regular expression, which is what lets nested arguments survive.
This is a document reader for the subset prose actually uses, not a TeX implementation. A macro the reader does not recognise is passed through verbatim rather than deleted, so an unusual command stays visible in the output instead of vanishing.
What is recognised
Sectioning maps to heading levels, with section treated as the top unit because a pasted fragment usually comes from an article. Emphasis, code, links, tables and list environments have their own mappings.
Inline and display math are preserved as written. The reader does not try to simplify a formula or convert it to another notation, because a wrong simplification is worse than a formula left alone.
- Sectioning commands to Markdown headings
- Italic, bold, code, links, lists and tables
- Math preserved verbatim, including equation environments
Where it stops
Macros defined with newcommand are not expanded, environments without a mapping pass through as literal text, and a fragment that depends on a class file may read oddly. The output is a readable draft, not a faithful reproduction of the compiled document.
Brace and environment matching is deliberate: an unbalanced fragment is more likely to produce visible LaTeX than silently truncated text.
How to use the input workspace
Paste the LaTeX fragment into the input workspace and read the Markdown in the output panel: sectioning commands become headings, textbf and emph become bold and italic, itemize and enumerate become lists, and tables keep their cells. Math is lifted out before any other rule runs and put back afterwards, so a backslash inside a formula is never mistaken for a command.
Braced arguments are matched by counting braces, which is what lets nested arguments survive, and an unrecognised macro passes through verbatim rather than vanishing. Macros defined with newcommand are not expanded and environments without a mapping stay literal text.
What to Expect
Best for
- Converting a paper fragment or a README's LaTeX into Markdown
- Moving documentation out of a tex file into a wiki
- Keeping formulas intact while the surrounding prose becomes Markdown
Not ideal for
- A full document with custom macros, which are not expanded
- Round-tripping something that must compile identically
- Bibliographies and citation styles, which are outside the reader
What this tool keeps
- Math exactly as written, out of the parser's reach
- Unknown commands verbatim rather than dropped
- Nested braced arguments, matched by counting
What may need cleanup
- A custom macro left in the output
- An environment with no Markdown equivalent
- Spacing around a formula that the Markdown renderer treats differently
Common errors
- Expecting newcommand definitions to be expanded
- Pasting an entire document preamble and reading the class options as text
- Assuming a failed conversion, when an unknown macro was deliberately kept
Example use cases
- Porting a course handout to Markdown
- Turning a LaTeX snippet into a GitHub issue
- Extracting prose from a paper while keeping its equations
Sample input
Paste a fragment with a section command, two paragraphs, an itemize list and one inline formula.
Sample output
A Markdown heading, the same two paragraphs, a bulleted list and the formula unchanged in its dollar delimiters.
Who this is for
- Researchers moving notes into Markdown
- Technical writers porting LaTeX documentation
- Students converting a handout
Frequently asked questions
What does the LaTeX converter recognise?
Sectioning commands become headings, textbf and emph become bold and italic, and itemize or enumerate environments become lists.
Will a full document with custom macros convert?
No. Macros are not expanded and unknown commands are kept verbatim rather than dropped.
Are formulas changed?
Math is kept exactly as written, out of the parser's reach.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.