Markdown to HTML
Convert Markdown into sanitized HTML with GFM preview, heading outline, document statistics, protected external links, and complete-document export.
How to Use
- 1
Write Markdown on the left side.
- 2
Check generated HTML and rendered preview on the right.
- 3
Copy HTML when ready.
Features
- ✓GFM, tables, code blocks, and configurable line breaks
- ✓DOMPurify sanitization before preview or export
- ✓Heading outline and link, image, code, word, and size statistics
- ✓Copy or download an HTML fragment or a complete styled document
FAQ
Q. Will script tags execute?
A. No. Output is sanitized to remove dangerous HTML.
Q. Does it support GFM style markdown?
A. Yes, common GitHub Flavored Markdown syntax is supported.
Technical Notes
marked converts Markdown to HTML, then DOMPurify applies its HTML profile before preview or output. Scripts and event attributes such as onerror are removed.
Complete-document mode wraps the sanitized fragment with a DOCTYPE, language, UTF-8, viewport, and basic CSS. External links can receive target and noopener noreferrer attributes.
Data Handling and Preview Requests
Markdown conversion and sanitization run in the browser; this feature does not upload the Markdown input to a backend.
External images are blocked in the rendered preview by default. If you enable them, the browser requests those image URLs and exposes ordinary connection data to their hosts. Exported HTML keeps external image URLs whether or not preview loading is enabled.