AZ Tools

Markdown → HTML Converter

Text

Different from the live preview tool: this one gives you the raw HTML that Markdown produces, so you can paste it into a CMS, an email template, or anywhere that wants HTML rather than a rendered view. GitHub-flavored Markdown (tables, task lists, strikethrough, autolinks) is on by default, and DOMPurify sanitization is optional so embedded HTML stays safe.

HTML

How to use

  1. Paste Markdown in the input.
  2. Switch between rendered preview and raw HTML in the output.
  3. Toggle GFM, soft line breaks, or sanitization as needed.
  4. Copy the raw HTML for your CMS / email / template.

Frequently asked questions

How is this different from Markdown Preview?
Markdown Preview shows you how the Markdown renders. Markdown → HTML gives you the actual HTML source as text so you can paste it into a system that needs HTML.
Why is sanitization on by default?
Markdown allows raw HTML, which can include scripts. DOMPurify strips dangerous tags / attributes while keeping links, formatting, and basic structure. Turn it off only if you trust the source.
What does 'soft breaks → <br>' do?
By default, a single newline in Markdown becomes a space. With the toggle on, every newline becomes a <br>, which matches how chat apps like Slack and Discord render Markdown.
Which Markdown dialect?
marked's GitHub-flavored Markdown — tables, task lists, fenced code blocks, autolinks, strikethrough. Turn GFM off for stricter CommonMark.

Related tools