All tools

HTML to Markdown Converter

Convert HTML to clean Markdown, in GitHub Flavored Markdown or CommonMark.

Optional serverPasted HTML is converted in your browser. Using From URL sends the URL to SpeedyTools servers.
Share:
Options
Input
About HTML to Markdown

This tool converts HTML to Markdown. You can choose GitHub Flavored Markdown or CommonMark and set options for the output. Use it to migrate content, clean up web pages, or prepare documentation.

Markdown flavors

GitHub Flavored Markdown

GFMRecommended

Extended syntax with tables, strikethrough, and task lists

CommonMark

Standard

The standard Markdown specification, supported by most Markdown tools

Supported elements
Headings (h1-h6)
Bold, italic, code
Links and images
Ordered and unordered lists
Blockquotes
Tables (GFM)
Task lists (GFM)
Images with alt text
Use cases

CMS migration

Convert HTML content from WordPress to Markdown for Jekyll/Hugo

Documentation

Convert HTML docs to Markdown for README files

Content import

Import HTML articles into Markdown-based publishing platforms

Email to docs

Convert HTML email templates to Markdown documentation

Frequently asked questions

How do I convert HTML to Markdown?

Paste your HTML code and click Convert to Markdown. The tool replaces each HTML tag with its Markdown equivalent.

What HTML elements are supported?

Headings, paragraphs, bold, italic, links, images, lists, code blocks, and blockquotes. With GitHub Flavored Markdown selected, it also converts tables, strikethrough, and task lists.

Why convert HTML to Markdown for AI?

Markdown keeps a page's headings, lists, and links without the tags, attributes, and scripts of HTML, so the same content takes up less of a prompt.

Are tables preserved?

Yes, when the GitHub Flavored Markdown (GFM) flavor is selected. HTML tables become GFM table syntax.

What about inline styles and classes?

The converter drops inline styles and classes. Markdown describes content structure, not presentation.

Can I convert entire webpages?

Yes. Switch to From URL and enter the page address. Our server fetches the page, pulls out the main article content, and the tool converts that to Markdown. If you paste HTML instead, paste just the part you need rather than the whole page source.

Privacy first

Conversion happens in your browser, and HTML you paste never leaves your device. When you convert from a URL, our server fetches that page for you.