HTML to Markdown

Paste HTML and get clean Markdown — headings, links, lists, code, and tables preserved. Runs entirely in your browser, no upload, no sign-up.

Markdown

HTML to Markdown

Paste an HTML fragment or a whole page body and get clean Markdown back. The conversion runs locally in your browser (WebAssembly) — nothing is uploaded.

What it preserves

Good for

FAQ

Is my HTML uploaded?

No — the converter is compiled to WebAssembly and runs entirely in your browser tab.

Does it run scripts or fetch the page?

No. It only parses the HTML you paste; it does not execute JavaScript or fetch remote URLs.

Do I have to paste a complete HTML document?

No — a fragment like a single <table> or a copied <div> works just as well as a full page. Parsing uses html5ever, the same engine family browsers use, so unclosed or slightly malformed tags are repaired the way a browser would render them. The only hard error is empty input.

What happens to classes, ids, and inline styles?

They're dropped. Markdown has no way to express class, id, or style attributes, so the converter keeps the structure Markdown can represent — headings, links, images, lists, code, tables, blockquotes, emphasis — and discards presentational attributes. If you need the styling, keep the HTML.

Developer & Automation Access

Run it from the terminal

Same engine as this page, headless — via the gizza CLI:

gizza tool html-to-markdown '<h1>Title</h1><p>Hello <a href="https://x">world</a></p>'

New to the CLI? Get gizza →

Open it by URL

Pre-fill and auto-run this tool with query parameters — the names match the API/CLI:

https://gizza.ai/tools/html-to-markdown/?html=%3Ch1%3ETitle%3C%2Fh1%3E%3Cp%3EHello%20%3Ca%20href%3D%22https%3A%2F%2Fx%22%3Eworld%3C%2Fa%3E%3C%2Fp%3E

Machine-readable descriptor: tool.json — title + parameters JSON Schema for agents.