HTML to Markdown
Convert HTML markup to clean Markdown syntax.
$html input
0 chars1 lines
$markdown[READY]
0 chars1 lines
Related Tools
FAQ
- Which HTML elements are converted?
- The converter handles: h1-h6 → # headings, p → paragraphs, strong/b → **bold**, em/i → *italic*, a → [text](url), img → , ul/li → - list, ol/li → 1. list, blockquote → >, code → `code`, pre > code → code blocks. Unknown elements output their text content.
- What happens to inline CSS and attributes?
- Style attributes, class names, and other HTML attributes are not preserved in the Markdown output except for link href and image src/alt attributes, which are essential for the converted syntax.
- Can I convert a full web page to Markdown?
- You can paste the HTML source of any page. For best results, extract the main content section first rather than the entire page including navigation and footer, as those elements produce noisy Markdown.
The HTML to Markdown converter takes HTML markup and transforms it into clean, readable Markdown. Uses the browser's DOMParser to walk the DOM tree and convert elements: headings (h1-h6), paragraphs (p), bold (strong/b), italic (em/i), links (a), images (img), lists (ul/ol/li), blockquotes (blockquote), inline code (code), and preformatted code blocks (pre/code). Useful for migrating content from CMS platforms, processing HTML emails, and creating Markdown documentation from web content.