Markdown ↔ HTML
Convert Markdown to HTML and HTML back to Markdown instantly. Live preview with syntax highlighting. Free online tool.
Preparing private browser tool…
Frequently asked questions
- Which Markdown flavor?
- GitHub-flavored Markdown via marked, including headings, lists, code blocks, links, images, and tables.
- How accurate is HTML to Markdown?
- Common elements are converted reliably. Complex layouts may need manual cleanup.
- Local conversion?
- Yes. Both directions run entirely in your browser - your content never leaves your device.
- Is HTML to Markdown lossless?
- No. Comments and the head, style, and script blocks are dropped, and only a fixed set of elements is mapped. Tables, nested lists, and inline styles usually need a manual pass afterwards.
- What happens to code blocks?
- A pre block becomes a fenced code block with the inner tags stripped and entities decoded, and inline code becomes backticks. The language is not carried over, so add it to the fence yourself.