loot.tools

HTML to Markdown

Paste HTML and get Markdown back. Headings, bold, italic, strikethrough, links, images, ordered and unordered lists, blockquotes, inline and fenced code, and tables all convert. Unknown tags fall back to their text content so nothing gets dropped. Runs fully client-side.

Paste HTML to convert it to Markdown. Headings, bold, italic, links, images, lists, blockquotes, code, and tables all carry over. Anything else falls back to its text so you never lose words.

HTML
Markdown

What this tool does

Paste an HTML snippet - a page section, an email body, content copied from a CMS - and it walks the markup and writes the matching Markdown. Block elements like headings, paragraphs, lists, blockquotes, and tables keep their structure, and inline formatting like bold, italic, links, and code stays intact.

Why convert HTML to Markdown

Markdown is easier to read, diff, and store than HTML. If you're moving content into a static site, a README, a wiki, or a docs tool that speaks Markdown, starting from the HTML you already have beats retyping it. It's also handy for cleaning up the messy markup you get when copying from a webpage or a word processor.

How it handles unknown tags

Tags it doesn't have a Markdown equivalent for (a <span>, a <mark>, a custom element) are unwrapped to their text content rather than dropped, so the words survive even when the styling can't. Script and style blocks are removed. Characters that would be read as Markdown syntax are escaped so your text renders the way it looked.