100% CLIENT-SIDE • NO SERVER UPLOAD

HTML to Markdown Converter

Paste HTML, get clean Markdown. Supports headings, links, images, lists, tables, code blocks, bold, italic, and more.

Conversion Reference

HTMLMarkdownNotes
<h1>...</h1># Headingh1-h6 supported
<strong>**bold**Also <b>
<em>*italic*Also <i>
<a href="...">[text](url)Inline or referenced
<img src="...">![alt](src)With title if present
<ul><li>- itemNested supported
<ol><li>1. itemNested supported
<pre><code>```code```Fenced or indented
<code>`inline`Inline code
<blockquote>> quoteNested supported
<table>GFM tableWith alignment
<hr>---Horizontal rule
<br>Two spaces + newlineLine break
<del>/<s>~~strikethrough~~GFM extension

Free HTML to Markdown Converter

Convert any HTML content to clean, readable Markdown with this free online tool. Whether you're migrating a blog from WordPress to a static site generator, converting documentation, or just need to work with Markdown, this tool handles all common HTML elements.

When to Use HTML to Markdown

Supported Elements

This converter handles: headings (h1-h6), paragraphs, bold/italic/strikethrough, links (inline and referenced), images with alt text, ordered and unordered lists (including nested), code blocks (fenced and indented), inline code, blockquotes (including nested), horizontal rules, line breaks, and GFM tables with alignment.

Privacy

All conversion happens in your browser. Your HTML content is never sent to any server. There's no tracking, no analytics, no data collection. The tool is 100% client-side JavaScript.

📝 Need a Markdown editor with live preview?

Try our Markdown Preview — write and preview Markdown side-by-side.

🛠 55+ Free Developer Tools

JSON formatter, regex tester, image compressor, and more — all free, all client-side.

Browse All Tools →

Frequently Asked Questions

What is Markdown and why convert HTML to it?

Markdown is a lightweight markup language using plain text formatting symbols like # for headings and ** for bold. Converting HTML to Markdown is useful for importing web content into documentation systems, static site generators, CMS platforms, or GitHub READMEs. It strips complex HTML and produces clean, readable plain text with simple formatting.

Which HTML elements are supported in Markdown conversion?

Most converters support headings (h1-h6), paragraphs, bold and italic text, links, images, ordered and unordered lists, blockquotes, inline code, code blocks, and tables. Elements without Markdown equivalents — like div, span, forms, or scripts — are typically stripped or converted to plain text. Custom HTML attributes and inline styles are usually dropped.

Does HTML to Markdown conversion preserve links and images?

Yes. HTML anchor tags become Markdown links: [link text](url). HTML img tags become Markdown images: ![alt text](image-url). Relative URLs are preserved as-is. Title attributes can optionally be included. Most converters handle nested elements within links correctly, though complex styled links may lose formatting.

What is the difference between CommonMark and GitHub Flavored Markdown?

CommonMark is a standardized Markdown specification with unambiguous syntax rules. GitHub Flavored Markdown (GFM) extends CommonMark with tables, strikethrough, task lists, and syntax-highlighted code fences. GFM is the format used in GitHub READMEs, issues, and pull requests. Most documentation platforms support GFM or a close variant.

Can I convert a full webpage to Markdown?

You can paste any HTML fragment or full page body into the converter. For full pages, paste just the main content HTML to avoid nav, footer, and sidebar clutter in the output. Our converter processes whatever HTML you paste and outputs clean Markdown instantly in your browser without uploading anything.

Related Free Tools

Markdown Preview HTML Minifier HTML Entities Text Diff README Generator