Convert HTML to Markdown: paste a fragment or a whole page and get clean Markdown for a README, a wiki, a static site or a prompt. Headings, paragraphs, links, images, emphasis, lists, blockquotes and code blocks are converted, and the language of a <code class="language-js"> block is kept on its fence.


With the GitHub option on, tables become pipe tables, <del> becomes ~~strikethrough~~ and checkboxes become task lists. Scripts and styles are dropped, and HTML that has no Markdown equivalent is kept as HTML, which most Markdown renderers accept.


The conversion uses Turndown and runs in your browser: the HTML is parsed, never rendered or sent anywhere. To go the other way, use the Markdown Preview .

Frequently asked questions

What HTML can be converted to Markdown?

Headings, paragraphs, links, images, bold and italic text, lists, blockquotes, line breaks, horizontal rules and code blocks. With the GitHub option on, tables, strikethrough and task lists are converted too.

What happens to HTML that Markdown cannot express?

Elements with no Markdown equivalent, such as a table with merged cells, are kept as HTML, which most Markdown renderers accept. Scripts and styles are dropped.

Is the HTML rendered or sent anywhere?

No. It is parsed in your browser to read its structure, without running scripts or loading images, and nothing is uploaded.

Related tools