HTML to Markdown

Convert HTML to clean Markdown.

No upload

Loading tool…

Processing happens on your device using your browser's CPU/GPU. Results are kept only in this tab's memory and are wiped when you click “Clear” or close the page.

About HTML to Markdown

HTML to Markdown does the reverse trip: paste HTML from a web page, a CMS export or an email template and get clean Markdown as you type. Headings, lists, links, images, code and tables are converted; the wrapper divs and inline styles are dropped. Useful when moving content out of a website into notes or a repository. The conversion happens entirely in your browser.

How to use HTML to Markdown

  1. Paste your HTML into the left pane, or use Open file to load a .html file.
  2. The Markdown appears on the right immediately, updating as you edit.
  3. Tidy anything that came through oddly, such as leftover layout wrappers.
  4. Copy the Markdown or download it as a .md file.

What people use it for

  • Moving old blog posts out of a CMS into Markdown files for a static site
  • Converting documentation copied from a web page into notes for Obsidian or Notion
  • Cleaning marketing HTML down to plain content before rewriting it
  • Preparing a README from a rendered help page

Good to know

Headings use the hash style, code blocks are fenced and bullet lists use a dash. Structural HTML such as divs, spans, classes and inline styles has no Markdown equivalent and is simply dropped, so heavily nested page markup may need tidying afterwards. Paste the article content rather than a whole page source for the cleanest result.

Frequently asked questions

Do tables convert?
Simple HTML tables convert to Markdown pipe tables. Tables with merged cells or nested markup have no Markdown equivalent and may need to be rebuilt by hand.
What happens to CSS and classes?
They are discarded. Markdown carries no styling information, so only the structure and content survive the conversion.
Can I paste a whole web page's source?
You can, but you will get a lot of navigation and footer text. Copy just the article element for a much cleaner result.
Are images kept?
Yes. Image tags become Markdown image links pointing at the same URLs, so the images still load wherever those URLs are reachable.