Convert Markdown to Sanitized HTML

Batch + ZIP

Convert GitHub Flavored Markdown into clean, XSS-sanitized HTML locally—plus Copy as Rich Text for pasting formatted docs anywhere.

100% Client-Side — Verify 0 bytes uploaded in Network tabVerify 0 bytes sent in Network tab

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
Before (Input)release-notes.md
## Release 2.4

- **Zero-upload engine** verified offline
- Added `TOON` serializer for LLM prompts
After (Output).html
<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

PropertySource: MarkdownTarget: HTML
Structure typeMarkupMarkup
Human readabilityHighMedium
Nesting supportYesYes
LLM token efficiencyHighLow
File extension.md.html
MIME typetext/markdowntext/html
Best forAI/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.

  1. Paste MarkdownDrop a .md file or paste Markdown text from your editor or AI chat.
  2. Toggle sanitization & wrapperKeep DOMPurify enabled for safe HTML fragments, or wrap inside a complete HTML5 document.
  3. 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.