Markdown to HTML

Write or open Markdown and get clean HTML for your blog, email or website, with a live preview.

Show

How to use it

  1. Type or paste Markdown, or open a .md file.
  2. Check the Preview, then copy it formatted for a document or email, or download it as a web page.
  3. Switch to HTML code to copy or download just the HTML for a CMS or template.

Safe output

The generated HTML is cleaned with DOMPurify, which removes scripts and unsafe attributes. The downloaded web page adds a UTF-8 character set, so accented letters, other scripts and emoji show correctly when you open the file, and a title taken from your first heading.

Frequently asked questions

Is the HTML safe to paste into my website?

Yes. The HTML is cleaned with DOMPurify, which removes scripts, inline event handlers such as onerror and javascript: links, so a pasted Markdown file can't add hidden code to your CMS.

How do I put the result into Google Docs, Word or an email?

Press Copy formatted text under the preview and paste: headings, bold, lists, links and tables keep their formatting. For a website, switch to HTML code and copy the markup instead.

Which Markdown is supported?

GitHub-flavoured Markdown: headings, bold, italic, strikethrough, links, images, lists, task lists, tables, code blocks and blockquotes. Tick Line breaks as in GitHub comments to turn every single line break into a <br>.

Why don't external images show in the preview?

For privacy and security the preview loads only images from this site. They work normally in the exported HTML.

Is my text stored or uploaded?

No. The conversion runs in your browser and nothing is saved or sent anywhere.

More text and developer tools

See all text and developer tools →

Can't find the tool you need? Tell us.