HTML to Markdown Converter
Convert HTML to clean Markdown, in GitHub Flavored Markdown or CommonMark.
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.
GitHub Flavored Markdown
GFMRecommendedExtended syntax with tables, strikethrough, and task lists
CommonMark
StandardThe standard Markdown specification, supported by most Markdown tools
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
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.
Related tools
Webpage to PDF
Convert a public URL to a PDF with cookie banners removed. Choose paper-sized pages or one long page, plus size, orientation and margins. Useful for saving articles, receipts and reports.
PPTX Viewer
View PowerPoint .pptx files in your browser as they look in PowerPoint, with charts, tables, SmartArt and speaker notes. The file is never uploaded. Free, no signup.
Text Extractor
Paste a URL and get the main text of the page without ads, navigation or sidebars. Copy it or download it as a text file. Free, no signup.