HTML ⇄ Markdown Converter
Convert HTML to Markdown and back, with live preview and sanitised output.
Loading tool…
Runs locally in your browser. Your files are never uploaded.
About this tool
Switching between HTML and Markdown lets you edit content in the format you prefer while keeping formatting intact. The tool uses Turndown to turn HTML into clean Markdown and marked to render Markdown back to HTML, sanitising the result to remove unsafe tags; a side-by-side preview shows both versions as you type.
How to use it
- Paste HTML or Markdown into the left pane.
- Select the direction of conversion (HTML→MD or MD→HTML).
- Copy the result from the right pane or download it as a file.