DevTools Logo

HTML to Markdown Converter

HTML to Markdown Converter

Paste HTML or load an .html file and get clean, LLM-ready Markdown — noise stripped, options configurable, fully in your browser.

HTML Input

Try a sample:

Details

The HTML to Markdown Converter transforms raw HTML into readable Markdown using the battle-tested Turndown library. It supports all common HTML elements — headings (h1–h6), bold, italic, links, images, ordered and unordered lists, blockquotes, code blocks, and tables. You can customise the heading style (ATX `#` signs vs setext underlines), the bullet-list marker (`-`, `*`, or `+`), and whether fenced (triple-backtick) or indented code blocks are emitted. Conversion happens entirely in your browser — no HTML is sent to a server.

Examples

Blog article HTML to Markdown

<!-- Input -->
<h1>My Article</h1>
<p>An intro with <strong>bold</strong> and <em>italic</em>.</p>
<ul>
  <li>First point</li>
  <li>Second point</li>
</ul>

<!-- Output (ATX headings, dash bullets) -->
# My Article

An intro with **bold** and _italic_.

- First point
- Second point

Headings become ATX-style hashes, inline formatting is preserved as Markdown emphasis, and list items use the configured bullet marker.

Code snippet with fenced blocks

<!-- Input -->
<pre><code class="language-js">const x = 42;</code></pre>

<!-- Output (fenced style) -->
```
const x = 42;
```

When the fenced code-block style is selected, pre/code elements become triple-backtick blocks instead of 4-space-indented blocks.