HTML to Markdown
Convert HTML markup to clean Markdown format.
Paste an HTML fragment and get the equivalent Markdown, with headings, lists, links, tables and code blocks all translated to their Markdown forms. Inline-only elements without a Markdown equivalent are preserved as raw HTML so no content is silently lost.
Common use cases: migrating posts from a WYSIWYG CMS to a Markdown-based static site, cleaning up an email or rich-text snippet before pasting into a docs file, converting Notion/Google Docs exports for version control, and turning AI-generated HTML answers into reviewable Markdown.
HTML
Markdown
Frequently asked questions
Which HTML elements does it convert?
<div> with classes) are unwrapped or skipped depending on context.Will styles, classes and IDs survive?
How are tables handled?
Why are some inline elements left as raw HTML in the output?
<sub>, <sup>, video embeds). The converter prefers raw HTML over silent data loss when no clean Markdown equivalent exists.Other Formatters
View all tools →JSON Formatter
Format and validate JSON with syntax highlighting
SQL Prettify
Format and beautify SQL queries
Markdown to HTML
Convert Markdown to HTML
YAML to JSON
Convert YAML format to JSON with syntax validation
JSON to YAML
Convert JSON to YAML format for configuration files
CSS Minifier
Minify CSS to reduce file size and improve performance
CSS Beautifier
Format and beautify minified CSS code