Skip to content
Tools

Markdown to HTML

Convert Markdown to clean, safe HTML source.

Local
HTML

What this tool does

This tool converts Markdown into HTML source. It supports a common subset: headings, bold and italic, inline code and fenced code blocks, links and images, lists, blockquotes and horizontal rules.

Safe by default

Any raw HTML in your Markdown is escaped rather than passed through, only a known set of tags is produced, and link schemes such as javascript: are replaced with a harmless target. That means the HTML it generates cannot carry a script, so it is safe to paste into a page.

Common use cases

  • Turning a README or note into HTML for a page or email.
  • Previewing how Markdown will render as markup.
  • Producing the HTML body for a static site or a CMS field.

Frequently asked questions

Is the HTML safe?
Raw HTML in the Markdown is escaped, only a known set of tags is produced, and link schemes such as javascript: are blocked, so the output cannot carry a script.
Which Markdown is supported?
A common subset: headings, bold, italic, inline code, fenced code blocks, links, images, lists, blockquotes and horizontal rules.

Learning resources

Testsmith also runs hands-on courses and a free practice app for the skills behind this tool.

Feedback welcome

Found a bug in this tool, or want it to do something it does not? Tell us and we will take a look.