HTML to Markdown Converter

Paste HTML and get clean Markdown back — headings, links, lists, code and tables converted in your browser.

This HTML to Markdown converter takes a chunk of HTML and rewrites it as readable Markdown you can drop into a README, a wiki, or a static-site post. It reads the structure directly: headings become # lines, <strong> and <em> become ** and *, anchors turn into [text](url), <img> into image syntax, and <ul>/<ol>/<table>/<blockquote>/<pre> map to their Markdown equivalents. It is a focused convert-html-to-markdown tool, so paste exported or copied HTML on the left and read the Markdown on the right. Nothing is uploaded — the whole html md converter runs on your machine.

HTML
Markdown

How it works

  1. 1

    Paste the HTML

    Drop raw or exported HTML into the left pane. Whole documents work too; scripts, styles and comments are ignored.

  2. 2

    Read the Markdown

    The right pane rewrites the markup live as you type, mapping tags to Markdown for headings, bold, links, images, lists, code and tables.

  3. 3

    Copy or save the .md

    Grab the result with Copy, or download it as a Markdown file ready for a repo or CMS.

Instant & 100% private — nothing is uploaded

Everything runs locally in your browser. Your code, text and files are processed on your own device and are never sent to a server — so there are no upload waits, no size limits from us, and nothing is ever stored or logged.

Frequently asked questions

How do I convert HTML to Markdown?
Paste the HTML into the left pane. The converter walks the tag tree and emits Markdown on the right: <h1>–<h6> become # headings, <a> becomes [text](url), <img> becomes an image link, and lists, tables, blockquotes and <pre><code> blocks all get their Markdown form. Copy it when you are happy.
Which HTML tags does the html md converter understand?
Headings, paragraphs, <strong>/<b>, <em>/<i>, <del>, inline <code>, <a>, <img>, <ul>/<ol> with nesting, <blockquote>, <pre><code> fenced blocks, <hr> and <table> (header row plus body). Unknown wrappers like <div> and <span> are passed through transparently so their contents still convert.
Does it handle sloppy or unclosed HTML?
Mostly. The parser is lenient the way browsers are — an unclosed <p> or <li> is auto-closed when the next block starts, so real-world copied markup usually converts without hand-editing first.
Is my HTML sent to a server?
No. This html to md tool runs entirely in your browser with hand-written parsing, so the content you paste never leaves the page. It keeps working offline once loaded.
What about the reverse, Markdown to HTML?
Use the Markdown to HTML converter for the other direction — it renders Markdown to HTML code with a live preview.