HTML to Markdown

Convert HTML into tidy Markdown — headings, lists, tables, links and code blocks included.

100% private — everything runs in your browser

How to Use

  1. 1

    Paste the HTML you want to convert, or load the sample.

  2. 2

    Click Convert to Markdown — scripts, styles and navigation are dropped.

  3. 3

    Copy the Markdown or download it as a .md file.

Examples

Article body

Input

<h1>Hi</h1><p>Text</p>

Output

# Hi

Text

Docs page

Input

HTML with tables and code

Output

Markdown with pipe tables and fences

FAQ

What gets removed?

Scripts, styles, iframes, forms and navigation are stripped so the output is just content.

Does it keep tables?

Yes. Simple tables become GitHub-style pipe tables.

Can I convert a whole page?

Paste the page source, but expect some cleanup — view-source output includes menus you may need to trim.

Related Tools