How to convert HTML to Markdown
Strip the styling, classes, and clutter out of HTML and get clean, portable Markdown back — ideal for rescuing web content into notes, docs, or a CMS migration.
Copy a section of a web page and you usually get a mess: nested <div>s, inline styles, tracking classes, and spacing that fights whatever you paste it into. HTML to Markdown throws all of that away and keeps only the content, as clean Markdown.
What converts
The tool walks the HTML and maps structural elements back to Markdown:
- Headings (
<h1>–<h6>) →#…###### <strong>/<em>→**bold**/*italic*<a href>→[text](url)<ul>/<ol>→ bullet and numbered lists<blockquote>→>quotes<pre><code>→ fenced code blocks<table>→ a GitHub-flavored Markdown table
What gets dropped — on purpose
This is a cleanup tool, so it discards everything that doesn't survive as plain text:
- Styles and classes — colors, fonts, layout,
style=""attributes. - Scripts and tracking —
<script>, analytics, ad markup. - Wrapper
<div>/<span>soup — collapsed down to the content inside.
That's the whole point. You end up with the words and structure, not the website's design.
Where it shines
- Migrating a CMS. Pull old posts out of one system as Markdown so they import cleanly into the next.
- Saving an article into your notes app or a Markdown vault without the visual noise.
- Cleaning AI or rich-text output that arrived as HTML when you wanted Markdown.
A quick sanity check
After converting, glance at the links and headings. Sites occasionally wrap a heading in a link or bury it in styling, so an <h2> can come through as plain bold text. Re-mark anything important with #, and confirm the links point where you expect.
Everything runs in your browser — the HTML is never uploaded — so it's fine for internal pages and gated content. When you're ready to publish the cleaned text back to the web, Markdown to HTML closes the loop.