Convert HTML to clean Markdown. Compatible with CommonMark and GitHub Flavored Markdown (GFM).
Loading converter…
<article>
<h1>Project Alpha</h1>
<p>A short <strong>bold</strong> and <em>italic</em> intro with a <a href="https://example.com">link</a>.</p>
<h2>Features</h2>
<ul>
<li>Fast conversion</li>
<li>Runs <strong>entirely</strong> in the browser</li>
</ul>
<ol>
<li>Paste HTML</li>
<li>Convert it</li>
<li>Copy or download</li>
</ol>
<h2>Cover</h2>
<p><img src="https://example.com/cover.png" alt="Project cover"></p>
<h2>Code</h2>
<p>Call <code>html_to_markdown(html)</code> to convert a string.</p>
<pre><code>import init, { html_to_markdown } from "./pkg/html_2_md.js";
await init();
const md = html_to_markdown("<h1>Hi</h1>");
</code></pre>
<blockquote>
<p>Markdown is a lightweight markup language.</p>
</blockquote>
<h2>Tasks</h2>
<table>
<thead>
<tr>
<th>id</th>
<th>date</th>
<th>status</th>
<th>tags</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="https://example.com/tasks/1">#1</a></td>
<td><strong>2026-11-25</strong><br>due today</td>
<td><code>in-progress</code></td>
<td><ul><li>docs</li><li>wasm</li></ul></td>
</tr>
<tr>
<td><a href="https://example.com/tasks/2">#2</a></td>
<td><strong>2026-12-01</strong><br>next week</td>
<td><code>blocked</code></td>
<td><ul><li>review</li></ul></td>
</tr>
<tr>
<td><a href="https://example.com/tasks/3">#3</a></td>
<td><strong>2026-12-15</strong><br>later</td>
<td><code>done</code></td>
<td><ul><li>release</li><li>docs</li></ul></td>
</tr>
</tbody>
</table>
</article>
# Project Alpha
A short **bold** and *italic* intro with a [link](https://example.com).
## Features
- Fast conversion
- Runs **entirely** in the browser
1. Paste HTML
2. Convert it
3. Copy or download
## Cover

## Code
Call `html_to_markdown(html)` to convert a string.
```
import init, { html_to_markdown } from "./pkg/html_2_md.js";
await init();
const md = html_to_markdown("<h1>Hi</h1>");
```
> Markdown is a lightweight markup language.
## Tasks
| id | date | status | tags |
| -- | ---- | ------ | ---- |
| [#1](https://example.com/tasks/1) | **2026-11-25** <br>due today | `in-progress` | + docs<br>+ wasm |
| [#2](https://example.com/tasks/2) | **2026-12-01** <br>next week | `blocked` | + review |
| [#3](https://example.com/tasks/3) | **2026-12-15** <br>later | `done` | + release<br>+ docs |