Markdown to HTML Converter
Convert CommonMark and GitHub Flavored Markdown into clean semantic HTML with a live sanitized preview.
About This Tool
Compiles CommonMark and GitHub Flavored Markdown (GFM) into clean semantic HTML with both raw HTML source code and a live rendered preview.
Built with security by default: raw HTML tags in the input are escaped and dangerous URI schemes (javascript:, vbscript:, data:text/html) are stripped so untrusted Markdown can be previewed safely.
Key Features
- GFM tables, task lists & strikethrough: Supports pipe tables with column alignment, - [x] checkboxes, ~~strikethrough~~, and fenced code blocks.
- Live sanitized preview & HTML code: Switch between raw HTML markup and rendered visual preview or inspect both.
- XSS-safe by default: Escapes raw HTML tags (<script>, inline event handlers) and blocks javascript:, vbscript:, and data:text/html URLs.
- Heading ID slugs: Optionally generate slugified id="..." attributes on h1-h6 elements for anchor linking.