1xA2ZOne Data. Any Format.
Live syncLocal-first · no data upload

Convert HTML to Markdown

Paste HTML into the left editor and the Markdown tab on the right shows the matching Markdown. Edit either side and the other follows.

Runs entirely in your browser. Your data is never uploaded. Tiếng Việt

01

Editor

DocsWordGmailNotionMarkdown
0 words
Ready · LocalPaste here from Google Docs, Word, Gmail, Notion
02

Live Output

Markdown
SyncedEdit the code here; the editor on the left updates itself
0 characters
Every change is processed right in your browserUTF-8 · by xuanhieu.org

When you need to convert HTML to Markdown

You convert HTML to Markdown when moving old articles into a docs repository, a README, an internal wiki or a static site generator. The hard part is that real HTML has everything: deeply nested tags, inline styles and tags that mean nothing in Markdown. The tool keeps what carries structure and drops decoration, so the result is short and readable.

How to do it

  1. Paste the HTML into the Editor editor on the left. You can also paste selected content straight from a web page and the tool reads the HTML that comes with it.
  2. Check the left editor: headings, lists and tables should have the right structure. Fix anything wrong right there.
  3. Open the Markdown tab on the right (already selected here), then ⚙ Options to choose the list marker, heading style and hard line break style.
  4. Press Copy result or Download file to get an .md file.

A real example

The HTML table becomes a GFM table, strong becomes double asterisks, the mailto link is kept and the blockquote becomes a line starting with a greater-than sign.

Input · HTML · HTML on the clipboard

<h1>Returns policy</h1><p>You can exchange an item within <strong>7 days</strong> of delivery. Contact <a href="mailto:support@example.com">support@example.com</a> and we will guide you.</p><h2>Conditions</h2><ul><li>The product still has its tags</li><li>You have the receipt or order number</li></ul><h2>Refund times</h2><table><thead><tr><th>Method</th><th>Days</th></tr></thead><tbody><tr><td>Card</td><td>5 to 7</td></tr><tr><td>Bank transfer</td><td>1 to 2</td></tr></tbody></table><blockquote><p>End-of-season sale items cannot be returned.</p></blockquote>

Result · Markdown

# Returns policy

You can exchange an item within **7 days** of delivery. Contact [support@example.com](mailto:support@example.com) and we will guide you.

## Conditions

- The product still has its tags
- You have the receipt or order number

## Refund times

| Method        | Days   |
| ------------- | ------ |
| Card          | 5 to 7 |
| Bank transfer | 1 to 2 |

> End-of-season sale items cannot be returned.

Options worth changing

Bullet character
The default is a hyphen. Switch to an asterisk or plus sign if your docs repository has its own convention.
Heading style
ATX uses hash marks, while Setext underlines with equals signs and hyphens but only for levels 1 and 2. Keep ATX if you need all six levels.
Keep underline and sub/superscript as HTML tags
Markdown has no underline or superscript or subscript, so those go out as HTML tags. Turn it off for plain Markdown, at the cost of losing those styles.

Common problems

Limits

Frequently asked questions

Can I paste a whole web page?

You can, but paste only the article part. Menus, footers and ads turn into text too if they are in the markup you paste.

Does an HTML table become a Markdown table?

Yes, when the table is a regular grid. The first row is used as the column header.

Why is a relative link not exactly what I pasted?

Unsafe addresses such as javascript are removed. Relative addresses are kept as the string you pasted.

Is my data sent to a server?

No. Every step runs in your browser.

Related conversions

1xA2Z · Guide

Document statistics

Most frequent words