Markdown to HTML

Convert Markdown to HTML.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Paste Markdown and get the matching HTML source: headings, lists, links, emphasis, inline code and GitHub-style tables and strikethrough. The result is HTML text you can copy into a page or CMS.

How to use

1
Step 1
Paste your Markdown.
2
Step 2
Press Run.
3
Step 3
Copy the HTML.

How it works

The Markdown is parsed by marked, which follows CommonMark with GitHub Flavored Markdown extensions such as tables and ~~strikethrough~~. The output is raw HTML. Raw HTML in the input, including script tags, is passed through unchanged.

Worked example

A heading, a list and code

Input
# Title 1. one 2. two `code`
Output
<h1>Title</h1> <ol> <li>one</li> <li>two</li> </ol> <p><code>code</code></p>
Walkthrough
The # becomes an h1, the numbered lines an ordered list, and the backticks a code element.

Limitations

  • Not sanitized: <script> and other raw HTML in the Markdown is kept, so do not publish untrusted input without sanitizing it.
  • The output is HTML source, not a rendered preview.
  • Heading IDs, syntax highlighting and custom extensions are not added.

Questions

How do I convert Markdown to HTML?
Paste the Markdown and press Run to get HTML.
Does it support tables?
Yes, GitHub-style pipe tables become <table> markup.
Is the HTML safe to publish?
Only if the Markdown is yours. Raw HTML and scripts are not removed.
Does it add syntax highlighting?
No. Code blocks come out as plain pre/code.

Features

  • CommonMark and GFM
  • Tables and strikethrough
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • Learn Regular Expressions - Crash Course

    freeCodeCamp.org

    Regex primer for tester and explainer pages.

    Watch on YouTube
  • How base64 encoding works

    Andrew Schmelyun

    Mental model for Base64 encode/decode tools.

    Watch on YouTube