CSS Portal

HTML to Markdown Converter

Paste your HTML below, or a whole web page, and get clean Markdown back instantly. Headings, links, images, nested lists, code blocks and blockquotes are converted, along with GitHub Flavored Markdown tables, task lists and strikethrough. Scripts, styles and other page clutter are left out. Everything runs in your browser, so your content never leaves your computer.

Need to go the other way? Use our Markdown to HTML Compiler.

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee

HTMLInput

MDOutput

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee

About HTML to Markdown Converter

Markdown is a lightweight markup language that uses plain-text symbols for formatting: # for headings, * for emphasis, - for lists. It's the standard for README files, documentation, static site generators and many content management systems. Converting HTML to Markdown is useful when you're moving content from a website or CMS into one of these, or simply want an easier format to edit.

Here's an example of HTML and the Markdown this tool produces from it:

HTML
<h2>Shopping list</h2>
<p>Pick up <strong>fresh</strong> bread
   and <em>ripe</em> fruit.</p>
<ul>
  <li>Bread</li>
  <li><a href="https://example.com">Recipe</a></li>
</ul>
<table>
  <tr><th>Item</th><th align="right">Price</th></tr>
  <tr><td>Apples</td><td align="right">$3</td></tr>
</table>
Markdown
## Shopping list

Pick up **fresh** bread and *ripe* fruit.

- Bread
- [Recipe](https://example.com)

| Item   | Price |
| ------ | ----: |
| Apples |    $3 |

Features

  • Whole pages or snippets – paste a fragment or a complete web page. The <head>, scripts, styles and form controls are dropped, leaving just the content.
  • GitHub Flavored Markdown – tables (with column alignment and neatly padded columns), task lists from checkboxes, and strikethrough.
  • Your preferred style – choose # or underlined headings, the bullet character, fenced or indented code blocks (fenced blocks keep the language, such as ```css), and inline or reference-style links.
  • Nothing lost – elements Markdown has no syntax for, such as <kbd>, <sup> or embedded video, can be kept as HTML, which Markdown allows. Characters that would accidentally be read as Markdown are escaped.
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee