HTML to Markdown
Convert pasted HTML into tidy Markdown with headings, lists, links, quotes, code, tables, copy controls, and a private side-by-side workspace.
🔒 This tool runs entirely in your browser. Your files are never uploaded to a server.
Conversion desk
HTML source to Markdown output
A complete example is loaded. Paste an article, email template, or rich-text HTML.
How it works
- Paste HTML into the source pane or begin with the complete sample.
- The browser walks the document tree and maps semantic elements to Markdown syntax.
- Choose the heading and bullet style, and decide whether link URLs should remain.
- Copy the clean Markdown or download it as a .md file.
From document tree to plain text
The source is parsed as a DOM tree rather than altered with a single regular expression. Each element is converted according to its meaning: an h2 becomes a level-two heading, strong text receives two emphasis markers, list items receive bullets or numbers, and links combine their label with the destination.
<strong>Important</strong> becomes **Important**
<a href="/guide">Guide</a> becomes [Guide](/guide)
Whitespace is normalized after traversal so block elements remain separated without producing a page full of empty lines.
FAQ
Is pasted HTML uploaded anywhere?
No. The browser parses the source and writes the Markdown in the current tab. Copying and downloading also use local browser features, so the content does not need to be sent to a server.
Which HTML elements are converted?
The interface handles common document structure including headings, paragraphs, bold, emphasis, deletion, links, images, ordered and unordered lists, quotes, horizontal rules, inline code, code blocks, and basic tables.
What happens to scripts and styles?
Script, style, and noscript blocks are discarded because they do not have a meaningful Markdown equivalent and could contain executable or presentation-only content. Unknown structural elements keep their readable child text.
Can I remove link destinations?
Yes. Turn off Keep link destinations to retain the visible anchor text without the URL. This is useful when cleaning copied navigation or link-heavy web content.
Will the output exactly reproduce the webpage?
No. Markdown represents document meaning, not pixel-perfect layout. CSS, complex grids, forms, media players, interactive components, and many custom attributes have no direct Markdown equivalent.
How we compare
| Feature | Online Tool Store | Manual cleanup | Rich text editor |
|---|---|---|---|
| Semantic HTML traversal | Automatic | Manual | Paste behavior varies |
| Heading and bullet controls | Included | Manual | Editor dependent |
| Markdown copy and download | Both | Must create file | Often export dependent |
| Pixel-perfect webpage recreation | Not the goal | Possible with effort | Rich text only |
Use HTML to Markdown when the goal is a clean README, documentation page, note, or CMS migration. Keep HTML when exact layout, styling, or interaction must survive.