Convert Markdown to Sanitized HTML
Batch + ZIPConvert GitHub Flavored Markdown into clean, XSS-sanitized HTML locally—plus Copy as Rich Text for pasting formatted docs anywhere.
or drop files here · Ctrl V to paste · or drop .md files · Ctrl V to paste Markdown
- 100% browser-local
- DOMPurify XSS sanitized
- One-click Rich Text copy
Instant Before & After Preview
Includes Rich Text copy## Release 2.4
- **Zero-upload engine** verified offline
- Added `TOON` serializer for LLM prompts<h2>Release 2.4</h2>
<ul>
<li><strong>Zero-upload engine</strong> verified offline</li>
<li>Added <code>TOON</code> serializer for LLM prompts</li>
</ul>Source vs. target format specification comparison: Markdown → HTML
| Property | Source: Markdown | Target: HTML |
|---|---|---|
| Structure type | Markup | Markup |
| Human readability | High | Medium |
| Nesting support | Yes | Yes |
| LLM token efficiency | High | Low |
| File extension | .md | .html |
| MIME type | text/markdown | text/html |
| Best for | AI/RAG knowledge bases, developer documentation, READMEs, Obsidian vaults, and portable note-taking. | Web pages, rich-text clipboard payloads, email templates, and sanitized rendered Markdown embeds. |
How it works
How to convert Markdown to HTML or Rich Text
Render portable GFM tables, lists, and code blocks cleanly without unsafe scripts.
- Paste MarkdownDrop a .md file or paste Markdown text from your editor or AI chat.
- Toggle sanitization & wrapperKeep DOMPurify enabled for safe HTML fragments, or wrap inside a complete HTML5 document.
- Copy HTML or Rich TextClick Copy Output for raw HTML tags or Copy Rich Text to paste formatted headings straight into Word or email.
FAQ
Frequently asked questions
What is the difference between Copy Output and Copy Rich Text?
Copy Output copies literal <h2> tags as source code, whereas Copy Rich Text writes text/html to your clipboard so Word, Google Docs, and email clients render native headings and bold text.
Is raw HTML inside Markdown sanitized automatically?
Yes. With Sanitize HTML enabled, DOMPurify strips <script> tags, inline event handlers, and unsafe URLs locally.
Can I generate a standalone styled HTML5 file?
Yes. Toggle Wrap in Full HTML5 Document to emit <!DOCTYPE html>, <head>, and clean base styles ready to open in any browser.