HTML to Markdown Converter

Paste in HTML, get clean Markdown. Handles headings, lists, tables, links, and code blocks. Runs locally in your browser.

100% Free
Privacy-First
Instant Conversion

HTML Input

Markdown Output

Markdown output will appear here

Start typing HTML on the left

Why Convert HTML to Markdown?

HTML Is for Browsers, Markdown Is for Humans

HTML does its job for web pages, but it's a pain to read and edit by hand. All those nested <div> and <p> tags make it hard to find the actual content. Markdown strips away the noise. I added this tool because I kept needing to move content from websites into docs, and copy-pasting HTML into a Markdown file is a recipe for broken formatting. If you ever need to go the other way, there's a Markdown to HTML converter too, plus a Markdown to Excel converter for table data.

Markdown Plays Nice with Git

Markdown files are plain text. That means `git diff` shows you exactly what changed, line by line. With HTML, a tiny content edit might touch 5 lines because of tag changes. If your team reviews documentation in pull requests, Markdown diffs are way easier to read than HTML diffs.

Works Everywhere Without Dependencies

HTML pages often depend on external CSS to look right. Take away the stylesheet and everything breaks. Markdown looks correct on GitHub, in VS Code, in Obsidian — anywhere — with no stylesheet needed. That portability is why it's become the default format for documentation. If your data is in table format, you might also want the CSV to Markdown or Excel to Markdown converters.

When You'd Actually Use This

Migrating a Blog to a Static Site

Moving from WordPress or another HTML-based CMS to Hugo, Jekyll, or Astro? Export your posts as HTML, paste them in here, and you've got Markdown files ready for your new content directory. I've done this migration myself — it beats rewriting 50 posts by hand.

Saving Web Content as Notes

Found a useful tutorial or reference page? View the page source, grab the article HTML, and convert it to Markdown for your Obsidian vault or personal wiki. You keep the headings, links, and code blocks without all the wrapper divs and ad containers.

Turning Email Content into Docs

Someone sends a formatted email with a process description or a how-to guide. View the email source, copy the HTML body, convert it to Markdown, and you've got a doc you can commit to your team's wiki. No retyping needed.

Cleaning Up CMS Content

Rich text editors in CMS platforms tend to generate messy HTML — empty spans, unnecessary classes, inline styles. Converting to Markdown and back gives you clean, minimal markup. It's like running a formatter on your content.

What Makes This Converter Good

⚡

Converts as You Paste

No submit button, no loading spinner. The Markdown output updates live as you type or paste HTML into the input.

🔒

Nothing Leaves Your Browser

The page runs JavaScript locally. Your HTML content stays on your machine — there's no server to send it to.

📝

Idiomatic Markdown Output

The output follows standard conventions — ATX headings, fenced code blocks, proper link syntax. It's not just "technically valid," it's Markdown you'd actually write.

👁️

Side-by-Side Preview

See your HTML input and Markdown output next to each other. Makes it easy to spot anything the conversion missed.

💰

Free, No Strings

No account, no email, no "free tier with limits." Just open the page and use it.

📥

Download or Copy

Save as a .md file or copy to clipboard with one click. Either way, you've got your Markdown in seconds.

Frequently Asked Questions

It covers the ones you'd actually use: headings (h1 through h6), paragraphs, bold, italic, links, images, ordered and unordered lists, tables, code blocks (both inline and fenced), blockquotes, and horizontal rules. Basically, if there's a Markdown equivalent for the tag, the converter knows how to produce it.
Paste your HTML into the left panel — or click Upload to load an .html file from your computer. The Markdown appears on the right side instantly as you paste. From there, hit Copy to grab it or Download to save it as a .md file. There's also a Sample button if you want to see how it works before pasting your own code.
They get stripped out. Markdown is a plain-text format, so there's no concept of font-size: 14px or class="highlight". The converter focuses on the HTML structure — what's a heading, what's a list, what's bold — and ignores the visual styling. If your content relies heavily on CSS for meaning (like color-coded text), you'll lose that context.
No, and that's on purpose. Script tags, event handlers, and embedded JS are all removed during conversion. The tool is built for content, not for converting web apps. If you paste in a whole React component, you'll get the text content but none of the logic.
Nope. I built the conversion to run entirely in the browser. Your HTML doesn't get sent to any server — the JavaScript on this page does all the parsing locally. Close the tab and everything's gone.
A tag stripper gives you raw text with no formatting at all — you lose headings, you lose links, you lose list structure. This converter preserves structure by turning tags into their Markdown equivalents. <strong> becomes **bold**, <a href> becomes [text](url), <h2> becomes ## Heading. You keep the document's shape.
You can paste in any HTML, but for best results, use the content portion — the stuff inside the main article or body. If you paste a full page with nav menus, sidebars, and footers, those will all convert to Markdown too, which probably isn't what you want. View Source, copy the relevant section, and paste that.
GitHub, GitLab, Bitbucket, Notion, Obsidian, Confluence, Jira, Reddit, Stack Overflow, Discord, Slack, Hugo, Jekyll, Docusaurus — the list goes on. Markdown is pretty much everywhere now. If you need spreadsheet output instead, try the Markdown to Excel converter.
Free, no sign-up. We also have Markdown to HTML for the reverse direction, plus Markdown to CSV and Excel to Markdown if you need those.