Bold text and a link
Convert <p>This is <strong>important</strong>: <a href="https://example.com">visit</a></p> to get "This is **important**: [visit](https://example.com)", with inline formatting mapped straight to Markdown syntax.
Convert HTML to clean Markdown online, keeping headings, links, lists and code — free.
About
Paste HTML — copied from a web page, an email, or exported from a CMS — and get clean Markdown back instantly, using Turndown, which understands the structure of headings, links, images, nested lists and code blocks rather than just stripping tags and losing the formatting.
Turndown's default style is used: h1 and h2 headings come out underlined with === and ---, h3 and below use # marks, bullets use *, and code blocks are indented by four spaces rather than fenced with backticks. Most Markdown editors read all of these; switch them to # headings and ``` fences by hand if your platform prefers that style.
Examples
4 worked examples
Convert <p>This is <strong>important</strong>: <a href="https://example.com">visit</a></p> to get "This is **important**: [visit](https://example.com)", with inline formatting mapped straight to Markdown syntax.
Convert <ul><li>Fruit<ul><li>Apple</li></ul></li></ul> to get a "* Fruit" line with "* Apple" indented four spaces beneath it, preserving the nesting.
Convert a <table> with headers A and B and one row 1 and 2, and you get A, B, 1 and 2 as separate lines of text — Turndown has no Markdown table syntax, so rebuild the table by hand or with the Markdown Table Generator.
<pre><code>let x = 1;</code></pre> converts to the line " let x = 1;" — indented four spaces, the classic Markdown code block.
FAQ
Quick answers to common questions about the HTML to Markdown Converter.
Paste your HTML above and click "HTML → Markdown". The converted Markdown appears in the output box — everything runs in your browser, using the Turndown library.
Nested lists convert properly, with * bullets and each level indented four spaces. Tables don't: Turndown on its own has no table syntax, so each cell comes out as its own line of plain text. Rebuild tables with the Markdown Table Generator.
No. Markdown has no concept of CSS classes or inline styles, so those are dropped; only structural formatting Markdown actually supports (headings, bold, italic, links, images, lists and code) is preserved.
Yes. It's free, with no sign-up and no limit on how much you convert.
Yes — the same tool handles both directions. Click "Markdown → HTML" instead, or use the dedicated Markdown to HTML converter page.
No. The conversion runs directly in your browser — nothing is uploaded to a server.
Turndown writes code blocks in the classic indented style, where every line starts with four spaces, which all Markdown renderers understand. Switch to fenced ``` blocks by hand if your platform needs a language label for syntax highlighting.
Strikethrough tags such as <del> lose their formatting and only the text is kept. The contents of <script> and <style> tags come through as plain text, so delete those elements from the HTML before converting.
Turndown writes level-1 and level-2 headings in setext style — underlined with = or - signs — and levels 3 to 6 with # marks. Both styles are valid Markdown and render the same as # and ## headings.
Did HTML to Markdown Converter work for you?