HTML → Markdown Converter

Convert HTML responses or pastes to clean markdown.

Ad placeholder (leaderboard)

HTML to markdown

The web is HTML, but your notes, READMEs, and LLM prompts want markdown. When you copy a rich-text block, scrape a page, or get HTML back from a model, you need it as clean markdown — real ## headings and - bullets, not a wall of <div> and <span>. This converter parses the HTML in your browser and emits tidy markdown.

How it works

The tool feeds your HTML into the browser’s native DOMParser, producing a document tree, then recursively walks that tree. Each element maps to its markdown equivalent — <h2> becomes ##, <strong> becomes **, <li> becomes -, <table> becomes a pipe table — while <script> and <style> are dropped and unknown tags are unwrapped so their text survives.

<h2>Title</h2>            ->  ## Title
<a href="x">link</a>      ->  [link](x)
<ul><li>one</li></ul>     ->  - one

Tips and notes

Messy pastes from Word or Google Docs carry a lot of inline-style noise; the walker ignores styling attributes, so the markdown stays clean. Nested lists indent correctly. For the reverse direction use the Markdown to HTML converter, and to pull just the data out of HTML tables, the Markdown Table Extractor pairs well once you’ve converted.

Ad placeholder (rectangle)