Markdown to HTML converter

Write or paste Markdown and get the HTML code plus a preview. It supports headings, emphasis, links, images, lists, code, quotes, tables and horizontal rules. Raw HTML is escaped, so the output is safe. Free, in your browser.

How to use it

  1. Type or paste your text in the Markdown box.
  2. The HTML code and the Preview update as you type. Check Wrap in a full HTML page if you need a complete document.
  3. Click Copy or Download to use the HTML.

Complete guide to converting Markdown to HTML

What Markdown is and when you need HTML

Markdown is a lightweight way of writing formatted text using plain characters: a # for a heading, asterisks for emphasis, a dash for a list item. It is quick to type and easy to read even before it is converted, which is why README files, documentation, notes and many blogs use it. Browsers, however, display HTML, so at some point the Markdown has to be turned into tags. This converter does that instantly, shows a live preview, and runs entirely in your browser.

Syntax the converter understands

You typeYou get
# Title to ###### TitleHeadings h1 to h6 (a line underlined with === or --- also works)
**bold**, *italic*, ~~strike~~strong, em and del
`code` and fenced blockscode and pre, with a language-js class when you name the language
[text](url "title")A link, with an optional title
![alt](url)An image
- item or 1. itemBulleted and numbered lists, nested ones too
- [x] doneA disabled checkbox, checked or not
> quoteA blockquote
Rows with | and a --- lineA table, with alignment from colons such as ---:
--- alone on a lineA horizontal rule

Worked example

  1. Type this into Markdown: a line ## Title, a blank line, then Some **bold** and a [link](https://example.com)., a blank line, and two lines - one and - two.
  2. The HTML code box shows:

<h2>Title</h2>
<p>Some <strong>bold</strong> and a <a href="https://example.com">link</a>.</p>
<ul><li>one</li><li>two</li></ul> (the tool puts each tag on its own line)

  1. The Preview shows the same content as it will look on a page.
  2. For a table, type | Name | Qty |, then |------|----:|, then | Apple | 3 |. The Qty column gets style="text-align:right" because of the colon in ----:.
  3. Tick Wrap in a full HTML page to get a complete document with a doctype, head, meta charset and body, ready to save with Download as document.html.

How safety works

Raw HTML in your Markdown is not passed through. A tag such as <b>raw</b> is escaped and appears as visible text. Links and images that use an unsafe scheme, for example javascript:, are replaced by #. Only http, https, mailto, tel and ftp links are kept. This protects the page that will show the result, though you should still review the output before using it on a site that accepts content from other people.

Tips and common mistakes

  • Leave a blank line between blocks. A list that starts right after a paragraph line, or a table with no blank line before it, may not be recognised.
  • For a line break inside a paragraph, end the line with two spaces or a backslash. A single newline is joined into the same paragraph.
  • A URL that contains parentheses can be cut short. Write them as %28 and %29 inside the link.
  • This is a compact converter, not a full CommonMark engine. Reference-style links and embedded HTML are not supported.
  • If a heading shows a literal #, check that there is a space after it.

Related tools

Tidy the generated markup with the HTML beautifier or shrink it with the HTML minifier. To show tags as plain text inside a page, use the HTML entities encoder.

Questions

Which Markdown features are supported?

Headings (# and underlined), bold, italic, strikethrough, inline code, fenced code blocks, links, images, bullet and numbered lists (nested too), task lists, blockquotes, simple tables with alignment, horizontal rules and line breaks.

Is the HTML safe?

Yes. Any raw HTML you type is escaped and shown as text, and links or images that use unsafe schemes such as javascript: are replaced by "#". Still, review the HTML before using it on a site that accepts input from others.

Is it the same as GitHub Markdown?

It follows the common rules and covers the everyday syntax, but it is a compact converter, not a full CommonMark engine. Rare cases such as reference-style links or embedded HTML are not supported.

Is my text uploaded anywhere?

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