HTML to Markdown Converter
Runs locallyConvert real HTML with headings, lists, links, tables and code blocks to clean Markdown.
What is HTML to Markdown Converter?
Transform HTML pages, rich-text snippets, and documentation markup into clean Markdown using Turndown. Accurately preserves headings, nested lists, links, images, blockquotes, and fenced code blocks.
How to use HTML to Markdown Converter
- Step 1
Paste HTML markup into the input editor.
- Step 2
Choose ATX (#) or Setext headings and bullet marker style.
- Step 3
Copy or download the generated .md file.
Features
- Full DOM-based Turndown engine (handles nested lists, links, images, code blocks)
- Configurable ATX headings and fenced code blocks
- Strips script/style noise cleanly
- 100% browser-based
Example
Input
<h2>Title</h2><ul><li>One</li><li><a href="/a">Two</a></li></ul>
Output
## Title * One * [Two](/a)
Converts nested HTML lists and anchors into idiomatic Markdown.
Frequently asked questions
Does it handle nested lists and code blocks?
Yes, Turndown parses the DOM tree rather than relying on fragile regexes.
Are script tags stripped?
Yes, scripts and style tags are ignored during conversion.
Can I convert Markdown back to HTML?
Yes, use Markdown to HTML or Markdown Editor.
Is my HTML uploaded?
No, everything runs locally.
Related tools
Markdown Editor
Split live GFM Markdown editor with DOMPurify sanitization, TOC, word stats and HTML/PDF export.
Markdown to HTML Converter
Convert GFM Markdown to sanitized HTML with live preview and standalone document export.
HTML Formatter & Validator
Beautify, minify, validate HTML, convert to JSX/Markdown and preview safely.