HTML to Markdown — Convert Pages, Posts & Rich Text
Paste HTML (or rich text straight from a web page) and get clean GitHub-flavoured Markdown.
🔒 Runs in your browser — files never uploaded ⚡ No signup 💯 Free
Simplified layout on small screens — the full version is on desktop.
Turn HTML into Markdown: paste the source of a page, a CMS export, or simply rich text copied from a browser or Word — the tool notices HTML on the clipboard and uses it. Headings, lists, links, images, code blocks, blockquotes, tables, task lists and strikethrough all convert; the options let you match your house style for bullets, emphasis and code fences.
Everything runs in your browser. The HTML is parsed by an inert DOM parser, so scripts in a pasted page are never executed.
How to use HTML to Markdown Converter
- Paste HTML — or copy formatted text from a web page and paste it here; the underlying HTML is used automatically.
- Pick your style: dash or asterisk bullets, fenced or indented code, underscore or asterisk emphasis.
- Keep GFM on for tables and task lists; turn it off for strict CommonMark output.
- Copy or download the Markdown. The counter shows how many elements had no Markdown equivalent.
What survives and what can't
Markdown covers the structure of a document: headings, paragraphs, emphasis, links, images, lists, quotes, code, horizontal rules, and (with GFM) tables, task lists and strikethrough. Everything else — colours, fonts, alignment, spans, iframes, embedded video, forms, nested layout divs — has no representation and is dropped, keeping only its text. That is not a flaw in the converter; it is what Markdown is for. The "tags with no Markdown" counter tells you how much of that was in your input so you know what to check.
Copying from a web page
When you copy text from a browser, the clipboard carries both plain text and HTML. This tool reads the HTML flavour, so the fastest way to convert an article is: select it on the page, copy, click into the empty box here, paste. Headings, links and lists come through intact. Word and Google Docs do the same, though Word's HTML is notoriously verbose — expect a lot of unmappable spans counted, harmlessly.
Style options
- Bullets —
-is the most common convention (and what Prettier emits);*is the original Markdown default. - Code blocks — fenced (
```) is universal today and carries a language hint; indented is the CommonMark original and works where fences aren't supported. - Emphasis —
_italic_/**bold**reads best in source;*italic*/__bold__is the alternative style.
Tables
GFM tables need a header row and simple cells. Merged cells (rowspan/colspan), nested lists inside cells and multi-paragraph cells cannot be expressed and are flattened; if a table looks wrong in the output, that is usually why. The reverse converter renders your result so you can check it.
Frequently asked questions
Can I convert a whole web page?
Yes — view the page source, copy everything, paste. Only the <body> content is converted, scripts and styles are stripped, and navigation menus come through as lists you can delete. Faster: select the article text on the page itself, copy, and paste — the browser puts HTML on the clipboard and the tool uses it.
Why did my table come out wrong?
Markdown tables need a header row and one line of plain text per cell. Merged cells, lists or paragraphs inside cells, and tables without a <th> row have no Markdown form and are flattened. Fix the HTML structure first, or accept a simplified table.
Is pasting HTML from an unknown site safe?
Yes. The HTML is parsed with the browser's DOMParser, which builds a document tree without executing scripts, loading images or applying styles. Nothing in the paste can run.
Where did my colours and fonts go?
Markdown has no concept of them, by design — it captures structure and leaves presentation to whoever renders it. Inline styles, <font> tags and <span> wrappers are dropped; their text is kept. The counter above the output shows how many such elements there were.
Which Markdown flavour is produced?
CommonMark with the GitHub extensions (tables, task lists, strikethrough) when GFM is on — the dialect GitHub, GitLab, Obsidian, Notion and most static-site generators read. Turn GFM off for plain CommonMark, where tables become their text content.