HTML to Markdown Converter
Paste HTML and get clean Markdown — heading style, bullet marker, and code block style are configurable.
HTML Input
Markdown Output
Markdown appears here
Paste HTML on the left or pick 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 pointHeadings 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
HTML to Markdown Converter transforms raw HTML into clean, readable Markdown using the battle-tested Turndown library. It handles the full spectrum of common HTML — headings, bold, italic, links, images, lists, blockquotes, code blocks, and tables — and strips script and style content automatically.
Three conversion options let you tailor the output to match your project's Markdown flavour. Heading style controls whether headings are rendered as ATX hash signs or setext underlines. Bullet list marker sets the character used for unordered items: dash, asterisk, or plus. Code block style switches between fenced triple-backtick blocks and four-space-indented blocks.
Everything runs locally in your browser. No HTML is uploaded to any server, making the tool safe for use with private or sensitive content.
How to use
Paste and convert HTML
Paste your HTML into the input box; the Markdown result updates as you type. Use the sample chips to see a conversion immediately.
Adjust conversion options
Change the heading style (ATX # vs setext), the bullet-list marker (-, *, or +), and whether code blocks are fenced or indented. The output refreshes automatically.
Copy the Markdown output
Click Copy Markdown to copy the result to your clipboard.
Supported HTML elements
| HTML element | Markdown output |
|---|---|
| h1 – h6 | # Heading (ATX) or underline (setext) |
| strong / b | **bold** |
| em / i | _italic_ |
| a href | [text](url) |
| ul / li | - item (or *, +) |
| pre / code | fenced ``` or indented |
| table | GFM pipe table |
Frequently asked questions
Related tools
CSS Grid Generator
Visually build CSS Grid layouts — set columns, rows and gaps, see a live preview, and copy production-ready grid-template CSS.
Flexbox Playground
Visually configure a CSS flexbox container — set direction, alignment, wrap and gap, see a live preview, and copy production-ready CSS.
Border Radius Generator
Visually craft CSS border-radius values — including the advanced 8-value slash syntax for organic blob shapes — with a live preview and one-click copy.
Cubic Bezier / Easing Generator
Build a CSS cubic-bezier() timing function visually — drag control points, preview common presets, see the easing curve live, and copy the transition-timing-function CSS.
Barcode Generator
Generate barcodes in 8 formats (CODE128, EAN13, UPC, and more) — configure line width, height, and text display, then download as SVG or PNG.
CSV to JSON Converter
Paste CSV data and convert it to pretty-printed JSON instantly — supports custom delimiters, header row toggling, and value trimming.