Markdown & Convert

HTML to Markdown

Convert HTML back into clean Markdown - headings, lists, links, tables.

HTML input

Markdown output

About this tool

Paste rendered HTML (from a blog, a CMS export, or copy-pasted from a webpage) and get back well-formed Markdown. Heading levels, links, emphasis, lists, blockquotes, code blocks and tables are preserved. Unknown tags fall through as inline HTML so you don't lose content.

FAQs

Is the conversion lossless?

HTML is richer than Markdown - nested tables, complex inline styles, and custom elements don't round-trip. Standard prose, lists, code, and links convert cleanly.

What happens to <style>, <script>, classes?

They're stripped - Markdown has no concept of CSS or JS. If you need to preserve styling, keep it as HTML rather than converting.

Does it handle tables?

Yes - simple HTML tables convert to GFM Markdown table syntax. Tables with rowspan or colspan can't be represented in Markdown and are kept as raw HTML inside the output.

Will it strip &nbsp;, BOM and smart quotes?

Whitespace is normalised (consecutive spaces collapsed, &nbsp; → space, BOM removed). Smart quotes are preserved verbatim - they're valid characters.

Can I paste a whole HTML page?

Yes - everything inside <body> is converted, <head> is ignored. Inline scripts and styles are stripped before conversion.

Other tools