Markdown to HTML Converter

Preview

Sandboxed iframe of the generated HTML.

By Cobra · Last updated

CommonMark-ish subset

Headings, emphasis, strong, links, images, lists, fenced code, and simple paragraphs are converted to HTML in the browser. The preview helps you catch broken nests before you paste into a CMS.

This is not MDX, not GitHub-flavored tables in every case, and not a sanitizer for untrusted authors. Treat output as markup you still review.

Worked example: headings, bold text and lists

Markdown # Hello plus a bold phrase becomes an h1 and <strong> in the HTML pane. A list with two items becomes ul/li pairs. Links keep the href you wrote; they are not rewritten through a proxy.

Limits

Raw HTML inside Markdown may pass through depending on the converter path; do not paste untrusted Markdown from strangers on a session where XSS matters. Footnotes, math, and plugin syntax need a fuller toolchain.

Worked HTML fragment

Markdown:

## Steps

1. Paste
2. Preview
3. Copy HTML

Expected structure includes an h2 and an ordered list with three items. If your CMS wraps output in extra containers, paste only the inner fragment you need.

Worked example: why the blank line before a list matters

Input # Release notes, a blank line, then - Fixed **login** bug. The output is an <h1> heading followed by a <ul> with one <li> that wraps "login" in <strong>. The blank line matters: without it some Markdown flavors treat the list as part of the heading paragraph.

Pitfalls

FAQ

Does Markdown to HTML upload my text?

No. Conversion and preview run locally.

Is this full CommonMark?

It covers everyday constructs. Edge cases and extensions may differ from your static site generator.

Can I download the HTML?

Yes when a download control is present. Otherwise copy from the output pane.

Should I sanitize the output?

Yes before rendering untrusted input in a web app. This page is a writer aid, not an XSS filter.

Is the HTML output safe to paste into my site?

It is plain HTML, so it is as safe as the Markdown you put in. If the Markdown came from other people, run the HTML through a sanitizer to strip scripts and event handlers.

Why did my numbered list restart at 1?

An unindented paragraph or code block between items ends the list. Indent the content under the list item so the numbering continues.