HTML to Markdown Convert
Convert HTML back into tidy Markdown source.
HTML to Markdown is a free online tool that convert HTML back into tidy Markdown source. It runs entirely in your web browser using plain JavaScript, so files are processed on your own device and never uploaded to a server. There is no sign-up, no file size limit imposed by the site, no watermark and no paid tier.
- Price
- Free — no account, no quota, no watermark
- Category
- Convert
- Where it runs
- In your browser, on your device
- Files uploaded
- None
- Technology
- plain JavaScript
- Settings
- None — it just works
- Works offline
- Yes, after the first visit
About HTML to Markdown
HTML is converted to Markdown by walking the parsed DOM rather than by pattern-matching the source, so malformed markup and unusual nesting are handled the way a browser would handle them. HTML is the larger language, so some things have no Markdown equivalent — nested tables, arbitrary attributes, inline styles — and those are either preserved as raw HTML, which Markdown permits, or dropped.
How to use it
- Paste the text you want to run through html to markdown.
- There is nothing to configure — the result updates as you type.
Under the hood
| Runs on | plain JavaScript — runs the whole thing |
Questions
What happens to elements Markdown cannot express?
They stay as inline HTML, which every mainstream Markdown renderer passes through. That keeps the content rather than losing it.
Are tables converted?
Simple tables become GitHub-flavoured Markdown tables. Tables with merged cells cannot be — Markdown has no colspan — so those remain HTML.