Convert HTML to Markdown
.html into clean, GitHub-flavoured Markdown with Turndown. Headings, links, lists, tables, blockquotes, and code blocks are all mapped faithfully — and the HTML is sanitized with DOMPurify before conversion.Processing happens 100% in your browser — nothing is uploaded.
How to convert HTML to Markdown
- Upload: drop your .html file onto the dropzone, or paste HTML source directly into the editor.
- Process: DOMPurify sanitizes the input, then Turndown converts the clean HTML to GitHub-flavoured Markdown locally in your browser.
- Download: copy the Markdown or save it as a .md file.
Why Convert HTML to MD with MarkdownForge?
GitHub-flavoured Markdown output you can use immediately
Turndown maps every common HTML element — headings, paragraphs, bold, italic, links, images, ordered and unordered lists, blockquotes, tables, and fenced code blocks — to its GFM equivalent. The output is portable and works in GitHub, GitLab, Obsidian, and any standard Markdown editor.
Input is sanitized before conversion
DOMPurify strips scripts, event handlers, and other unsafe content from the HTML before Turndown processes it. You can safely convert HTML from untrusted sources without risk of executing malicious markup.
100% local — your HTML never leaves your device
Turndown and DOMPurify run entirely in your browser. No HTML is transmitted to any server, making this safe for internal documentation, proprietary templates, and any markup you cannot share externally.
HTML to Markdown — FAQ
Which HTML elements are converted to Markdown?
All common elements: headings (h1–h6), paragraphs, bold, italic, links, images, ordered and unordered lists, blockquotes, tables, and fenced code blocks. Unsupported elements are either stripped or passed through as raw HTML.
Is the HTML sanitized before conversion?
Yes. DOMPurify removes scripts, event handlers, and unsafe attributes before Turndown processes the markup, protecting you from malicious HTML.
Are HTML tables converted to Markdown pipe tables?
Yes. Turndown uses the GitHub-flavoured Markdown table plugin to convert HTML tables to pipe tables, preserving headers and rows.
Does my HTML get uploaded to a server?
No. Turndown and DOMPurify run entirely in your browser. Your HTML never leaves your device.
What happens to inline CSS and style attributes?
Inline styles are stripped during sanitization. Markdown has no equivalent for CSS styling, so only the semantic structure of the HTML is preserved in the output.