Markdown to HTML Converter
Convert Markdown to HTML and back, with a live preview.
Paste Markdown to get HTML plus a live preview. Switch the tab to convert HTML back to Markdown. Conversion runs entirely in your browser.
How to use it
Pick a direction
Markdown to HTML or HTML to Markdown.
Paste your source
Sample is pre-filled for the active direction.
Read the output and preview
HTML output appears in the right pane; for Markdown -> HTML you also get a styled live preview below.
What is it?
A Markdown-to-HTML converter takes the plain-text Markdown syntax (headings prefixed with #, bold with **, lists with -, etc.) and produces the corresponding HTML elements. The reverse is best-effort - HTML has more expressive power than Markdown, so any HTML that doesn't map to the Markdown subset is left alone.
When to use it
Drafting blog posts in Markdown and pasting the HTML into a CMS that lacks Markdown support. Converting a README into a webpage. Round-tripping content between a static-site generator (Markdown source) and a WYSIWYG editor (HTML source).
Common mistakes
Expecting GitHub-flavoured-Markdown extras (tables, task lists, ~~strikethrough~~) - they're not supported here. Pasting HTML with custom classes or attributes and expecting them to survive a round-trip - they get lost. And treating the converter as an HTML sanitiser - it isn't; do not paste untrusted HTML and embed the output in a page without escaping.
FAQ
- Which Markdown flavour does this support?
- A CommonMark subset: headings, bold, italic, inline code, links, images, ordered and unordered lists, blockquotes, fenced code blocks, horizontal rules. Tables, nested lists and raw HTML pass-through are out of scope.
Related tools
More in this category
- JSON Formatter & Validator
- Base64 Encoder / Decoder
- URL Encoder / Decoder
- Hash Generator (SHA-1, SHA-256, SHA-384, SHA-512)
- JWT Decoder
- Regex Tester
- YAML to JSON Converter
- CSV to JSON Converter
- SQL Formatter
- HTML Entity Encoder / Decoder
- Cron Expression Reader
- XML Formatter
- HTML Minifier
- Mock Data Generator
- Markdown Table Generator