HTML to Markdown

Convert HTML to clean readable Markdown instantly. Strips HTML tags and preserves content structure.

HTML input
0 chars
Markdown output
0 chars
Options:
Use the Send output to buttons below to pass Markdown to other tools
Send Markdown output to:
Send HTML input to:

Ctrl + L clear  |  Ctrl + Shift + C copy output

Why convert HTML to Markdown

Markdown is more readable than HTML in raw form, easier to write and edit by hand, and is the standard format for developer documentation, README files, and many content management systems. Converting HTML to Markdown lets you move content from websites, legacy CMS exports, or HTML editors into a Markdown-based workflow. Static site generators like Jekyll, Hugo, and Gatsby all work natively with Markdown.

What gets converted

All common HTML elements with Markdown equivalents are handled. Heading tags h1 through h6 become hash symbols. Bold tags become double asterisks. Italic tags become single asterisks. Strikethrough becomes double tildes. Code tags become backticks. Pre and code blocks become fenced code blocks. Anchor tags become Markdown links. Image tags become Markdown image syntax. Lists, tables, blockquotes, and horizontal rules all convert correctly.

What gets stripped

HTML elements with no Markdown equivalent — div, span, section, aside, nav, header, footer — are stripped with their text content preserved. Class names, IDs, and style attributes are removed, giving clean Markdown focused on content structure.

Frequently asked questions

How do I convert HTML to Markdown?

Paste your HTML into the input panel and clean Markdown appears instantly on the right — headings become hashes, bold becomes asterisks, links become bracket syntax. Tags with no Markdown equivalent are stripped while their text survives, and presentation clutter like classes, IDs and inline styles is discarded entirely. The result is content-focused Markdown ready for a README, wiki, static site generator or documentation system.

Can I use this to clean up copied web content?

Yes — that is the most common use. HTML copied from web pages, CMS exports and rich-text editors arrives wrapped in layers of divs, spans and styling attributes that make it painful to reuse. Run it through the converter and all of that scaffolding disappears, leaving just the readable structure: headings, paragraphs, lists, links. Writers use this to rescue their own articles from old platforms, and developers use it to migrate legacy content into Markdown-based systems.

Can I convert a whole webpage to Markdown?

You can paste an entire page's HTML source, but you will get better results pasting just the fragment you want — the article body rather than the full document. A complete page includes navigation menus, sidebars, footers and cookie banners, all of which convert to noise text you would then delete by hand. Right-click the content area and use "Inspect" to copy the specific element's HTML, or copy the rendered text selection, for a much cleaner conversion.

Will tables and images survive the conversion?

Yes. HTML tables convert to GitHub Flavored Markdown pipe tables, which render correctly on GitHub and most modern platforms — though very complex tables with merged cells lose that structure, since Markdown tables do not support spans. Images convert to Markdown image syntax with their alt text and source URL preserved, and images wrapped in links keep both the link and the image intact.