HTML to Markdown
Convert HTML to Markdown in seconds. Paste HTML, get clean Markdown output, then copy it for docs, wikis, and content migrations. No installs needed.
HTML to Markdown
SIMILAR TOOLS
What this does
So you have got content as HTML, from a web page, a CMS, or an old article, and you need it as Markdown instead, maybe for a docs site or a wiki. This converts it. Paste your HTML, click Convert, and you get clean Markdown back, ready to copy.
How to use it
- Paste your HTML into the box.
- Click Convert.
- Copy the Markdown output with the Copy button.
How it works
The conversion is handled by Turndown, a library built for exactly this job. It walks through your HTML and rewrites each piece in Markdown: headings become # lines, links become [text](url), lists become dashes or numbers, and bold and italic get their asterisks. It runs in your browser, so your content is not uploaded anywhere.
What converts cleanly
Turndown handles the everyday building blocks of a document well. Headings, paragraphs, links, images, lists, blockquotes, and inline code all come across neatly, which covers most of what you find in article and page content.
Where it gets less tidy is the stuff Markdown was never designed to hold. Markdown is deliberately simple, so things like complex tables, styled <div> layouts, or custom elements do not always have a neat Markdown equivalent. When that happens, Turndown either simplifies them or leaves them as plain HTML, which is allowed inside Markdown anyway. For ordinary content it is smooth, and for the unusual bits it is worth a quick look over the result.
Questions people ask
What kind of HTML converts best?
Ordinary document content: headings, paragraphs, links, images, lists, blockquotes, and inline code. These all map neatly onto Markdown.
Why is some HTML still in my output?
Markdown cannot express everything HTML can, so things like complex tables or styled containers may be left as HTML, which is valid inside Markdown.
What heading style does it use?
The # style, where each level of heading is marked with one or more hash characters at the start of the line.
Is my content uploaded?
No. The conversion runs in your browser, so nothing you paste leaves your machine.
References
- Turndown. An HTML to Markdown converter written in JavaScript. https://github.com/mixmark-io/turndown
- John Gruber. Markdown. https://daringfireball.net/projects/markdown/
Sugam Baskota is a senior software engineer and Computer Science graduate from UT Arlington, with interests in user scripts, browser extensions, developer tooling, and productivity systems. He spends time building practical utilities and extensions in the kinds of workflows Eon is designed to simplify. At Eon Tools, he reviews useful, password, and developer tools.