Home Text Tools Encoding Hashing Generators Developer Converters Text Styles Image Tools

HTML to Markdown Converter

Convert HTML to Markdown syntax. Transforms headings, bold, italic, links, and lists.

All processing happens in your browser. No data is sent to any server.
Input (HTML) 0
Output (Markdown) 0

How It Works

This tool parses HTML using the browser's DOMParser and recursively walks the resulting DOM tree, converting each element to its Markdown equivalent. Headings (h1-h6) become hash-prefixed lines, strong/b tags become **bold**, em/i tags become *italic*, and anchor tags become [text](url) links.

Lists (ul/ol) are converted to Markdown list syntax with proper prefixes (- for unordered, numbers for ordered). Code elements become backtick-wrapped inline code, and pre/code blocks become fenced code blocks. Images are converted to ![alt](src) syntax, and blockquotes use > prefix notation.

Paragraphs are separated by double newlines, and line breaks are converted to Markdown line breaks. All processing happens in your browser.