About Markdown ↔ HTML Converter
Markdown ↔ HTML Converter does the two-way conversion in your browser with a live side-by-side preview. Paste markdown on the left to see the rendered HTML on the right, or paste HTML on the left to get clean markdown back. Useful when migrating a blog from one CMS to another, dropping markdown into a CMS that only takes HTML, or pulling rich-text from an email or a Notion export back into editable markdown. Output uses GitHub-flavoured markdown conventions on the markdown side and semantic, class-free HTML on the HTML side.
- No uploads
- Browser-only
- Works offline
- 100% free
How it works
- 1
Pick a direction
Use the toggle at the top to switch between Markdown → HTML and HTML → Markdown. The two panes swap roles instantly.
- 2
Paste your source
Drop markdown or HTML into the editable left pane. The right pane shows the converted output live as you type or paste.
- 3
Copy or download
Copy the conversion result with a single button, or download as a .md or .html file. The HTML output is sanitised against XSS, so it's safe to paste into a CMS.
Related tools
Browse allRender GitHub-flavoured markdown live with safe HTML output.
Normalise whitespace, line endings, smart quotes and invisibles.
Compare two pieces of text — line, word, or character mode.
Placeholder text for mockups — paragraphs, sentences, words or list items. Plain / HTML / Markdown.
Frequently asked questions
Are my files uploaded to a server?
No. Every tool on SnapToolz runs entirely inside your browser using JavaScript and WebAssembly. Your file is read locally, processed in memory, and the result is offered as a download. Nothing is sent to a server — there isn't one to send to.
Why convert HTML back to markdown — what's the use case?
Common one: you copy a styled paragraph from a Google Doc, Notion, or an email and you want it back as plain markdown for a README, an issue, or a static-site post. Another: migrating content from a WYSIWYG CMS (Wordpress, Ghost) into a markdown-based one (Hugo, Astro, Docusaurus) where you need bulk HTML→md conversion to preserve headings, lists, and links.
What about embedded styles or inline CSS in the HTML input?
Markdown has no equivalent for arbitrary CSS, so styles like font-color or text-align are dropped during HTML → Markdown conversion. Structural elements (headings, lists, tables, links, images, code) round-trip cleanly. If you need to keep styling, the HTML → Markdown conversion isn't the right tool — keep the content as HTML.
How is this different from the Markdown Preview tool?
Markdown Preview is one-way (md → rendered HTML view) and optimised for reading. This converter is two-way, exposes the raw HTML output for copying, and supports HTML → md going the other direction. Use Preview to read; use the Converter when you actually need to move content between formats.
Does it work offline?
Yes. SnapToolz is a Progressive Web App. After your first visit, the app is cached on your device and every tool keeps working without an internet connection.
Is SnapToolz free?
Yes — every tool is 100% free with no sign-up, no watermark, no hidden tier. The whole platform is open source and we have no plan to gate features.