Markdown Preview & Editor
Write Markdown and see a live, sanitized HTML preview as you type.
About Markdown Preview
Markdown Preview renders GitHub-flavored Markdown into HTML as you type, with every output run through DOMPurify before it's displayed. Write documentation, README files, or notes and see exactly how they'll look — entirely in your browser.
Features:
- Live preview with a 300ms debounce, powered by marked with GFM enabled
- Every render is sanitized with DOMPurify before display
- Links in the preview automatically open safely in a new tab
- View and export the raw sanitized HTML source, with copy and download
How to use Markdown Preview
- Type or paste Markdown into the editor
- Watch the sanitized preview update automatically
- Switch to the HTML Source tab to see the raw markup
- Copy the HTML or download it as a .html file
Frequently Asked Questions
What Markdown syntax is supported?
This tool uses GitHub Flavored Markdown (GFM) via the marked library, so it supports headings, lists, tables, task lists, fenced code blocks, links, images, and inline formatting like bold and italics.
Is the preview exactly how GitHub will render it?
It's a close approximation, not a pixel-perfect match. Both use GFM rules for tables, task lists, and strikethrough, but GitHub applies its own CSS and a few platform-specific tweaks (like @mentions and issue links) that this tool doesn't replicate.
Does the preview update automatically?
Yes. The preview re-renders about 300 milliseconds after you stop typing, so it stays responsive without recalculating on every keystroke.
Is it safe to paste untrusted markdown here?
Yes — every piece of HTML that marked generates is passed through DOMPurify.sanitize() before it's rendered, which strips scripts, event handlers, and other dangerous markup. Links are also forced to open with rel="noopener noreferrer" so pasted content can't hijack your tab.
Can I get the raw HTML instead of the preview?
Yes. Switch to the HTML Source tab to see the sanitized markup as text, then copy it or download it as a standalone .html file.
Does this tool send my document anywhere?
No. Markdown parsing and sanitization both run locally in your browser using JavaScript libraries loaded with the page — your document is never uploaded.
Privacy
Your Markdown is rendered entirely in your browser. Nothing you type is uploaded or stored on a server.