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
- 1Paste your HTMLDrop in HTML from a webpage, email, or document. The live sanitization strips tracking pixels and scripts.
- 2Convert to MarkdownTurndown parses the cleaned HTML and outputs clean, portable Markdown with GFM support (tables, task lists, strikethrough).
- 3Copy 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
Markdown to HTML Converter
Convert Markdown text to clean, semantic HTML instantly in your browser.
HTML to PDF Converter
Convert HTML snippets to PDF with perfect visual fidelity using in-browser rendering.
Markdown Studio
Write Markdown with live preview, math, diagrams, syntax highlighting, and PDF export.