HTML to Markdown
Paste HTML, get clean Markdown with the links and lists intact.
Free, no signup, and it runs entirely in your browser.
HTML
Markdown
Output appears here.About this tool
Most HTML-to-Markdown converters are a stack of regular expressions, and they fail on the first thing anyone actually pastes: a list inside a blockquote, or a link inside a table cell. This one parses the HTML into a real document tree and walks it, so nesting comes out the way it went in.
- Script, style and noscript content is dropped rather than flattened into the text, which is what produces those converters that emit a page of minified JavaScript.
- Tables become Markdown tables, with pipe characters inside cells escaped so a cell containing a | does not silently split into two columns.
- Code inside a pre block is emitted as a fenced block; code inline stays inline. Getting this backwards is the most common conversion bug.
- Runs entirely in your browser using the DOM parser already built into it. Nothing is uploaded.
Questions
- Does it keep links and images?
- Yes. Anchors become [text](href) and images become . An anchor with no href is reduced to its text rather than dropped.
- What happens to CSS and inline styles?
- They are discarded. Markdown has no way to express them, and carrying them through as inline HTML would defeat the point of converting.
- Can I convert a whole web page?
- Paste the page source and it will work, though you will get the navigation and footer too. Copying just the article region gives a far cleaner result.