Markdown to HTML Converter
Convert Markdown to clean HTML, with everything escaped before it is parsed.
About this tool
Converts Markdown to HTML: headings, bold and italic, links, images, lists, blockquotes, code blocks and tables.
HTML in the source is escaped before any Markdown is interpreted, so a `<script>` tag becomes visible text instead of a script. This means raw HTML passthrough does not work, and that is deliberate: a converter that renders arbitrary HTML out of Markdown someone else wrote is a cross-site scripting hole wearing a friendly name.
The output is plain semantic HTML with no classes or wrappers, so it inherits whatever styles the page it lands in already has.
Common questions
Why is my raw HTML showing as text?
Because it is escaped before parsing, on purpose. Markdown from an untrusted source with HTML passthrough enabled is one of the most common XSS vectors there is. If you need raw HTML, this is not the right tool.
Which Markdown flavour is this?
The common core plus tables, fenced code blocks and strikethrough. It does not implement footnotes, definition lists or the more unusual GitHub extensions.
Does the output have CSS classes?
No. It is plain semantic HTML, so it takes on whatever styles the page already applies to headings, lists and code. Adding classes would only fight your own stylesheet.
Are links made safe?
javascript: and data: URLs are dropped, since both can execute. The link text is kept so nothing silently disappears from the document.