Skip to main content
Back to tools

HTML to Markdown

Convert HTML markup to Markdown syntax

About HTML to Markdown

Turns an HTML fragment into Markdown with one click, ready to paste into a README, wiki or static-site post. The converter is a lightweight pattern-based one: common tags become their Markdown syntax and everything else is reduced to plain text, so it suits simple content better than full web pages. Everything runs in your browser.

Category: Converters.

Frequently asked questions

What HTML elements are converted?

▾

Headings h1 to h6 become # headings, strong/b and em/i become bold and italic, and links, images, inline code, pre blocks, list items, blockquotes, line breaks, horizontal rules and paragraphs get their Markdown equivalents. Script and style blocks are removed along with their content.

What happens to tables, nested lists and other unsupported markup?

▾

Tags without a rule, such as table, div, span or del, are stripped and only their text is kept, so table cells run together and nested lists are flattened. Ordered lists become hyphen bullets without their numbering, and formatting inside headings is dropped.

Is the output GitHub Flavored Markdown?

▾

No, it is basic Markdown: # headings, ** and * emphasis, hyphen bullets and triple-backtick code blocks without a language hint. GFM extensions such as tables, task lists and strikethrough are not generated.

Are HTML entities decoded?

▾

Only the most common ones: &, <, >, ", ', ' and  . Other named or numeric entities, such as © or —, are left as they are.

Related tools