What is this Markdown ⇄ HTML converter?
A free, browser-based tool that converts Markdown to clean HTML and HTML back to Markdown. Paste your content, pick a direction, and copy or download the result. You can shift heading levels with a single offset and sanitize untrusted HTML by stripping scripts, styles, and event handlers. Everything runs locally in your browser, so your text is never uploaded.
How to use it
- Choose the direction — Markdown → HTML or HTML → Markdown — with the swap button.
- Paste your Markdown or HTML into the box on the left.
- Optionally set a heading offset and toggle sanitize.
- Copy the converted output on the right, or download it as a file.
Common use cases
- Turning a Markdown draft into HTML to paste into a CMS or email editor.
- Converting messy pasted HTML back into clean Markdown for version control.
- Shifting heading levels so embedded content does not clash with the page's H1.
