HTML to Markdown Converter

Strip HTML tags and convert any webpage HTML to clean, portable Markdown.

Format Conversion100% private

HTML to Markdown Converter

Strip HTML tags and convert any webpage HTML to clean, portable Markdown.

<!-- Click Convert to generate Markdown -->

How it works

  1. 1
    Paste your HTMLDrop in HTML from a webpage, email, or document. The live sanitization strips tracking pixels and scripts.
  2. 2
    Convert to MarkdownTurndown parses the cleaned HTML and outputs clean, portable Markdown with GFM support (tables, task lists, strikethrough).
  3. 3
    Copy or downloadCopy the Markdown to your clipboard or download it as a .md file.

Frequently asked questions

What HTML elements are converted?
Headings, paragraphs, bold, italic, links, images, lists (ordered and unordered), code blocks, blockquotes, tables, and horizontal rules are all converted to their Markdown equivalents.
Does it handle messy HTML?
Yes. DOMPurify sanitizes the input first, stripping scripts, event handlers, and unsafe elements. Turndown then converts the cleaned DOM to Markdown gracefully, even with nested or unusual structures.
What's the difference between this and just copying text?
Copying text loses all formatting. This tool preserves the document structure - headings become # headings, lists become Markdown lists, links become [text](url), and so on.

Related tools