About this tool
HTML to Markdown is a free, in-browser converter that rewrites HTML markup as clean Markdown while you type. Paste or edit HTML and the equivalent Markdown appears live, ready to copy.
Conversion uses the browser's own DOM: your input becomes a detached element's innerHTML, then a recursive walker emits Markdown, so malformed or unclosed tags are normalized just as a browser would render them. It handles headings, bold, italic, links (via the href attribute), inline code, fenced code blocks, line breaks, paragraphs, blockquotes, and ordered and unordered lists.
Everything runs locally — no uploads, no accounts, no tracking, and it works offline. Tags it does not map, such as images, tables, or horizontal rules, are unwrapped, so their text still passes through without any Markdown syntax added.
Frequently asked questions
Which tags are supported?
Headings (h1–h6), bold (strong/b), italic (em/i), links (a), inline code, preformatted blocks (pre), unordered and ordered lists, blockquotes, line breaks, and paragraphs. Ordered lists are numbered sequentially.
Does it run on a server?
No. It parses your HTML in the browser with a detached DOM node — a div created in memory — so nothing is uploaded, and it works offline.
What happens to tags it doesn't support?
Elements it doesn't map, such as images, tables, and horizontal rules, are unwrapped: any text inside them passes through, but no Markdown is generated for the tag. Only the href attribute of links is read; other attributes are ignored.
How does it handle whitespace and code?
Whitespace in ordinary text is collapsed to single spaces, while the contents of inline code and pre blocks are preserved verbatim. A br tag becomes a hard line break.
More tools