Markdown ↔ HTML Converter
Convert Markdown to HTML or HTML back to Markdown, with a live preview.
Markdown → HTML
Preview
HTML output
About this tool
Markdown is quick to write but eventually needs to become HTML, whether that's for a blog post, a static site, or an email, and the reverse comes up too: pasting in HTML from somewhere and wanting clean Markdown out. This tool converts in either direction as you type, with a live preview and a Swap button to flip which side is the source.
Frequently asked questions
- Which Markdown syntax is supported?
- The common core: headings, bold, italic, inline code, fenced code blocks, links, images, ordered and unordered lists, blockquotes, and horizontal rules. It covers everyday Markdown rather than the full CommonMark specification (tables and nested lists aren't supported yet).
- Is raw HTML in my Markdown executed?
- No. Any HTML characters in your Markdown input are escaped before conversion, so pasting a stray < or a script tag renders as visible text in the output rather than being interpreted as markup.
- What about a script tag in the HTML → Markdown direction?
- The preview for pasted HTML runs inside a sandboxed iframe with scripting disabled, so nothing in your input can execute or reach the rest of the page, even while you're actively typing it.
- How does HTML → Markdown handle a tag it doesn't recognize?
- It uses the browser's built-in HTML parser (not a hand-rolled one, since HTML is genuinely hard to parse correctly), and any tag without a specific Markdown equivalent is unwrapped: its own text and children are kept, just without special formatting.
Related tools
🔒 All tools run entirely in your browser. Nothing you type is sent anywhere.