Paste HTML and get Markdown for headings, lists, links and code. Runs locally.
Convert common HTML to Markdown. Best effort for headings, lists, links, emphasis and code. Runs in the page.
What the HTML to Markdown tool does
Paste HTML and get Markdown back for headings, paragraphs, bold, italic, links, lists, code blocks and blockquotes. It is a quick way to move content into a Markdown editor or CMS.
Frequently asked questions
Does it handle every HTML element?
It covers the common ones; unusual or nested elements may not convert perfectly, so check the output.
Will my HTML be uploaded?
No. Parsing and conversion happen in the page.
Is there a Markdown to HTML tool too?
Yes — see the Markdown to HTML tool for the other direction.
How to use it
- Paste your HTML source into the input box labelled
Paste HTML here…. - Review the preview so you know exactly which elements are included before converting.
- Click the Convert button to run the parsing locally in the page.
- Copy the Markdown output from the result area and paste it into your editor or CMS.
Where it comes in handy
You have a set of WordPress posts exported as HTML and need to move them into a static-site generator that only accepts Markdown. The bulk conversion removes the heavy tag markup in one pass instead of rewriting each post by hand.
A project wiki still lives on an old server that serves raw HTML. You are migrating it to GitHub and need every page in .md format so the repository renders correctly without additional plugins.
You receive a PDF export that was converted to HTML by a third-party tool and contains cluttered markup. Converting it to Markdown lets you strip out the noise and keep only the headings, lists, links and code blocks you actually need.
Worth knowing
- The converter handles common elements such as
<h1>through<h6>,<ul>,<ol>,<a>,<code>, and<blockquote>. More unusual or deeply nested elements may not translate perfectly. - All processing runs in the browser. No HTML is uploaded to a server, so sensitive content stays on your machine.
- Image tags, custom data attributes, and inline style declarations are stripped rather than converted, because Markdown has no equivalent syntax for them.