FREE HTML TO MARKDOWN CONVERTER

HTML to Markdown, from code or a copied page.

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.

Updated · By the Aero Markdown team

Example loaded. Paste HTML code, or copy part of a web page or Google Doc and paste it here: the formatting is converted, not just the text.
HTML or rich text
Markdownpage.md

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.

How to convert HTML to Markdown

  1. Paste HTML or a page. Paste HTML code into the left pane, open an .html file, or copy content from a web page, Word or Google Docs and paste it: the formatting comes with it.
  2. Check the Markdown. The Markdown appears on the right as you paste. Choose the list marker and whether to keep images.
  3. Copy or download. Choose Copy Markdown, or Download .md to save it as a Markdown file for your notes, docs or repository.

How HTML elements become Markdown

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 elements and their Markdown equivalents
HTMLMarkdownElement
<h2>Title</h2>## TitleHeading
<strong>, <b>**text**Bold
<em>, <i>*text*Italic
<a href="url">[text](url)Link
<img src alt>![alt](src)Image
<ul><li>- itemList
<table>| a | b |Table
<pre><code>Fenced code blockCode

WHEN YOU KEEP DOCS AS MARKDOWN

A reader for your Markdown folder.

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.

Download for MacDownload

7-day free trial · no payment details · macOS 14+

Have a Word document?

Convert a .docx file to Markdown with headings, lists and tables intact.

Convert Word to Markdown

Saving whole pages?

Drop menus and ads with Reader view, convert Google Docs, and batch-convert pages with Pandoc.

Web page to Markdown guide

FAQ

HTML to Markdown questions.

More free Markdown tools

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.

How do I convert a web page to Markdown?

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.

Can I convert a Google Doc to Markdown?

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.

Are tables converted?

Yes. HTML tables become GitHub Flavored Markdown tables with a header row. Cells that contain block content, such as lists, are flattened to text.

Is it safe to paste HTML with scripts?

Yes. The HTML is parsed without running it, and scripts, styles and embedded frames are removed from the output.

Is my content uploaded?

No. The conversion runs in your browser tab with the open-source Turndown library. Nothing is sent to a server or stored.