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.

    About this tool

    Convert HTML to Markdown and strip scripts, styles, nav and noise for LLM context. Configurable headings, code blocks and links. Free, client-side, no uploads. HTML to Markdown Converter runs in the browser on DevTools. There is no signup, and your input stays on this device unless the tool explicitly performs a live network lookup.

    What this tool does not do

    • HTML to Markdown Converter is a free in-browser utility, not a hosted API. It does not keep server-side history and is not a substitute for production verification in your own stack.

    How do I use this tool?

    1. How do I use HTML to Markdown Converter?

      Open HTML to Markdown Converter, enter or paste your input, and copy the result. The page works without an account.