HTML to Markdown

Paste HTML and get Turndown Markdown—input is sanitized before conversion.

When to use this tool

  • Migrating a CMS that exports HTML into a Markdown-native system.
  • Converting a rich-text email snippet to Markdown for a blog post.
  • Cleaning up scraped HTML into readable Markdown for notes.

How it works

  1. Paste the HTML snippet.
  2. Click convert.
  3. Copy the Markdown.
  4. Review for tables and images — those are the most common edge cases.

Privacy: This tool runs entirely in your browser. Your input is not sent to our servers.

Input is passed through sanitize-html before conversion to reduce XSS risk. Complex layouts may still need manual cleanup.

Advertisement

Frequently asked questions

Is the HTML sanitized before conversion?

Yes. Scripts and event handlers are stripped. The conversion targets content, not styling.

Will inline styles survive?

No. Markdown intentionally does not carry inline styles. Use dedicated code blocks or HTML tags when preserving style is essential.

How are tables handled?

Simple tables convert cleanly to GFM tables. Complex tables with rowspan/colspan fall back to HTML in the output.