curly{bits}

curlybits / HTML to Markdown

HTML to Markdown Converter

Paste HTML to turn it into clean, readable Markdown for a README, documentation, notes or a static site. Headings, lists, links, images, code blocks and tables are converted, and anything Markdown can't express is left as plain text.

HTML
Markdown

How to use the HTML to Markdown Converter

  1. Paste HTML into the left box, or open an .html file.
  2. The Markdown appears on the right as you type.
  3. Pick your style: # or underlined headings, - or * bullets, and fenced or indented code blocks.
  4. Copy or download the .md file.

What gets converted

HTMLMarkdown
<h2>Title</h2>## Title
<strong>, <em>**bold**, *italic*
<a href="…">[text](url)
<img src="…" alt="…">![alt](src)
<ul>, <ol>- item, 1. item
<pre><code>Fenced code block, with the language when it's marked
<table>GitHub-style pipe table
<blockquote>, <hr>> quote, ---

Scripts, styles, forms and comments are removed. Characters that mean something in Markdown, like * or _ in ordinary text, are escaped so they show up as written. To go the other way, use Markdown to HTML.

Frequently asked questions

Is my HTML uploaded?

No. It's converted in your browser.

Which Markdown flavor is the output?

GitHub-flavored Markdown (GFM): fenced code blocks, pipe tables and ~~strikethrough~~.

Can I convert a whole web page?

Yes. Paste its HTML source. Navigation, scripts and styles are dropped, but you may want to delete menus and footers by hand.

Updated

Add this HTML to Markdown converter to your website

Free for blogs, schools and businesses. Copy the code below and paste it into your page's HTML. The tool works exactly like this one and runs in your visitors' browsers, so nothing is uploaded. Please keep the credit line so others can find it too.

Preview embed ↗