How do I convert HTML to Markdown?
Paste the HTML into the left pane or open an .html file. The Markdown appears on the right; choose Copy Markdown or Download .md.
FREE HTML TO MARKDOWN CONVERTER
Paste HTML code, or copy part of a web page or Google Doc and paste it here. You get clean GitHub Flavored Markdown with headings, links, lists, tables and code blocks. Free, and nothing leaves your browser.
Runs in your browser: nothing is uploaded and scripts in the HTML never run. Converts headings, paragraphs, bold, italics, links, images, lists, tables, code and quotes to GitHub Flavored Markdown. Layout, colours and fonts are not kept.
Converting HTML to Markdown keeps the structure of a page (headings, emphasis, links, lists and tables) and drops what Markdown can't express, such as layout, colours, fonts and scripts. The result is plain text that is easy to read, edit and keep in version control.
It's a common way to save articles to a notes app such as Obsidian, move documentation into a repository, or give an AI model clean text instead of a page full of tags.
| HTML | Markdown | Element |
|---|---|---|
<h2>Title</h2> | ## Title | Heading |
<strong>, <b> | **text** | Bold |
<em>, <i> | *text* | Italic |
<a href="url"> | [text](url) | Link |
<img src alt> |  | Image |
<ul><li> | - item | List |
<table> | | a | b | | Table |
<pre><code> | Fenced code block | Code |
WHEN YOU KEEP DOCS AS MARKDOWN
Once your pages are Markdown, you need a good way to read them. Aero Markdown for Mac opens .md files and whole folders rendered, follows links between documents and works offline, with no account.
7-day free trial · no payment details · macOS 14+
Paste the HTML into the left pane or open an .html file. The Markdown appears on the right; choose Copy Markdown or Download .md.
Select the part of the page you want in your browser, copy it, and paste it into the left pane. The page's formatting is pasted as HTML and converted, so headings, links and lists are kept.
Yes. Select the content in Google Docs, copy it and paste it here. Headings, bold, italics, links, lists and tables are converted, and Google Docs' hidden formatting wrappers are removed.
Yes. HTML tables become GitHub Flavored Markdown tables with a header row. Cells that contain block content, such as lists, are flattened to text.
Yes. The HTML is parsed without running it, and scripts, styles and embedded frames are removed from the output.
No. The conversion runs in your browser tab with the open-source Turndown library. Nothing is sent to a server or stored.