Free tool
Paste HTML or drop an .html file and get clean GitHub-Flavored Markdown back. Pasted HTML is sanitized before conversion, so messy WYSIWYG output and scraped markup come out clean. Need the reverse? Try our Markdown to HTML converter.
Everything runs locally in your browser. Nothing is uploaded.
HTML input
Markdown output
Tip: filename auto-fills from the dropped file -- you can edit it before downloading.
How it works
1. Paste or drop
Drop a .html file or paste raw HTML into the input panel. Click Load sample for a realistic example.
2. Sanitized then converted
DOMPurify strips dangerous markup first, then turndown with the GFM plugin produces standard ATX-style Markdown with fenced code.
3. Switch the view
Toggle Raw Markdown, syntax-highlighted Pretty, or a live Preview of the sanitized input. Copy or download as .md.
Why use this converter
- Cleans messy HTML. Strips inline styles, scripts, and unsafe attributes before conversion -- great for rich-text editor exports.
- GFM output by default. Tables, task lists, strikethrough, and fenced code survive the round-trip.
- Live preview of source. Verify what your HTML actually looks like before grabbing the Markdown.
- Drag-and-drop or paste. Drop a .html file or paste straight from your editor of choice.
- Free forever. No signup, no rate limits, no paywall.
Need more than conversion?
If you keep cleaning up HTML from other systems because your team has no central place to capture content for review, you might want a proper intake queue. We are building one.
Learn about the Workforge intake queue