Convert Markdown syntax into clean, sanitized HTML markup with rendered live preview.
Loading tool
About Markdown to HTML
Convert Markdown into HTML with a rendered preview and the generated source side by side. GitHub Flavored Markdown (tables, task lists, strikethrough, autolinks) can be toggled, single line breaks can become <br>, and the output can be wrapped in a full HTML document. Sanitizing is on by default and strips <script>, <iframe>, <style>, on* event handlers and javascript: URLs.
Common uses
- Turn a README or release notes into HTML for a website or email
- Preview how Markdown with tables and task lists will render
- Generate a standalone HTML page from a Markdown document
- Clean untrusted Markdown before embedding the HTML in a page
FAQ
- What is GitHub Flavored Markdown?
- GFM is GitHub's Markdown dialect, which adds tables, task list checkboxes, strikethrough with ~~text~~ and automatic links on top of standard Markdown.
- Is raw HTML inside Markdown allowed?
- Markdown allows inline HTML and it is passed through. With sanitizing enabled, dangerous elements and attributes such as scripts and event handlers are removed first, and the tool reports how many items it stripped.
- Why does a single line break not create a new line?
- In standard Markdown, a single newline inside a paragraph is treated as a space; you need a blank line for a new paragraph or two trailing spaces for a line break. Enable the line break option to convert every single newline to <br>.