HTML to Markdown

Paste HTML and instantly convert it to clean Markdown — headings, lists, links, code, and more.

About this HTML to Markdown converter

This tool converts HTML into Markdown entirely in your browser using JavaScript's DOM parser — no server calls required. It handles the most common HTML elements used in documents and web pages: headings (h1h6), paragraphs, bold and italic text (strong, em, b, i), strikethrough, links with optional titles, images, ordered and unordered lists, code spans and code blocks (with optional language hints), blockquotes, horizontal rules, tables with header separators, and generic block containers like div, section, and article.

When to convert HTML to Markdown

Developers often need to convert HTML to Markdown when migrating content from a CMS that stores content as HTML (e.g., WordPress) to a static site generator or documentation system that uses Markdown (e.g., Hugo, Jekyll, Docusaurus, Notion, GitHub Wikis). Writers and content editors use it to convert pasted web content into clean Markdown for documentation or note-taking. Developers also use it when extracting content from HTML pages to store in a more portable, human-readable format.

Supported HTML elements

The converter handles: h1h6####### headings; p → paragraphs; strong/b**bold**; em/i_italic_; del/s~~strikethrough~~; code → inline code; pre → fenced code blocks; a[text](url); img![alt](src); ul/ol/li → lists; blockquote> quotes; hr---; br → line break; and table/thead/tbody/tr/th/td → Markdown tables.