HTML to Markdown
Local only — nothing is uploaded unless you save or share it.
HTML to Markdown as you type: paste HTML, get clean Markdown with the rendered result beside it.
- Paste your HTML: a whole page or just a fragment.
- Pick a heading style and list bullet if you care, and check the preview beside the Markdown.
- Copy the Markdown, or download it as a .md file.
Markdown
Rendered
Scripts and styles are removed, and a link whose address is not a web, email, phone or FTP one keeps only its text. The preview never runs scripts.
Save this tool
Keep HTML to Markdown handy
Use your browser's Share menu, then “Add to Home Screen”.
Embed
Put HTML to Markdown on your website
Paste this into your page. It shows the tool, free, with a link back to it.
About this tool
Paste a page, an email template or a snippet of HTML and this HTML to Markdown converter turns it into GitHub-flavoured Markdown as you type, with the rendered Markdown beside it so you can see it came out right. It covers what documents are made of: headings, bold, italic and strikethrough, links and images with their titles, ordered, nested and task lists, code blocks that keep their language, blockquotes, tables with their column alignment, and horizontal rules. Everything else is handled deliberately rather than dropped. Scripts and styles are removed, because they are not part of what anybody reads. Tags Markdown has no syntax for, such as underline or superscript, are reduced to their text by default; switch on the option to keep them as HTML instead, which Markdown allows. Layout wrappers like div and span are unwrapped either way. Characters that would otherwise turn into formatting, a stray asterisk or a line that begins with a number and a full stop, are escaped so they stay as text. A link whose address is not a web, email, phone or FTP one, such as javascript:, keeps its text and loses the address. When you convert HTML to Markdown for a README, a wiki or a static site generator, check the preview: it is drawn by the same converter as our Markdown to HTML tool, in a sandboxed frame where nothing can run. Everything happens in your browser, so the page you paste is not uploaded.
Frequently asked questions
Which HTML tags are converted?
Headings h1 to h6, paragraphs, bold and italic, strikethrough, links, images, line breaks, ordered and unordered lists including nested ones and checkbox task lists, inline code and code blocks, blockquotes, tables and horizontal rules. A whole page works too: only the body is converted, and the head is ignored.
What happens to tags Markdown cannot express?
By default they are reduced to their text, so nothing you can read is lost. Underline, superscript, highlighted text, keyboard keys and embedded video have no Markdown syntax, so with the keep option on they are written out as HTML instead, which every Markdown renderer accepts. Layout tags like div and span are unwrapped either way, and scripts and styles are removed.
Does it handle tables?
Yes, as GitHub-flavoured Markdown tables, with the alignment of each column carried over from align or text-align. Markdown tables cannot merge cells, so a cell that spans columns is written once and the row is padded with empty cells to keep the table valid. A vertical bar inside a cell is escaped.
Is html to md conversion lossless?
For the structure Markdown has, yes: convert the result back with our Markdown to HTML tool and you get the same headings, lists, links and tables. What Markdown cannot hold, like colours, fonts, classes and layout, is not carried over, because there is nowhere in Markdown to put it.
Is the HTML uploaded anywhere?
No. The conversion runs in your browser, and the preview is drawn in a sandboxed frame with scripts disabled, so even a page with scripts in it cannot run anything while you look at it.
Help improve this tool
Found a bug, want a change, or need a tool we don't have?
You have an unsent draft.
Thanks — that's with us. You'll find the reply in your inbox.Go to my messages