HTML to Markdown Converter

HTML to Markdown Converter turns HTML back into clean Markdown. It parses the markup with the browser's own HTML engine and walks the document, mapping headings, formatting, links, images, lists, blockquotes, code blocks and tables to their Markdown equivalents.

It runs entirely in your browser, so you can paste content from any page or template and get portable Markdown without sending anything to a server.

Markdown to HTML
HTML input0 chars
Markdown output
The result appears here as you type.

How to use HTML to Markdown Converter

  1. 1

    Paste your HTML

    Drop in an HTML fragment or a whole document body.

  2. 2

    Get the Markdown

    Tags are converted to Markdown live, with unsupported wrappers unwrapped to their content.

  3. 3

    Copy or download

    Copy the Markdown or download a .md file for your docs or README.

How the HTML is converted

The converter parses your HTML into a real DOM and walks it node by node. Headings become #-prefixed lines, <strong>/<em> become ** and *, <a> and <img> become Markdown links and images, <ul>/<ol> become bullet or numbered lists (including nested ones), <blockquote> becomes >, <pre><code> becomes a fenced block, and <table> becomes a pipe table.

Wrapper elements such as <div> and <span> are unwrapped to their content, and runs of whitespace are collapsed so the Markdown stays tidy.

Great for migrating content

Turning legacy HTML articles into Markdown is a common step when moving to a static site generator or a Markdown-based CMS. This tool gives you a fast, local way to convert page bodies without copy-paste reformatting.

Pair it with the Markdown to HTML converter to round-trip content or to preview how your Markdown will render.

Frequently asked questions

Does it convert tables and lists?
Yes. HTML tables become pipe tables, and <ul>/<ol> lists become Markdown lists, including nested lists.
What happens to <div> and <span>?
Generic wrapper elements are unwrapped — their text content is kept while the tags themselves are dropped.
Is my HTML uploaded?
No. Parsing and conversion happen entirely in your browser using its built-in HTML parser.

Last updated: