Markdown ↔ HTML Converter
Convert Markdown to HTML or HTML back to Markdown, with a live preview.
Processing: This tool runs entirely in your browser. Your input and any file you open stay on your device — nothing is uploaded to a server.
How to use the markdown ↔ html converter
- Choose a direction.
- Paste your Markdown or HTML.
- Copy the result, or expand the preview to see it rendered.
About this tool
Markdown to HTML uses GitHub-flavoured Markdown, so tables, task lists, strikethrough and fenced code blocks all work as they do on GitHub.
The reverse direction is lossy, and it is worth understanding why rather than being surprised by it. Markdown has no way to express a class, an id, an inline style or most attributes, so those are dropped. Converting a styled web page to Markdown gives you the content and the structure, not the design — which is usually exactly what you wanted, but not a round trip.
Both directions run in the page, so an unpublished draft stays with you.
Common uses
- Turning a README into HTML for a web page.
- Converting a web article into Markdown notes.
- Previewing Markdown before publishing it.
Frequently asked questions
- Which Markdown flavour is used?
- GitHub-flavoured Markdown, so tables, strikethrough, task lists and fenced code blocks are supported.
- Why did my HTML lose its classes and styles?
- Markdown cannot express them. The conversion keeps content and structure and drops everything presentational, because there is nowhere for it to go.
Related tools
HTML Formatter & Minifier
Indent messy or minified HTML so it can be read, or strip it back down to one line.
Text Cleaner
Strip extra spaces, blank lines, line breaks, smart quotes and unwanted characters.
Word Counter
Count words, characters, sentences, paragraphs and estimated reading time as you type.
HTML Entity Encoder & Decoder
Escape text for safe use in HTML, or decode entities back into readable characters.