Skip to content

Convert HTML to Markdown

Convert HTML code to Markdown text, sanitizing the source HTML before processing it.

Processed on your device. Nothing is sent to any server.

Sanitizes the HTML by removing scripts and dangerous content, then translates the equivalent HTML tags (headings, bold, links, lists) to Markdown syntax, using the more common # heading style.

Use cases

  • Converting HTML content exported from a CMS to Markdown for a README.
  • Preparing HTML text to paste into a Markdown note or document.
  • Simplifying complex HTML into structured plain text.

How it works

  1. 1

    Paste your HTML

    Type or paste the HTML code into the input box.

  2. 2

    Convert it

    Click Convert and copy or download the resulting Markdown.

Technical details

  • It converts headings (ATX-style #), paragraphs, bold, italics, links, images, lists, blockquotes and code blocks.
  • Tables aren't converted to Markdown tables: their content ends up as loose text, one cell after another. Review them by hand.
  • Scripts and dangerous content are removed before converting; styles, classes and attributes Markdown can't represent are lost.

Frequently asked questions

Does it preserve the original HTML's CSS styles?

No, Markdown doesn't support CSS styles; only the semantic structure (headings, emphasis, links, lists) is preserved.

← Data