About this tool
Turn HTML into Markdown for a README, a docs site, a static-site generator or a note-taking app. Paste HTML source, drop an .html file, or copy part of any web page or document and paste it straight in: with Paste as HTML on, the formatting you copied (headings, lists, links, bold, tables) is converted rather than lost.
What gets converted
- Headings, paragraphs, bold, italic, links, images, block quotes, horizontal rules and line breaks.
- Ordered, unordered and nested lists, with your choice of bullet character.
<pre><code>blocks as fenced code, keeping the language fromclass="language-js".- With GitHub options on: tables, strikethrough (
~~text~~) and task lists (- [x] done).
Scripts, styles and comments are dropped. HTML with no Markdown equivalent, such as <video>, forms or complex tables with merged cells, is kept as HTML, which most Markdown renderers display as-is.
Choosing a style
The defaults (# headings, - bullets, fenced code, _italic_ and **bold**) match what Prettier and most style guides produce. References collects link URLs at the end of the document, which keeps paragraphs readable when there are many long links.
To go the other way, use Markdown to PDF or Markdown to Word. The conversion uses Turndown and runs in your browser.
FAQ
How do I convert a web page to Markdown?
Select the content on the page, copy it, and paste it into the input box with “Paste as HTML” on. The formatting is converted to Markdown.
Are tables supported?
Yes, with “GitHub tables and task lists” on. Simple tables become Markdown tables; tables with merged cells stay as HTML because Markdown can’t express them.
Does it keep code block languages?
Yes. A class like language-python on the <code> or <pre> element becomes ```python.
What happens to scripts and styles?
They are removed. Only the content is converted.
Is my HTML uploaded?
No. The conversion runs in your browser.