📝 HTML to Markdown

Convert HTML to Markdown format. Handles headings, links, lists, bold, italic, code, and blockquotes.

About the HTML to Markdown Converter

This converter parses your HTML in the browser using the native DOMParser, then walks the resulting DOM tree to produce clean Markdown. Nothing is uploaded — conversion happens locally with JavaScript on your device.

Supported elements

  • Headings — <h1> through <h6> become # through ######.
  • Links — <a href="...">text</a> becomes [text](href).
  • Bold — <strong> and <b> become **text**.
  • Italic — <em> and <i> become *text*.
  • Inline code — <code> becomes `text`.
  • Code blocks — <pre><code>...</code></pre> becomes a fenced ``` block.
  • Blockquotes — <blockquote> becomes > text.
  • Unordered lists — <ul><li> becomes - item.
  • Ordered lists — <ol><li> becomes 1. item.
  • Images — <img alt="..." src="..."> becomes ![alt](src).
  • Paragraphs — <p> blocks become text separated by blank lines.

Frequently asked questions

Does this tool upload my HTML? No. All parsing happens locally in your browser. Your content never leaves your device.

What about tables? Basic table support is best-effort; complex table markup may not convert perfectly. For complex tables, manual cleanup is recommended.

Are scripts and styles included? No. <script> and <style> tags are ignored during conversion.

Is there an input size limit? The only limit is your browser's available memory. Even large documents convert quickly.