Free Tools Grid

HTML to Markdown Converter

Developer Tools

Convert HTML back into clean Markdown. Useful for moving rich-text content into Markdown-first systems like static site generators, GitHub, and documentation tools.

Runs entirely in your browser
Loading tool...

About HTML to Markdown Converter

The HTML to Markdown Converter takes rich HTML — from a CMS export, an email template, a Notion page, or a copy-paste from a webpage — and produces Markdown that's clean enough to commit to Git or paste into a static site. It uses `turndown` plus the GitHub-Flavored Markdown plugin, so tables, strikethrough, and task lists convert correctly.

Structural elements (headings, lists, links, images, code blocks) translate to their Markdown equivalents. Styling-only HTML (`<span>`, inline styles, classes) is stripped, since Markdown has no concept of presentation. The output uses ATX-style headings (`#`, `##`) and fenced code blocks (`` ``` ``), which is the modern convention used by most documentation tools. Conversion runs entirely in your browser.

How to use

  1. 1

    Paste your HTML

    Drop the HTML — full document or fragment — into the left editor.

  2. 2

    Read the Markdown output

    The right panel shows the Markdown in real time. Headings become `#`, links become `[text](url)`, and so on.

  3. 3

    Copy or download the Markdown

    Use Copy or Download (.md) to save the converted Markdown.

Examples

Article-style HTML

Headings, paragraphs, links, and lists translate cleanly.

Input

<h1>Hello</h1>
<p>A <strong>bold</strong> intro with <a href="https://example.com">a link</a>.</p>
<ul>
  <li>one</li>
  <li>two</li>
</ul>

Output

# Hello

A **bold** intro with [a link](https://example.com).

- one
- two

Tables (GFM)

Tables become GitHub-flavored Markdown tables.

Input

<table>
  <thead><tr><th>Tool</th><th>Done</th></tr></thead>
  <tbody><tr><td>Formatter</td><td>Yes</td></tr></tbody>
</table>

Output

| Tool | Done |
| --- | --- |
| Formatter | Yes |

Frequently asked questions

What HTML features don't convert cleanly?+

Anything that doesn't have a Markdown equivalent: inline styles, classes, layout containers (`<div>`s used purely for spacing), and `<iframe>`s. These are usually dropped or flattened.

Does it preserve image attributes?+

It keeps `src` and `alt`. Other attributes (`width`, `height`, `class`) are not part of Markdown image syntax and get dropped.

Can it handle a full HTML page?+

Yes — just paste the whole page. The converter focuses on the body content; `<head>` is ignored.

Is GitHub-Flavored Markdown supported?+

Yes, GFM (tables, strikethrough, task lists) is enabled by default.

Is my HTML sent anywhere?+

No. Conversion runs locally in your browser via Turndown.