HTML to Markdown converter

Paste HTML code, or copy formatted text from any page and paste it here. Get clean GitHub Flavored Markdown back.

What converts, and how

The converter uses Turndown with its GitHub Flavored Markdown plugin, then tidies the result. Headings, paragraphs, bold, italic, links, images, lists, blockquotes, code blocks (with their language- class kept as the fence language), strikethrough and simple tables all have direct Markdown equivalents.

What can’t be represented

  • Styling: colours, fonts, sizes and CSS classes. Markdown is structure only.
  • Merged table cells: kept as HTML because pipe tables can’t span.
  • Layout: columns, grids and positioned elements are flattened into reading order.
  • Forms, scripts, iframes: removed.

Typical uses

Moving a blog from WordPress to a static site generator like Hugo, Astro or Jekyll; turning a Google Doc into a README; saving an article as notes in Obsidian; or cleaning up HTML email copy. After converting, run the output through the Markdown formatter to align tables and normalise lists.

Questions people ask

How do I convert HTML to Markdown?
Paste HTML (or copy a section of any web page and paste it into the rich-text box) and the Markdown appears on the right. Copy or download it as .md.
Can I convert a web page by copying it?
Yes. Choose “Paste rich text”, then paste what you copied from a browser, Google Docs or Word. The formatting is read from the clipboard’s HTML.
Are tables converted?
Yes, simple HTML tables become GFM pipe tables. Tables with merged cells (colspan/rowspan) have no Markdown equivalent and are kept as HTML.
What is removed?
Scripts, styles, iframes and presentational attributes. Markdown describes structure, so colours, fonts and layout are dropped.

Related tools