📝 Developer Tools

HTML to Markdown

Paste HTML, hit Convert, and get clean, readable Markdown. It handles headings, lists, links, emphasis, code blocks and blockquotes, plus the GFM extensions tables, strikethrough and task lists. Copy the result or download it as a .md file. Everything runs in your browser.

Examples (click to try)
Paste HTML and press Convert to see the Markdown here

How to use HTML to Markdown

New here? Click one of the "Examples (click to try)" chips to drop in some sample HTML, then press "Convert to Markdown" to see the result. After that, just paste your own HTML source into the text area and convert. Switch the heading and bullet options whenever you want a different Markdown style.

  • Paste and convert: paste HTML source, press "Convert to Markdown", and each supported element is rewritten in Markdown.
  • Heading style: choose between # heading (ATX) and underlined Setext headings (=== / ---).
  • Bullet marker: start list items with - (hyphen) or * (asterisk).
  • Copy / download: copy the result with one click, or save it as a .md file.

Supported elements (GFM tables, code and more)

Headings, paragraphs, links, emphasis (bold and italics), unordered and ordered lists, code blocks, inline code, and blockquotes are all supported. On top of that, the GitHub Flavored Markdown (GFM) extensions tables, strikethrough, and task lists with checkboxes are converted to Markdown too.

When this comes in handy

  • Moving part of a web page or HTML email into a README or docs written in Markdown
  • Importing body content from a CMS or rich-text editor into a Markdown-managed repository
  • Turning a copied HTML table into a Markdown table you can paste into a GitHub issue or PR
  • Turning heavily styled HTML into text while keeping its structure (headings, lists, links)

It pairs well with the related tools. To go the other way and see how Markdown renders as HTML, use Markdown Preview (md to HTML); when you only want unformatted plain text with the tags stripped, use HTML to Text. The three tools complement each other, so you can pick the right one for the job.

FAQ

Is the HTML I paste sent to a server?
No. The HTML-to-Markdown conversion runs entirely in your browser (client-side), and the HTML you paste is never transmitted to or stored on any server. You can use it with internal documents or email HTML with confidence.
Which HTML elements can it convert to Markdown?
Headings, paragraphs, links, emphasis such as bold and italics, unordered and ordered lists, code blocks and inline code, and blockquotes. On top of that it converts GFM extensions: tables, strikethrough, and task lists with checkboxes.
How is this different from Markdown Preview or the text extractor?
This tool converts HTML into Markdown. To go the other way and see how Markdown renders as HTML, use Markdown Preview; to strip tags and keep only unformatted plain text, use HTML to Text. The three tools complement each other.