HTML to Markdown Converter
Turn HTML — from a web page, CMS or email — into clean Markdown for GitHub, docs, notes or AI prompts. Choose your heading and list style.
Runs in your browser — your code is never uploaded. Tip: drop a file on the input box, or press Ctrl + Enter.
How to Convert HTML to Markdown
Three steps from HTML to clean Markdown.
Paste or Upload HTML
Paste HTML code or upload an .html file.
Choose a Style
Pick heading, bullet and code block style. Scripts and styles are removed by default.
Copy or Download
Copy the Markdown or download document.md.
Output
Clean Markdown
Style
Headings, bullets, code
Removes
Scripts & styles
Privacy
Runs in your browser
Works on
Phone & computer
Price
100% free
HTML to Markdown Cheat Sheet
How common tags are converted.
| HTML | Markdown |
|---|---|
<h2>Title</h2> | ## Title |
<strong> / <em> | **bold** / *italic* |
<a href="url">text</a> | [text](url) |
<img src="a.png" alt="A"> |  |
<ul><li> / <ol><li> | - item / 1. item |
<pre><code> | ``` fenced block |
<div>, <span> | Text only (or kept as HTML) |
What Can You Use It For?
Popular ways people use HTML to Markdown Converter.
GitHub & Docs
Move web pages into README files, wikis and docs sites.
AI Prompts
Give ChatGPT or Claude clean Markdown instead of messy HTML.
Notes Apps
Save articles to Obsidian, Notion or Joplin.
CMS Migration
Move WordPress posts to Markdown-based sites like Hugo or Jekyll.
Tips for the Best Result
- Markdown has no tables in the basic version — tick Keep unsupported tags to keep tables as HTML.
- Paste only the main content of a page for the cleanest result.
- Check the result with Markdown to HTML preview.
- Need a PDF? Use Markdown to PDF.
Frequently Asked Questions
Quick answers about HTML to Markdown Converter.
Paste the HTML or upload an .html file. The Markdown appears instantly — copy it or download it.
By default only their text is kept. Tick Keep unsupported tags to keep tags like div, span and table as HTML inside the Markdown.
Yes, when Remove scripts & styles is ticked (default). Forms, iframes and embeds are removed too.
# Heading (ATX) is the most common and works everywhere. Underlined (Setext) only works for H1 and H2.
Yes. Paste the page source; you may want to remove menus and footers for a cleaner result.
Yes. The output works on GitHub, GitLab, Obsidian, Notion, Hugo and Jekyll.
No. Everything runs in your web browser, so your code and data never leave your device.
Yes — 100% free, with no sign-up and no limits.
Related Free Tools
Ready to Use HTML to Markdown Converter?
Scroll up and get your result in seconds. 100% free, no sign-up needed.
Start Now