Text & Content

Markdown to HTML

Paste Markdown and get clean HTML with a live preview — or go the other way and turn a block of HTML back into Markdown.

Your text

Preview

Words
—
Output size
—

Why Markdown

Markdown is plain text that reads like plain text and turns into tidy HTML. It runs README files, documentation, static sites, notes apps and most developer forums, because the source stays readable even when nothing renders it.

What this converter supports

How to use it

  1. Paste Markdown and read the preview, then copy the HTML.
  2. Or switch the direction and paste HTML to get Markdown back — useful for moving content out of a CMS.
  3. Tick "add id attributes" if you need anchor links to your headings.

Line breaks, the usual confusion

In standard Markdown a single newline is just a space: two lines in a row become one paragraph. A blank line starts a new paragraph, and two spaces at the end of a line force a break. Many chat apps ignore that rule, which is why the "treat single line breaks as <br>" switch is there.

What is left out

Frequently asked questions

How do I convert Markdown to HTML?

Paste the Markdown above. The HTML appears immediately with a live preview, and you can copy or download it.

Can I turn HTML back into Markdown?

Yes — switch the direction to "HTML to Markdown". Headings, lists, links, images, tables, code and quotes all come back.

Why did my two lines become one paragraph?

That is standard Markdown: a single newline counts as a space. Leave a blank line between paragraphs, or tick the line-break switch above.