HTML to Markdown Converter
Paste HTML and get clean Markdown, with headings, links, lists, tables and code blocks converted instantly.
How it works
Paste HTML on the left and the Markdown equivalent is written on the right as you type โ
there is no convert button to press. The page parses your HTML with the browser's own
DOMParser into an inert document (scripts, styles and embeds are dropped and
never run), then walks that tree and writes CommonMark: headings become
# lines, <strong> and <em> become
**bold** and *italic*, links become
[text](url), images become , and
<pre><code> becomes a fenced code block with the language taken
from a language-โฆ class.
Lists nest properly โ ordered lists keep their start number and checkbox
items become GitHub task lists โ and tables are rewritten as GitHub-flavoured Markdown
tables (untick the option to keep the original table HTML instead). Characters that would
otherwise be read as Markdown syntax are escaped, so text like 2 * 3 survives
the round trip. Pick your bullet marker, optionally flatten links to plain text, then copy
the result or download it as a .md file. Everything runs in JavaScript on your
device โ nothing is uploaded, which matters when the HTML is an internal page, a newsletter
draft or a client export.
Frequently asked questions
How do I convert HTML to Markdown?
Paste your HTML into the left box and the Markdown appears in the right box as you type, so there is no convert button. Headings become # lines, <strong> and <em> become **bold** and *italic*, <a> becomes [text](url), <img> becomes , and <pre><code> becomes a fenced code block. Then press Copy Markdown or download the result as a .md file.
Does it convert HTML tables and code blocks to Markdown?
Yes. Tables are rewritten as GitHub-flavoured Markdown tables with a header row and separator line, and you can untick that option to keep the original table HTML instead. Code inside <pre><code> becomes a fenced block, and a language-js or lang-python class on the <code> element is used as the fence language.
Is this HTML to Markdown converter safe for private content?
Yes. The conversion runs entirely in your browser: the HTML is parsed with the built-in DOMParser into an inert document where scripts, styles and iframes are stripped and never execute, and nothing is ever uploaded to a server. That makes it safe for internal pages, CMS exports, newsletter drafts and client documents.