Markdown to HTML
Convert Markdown to HTML.
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
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?
Does it support tables?
Is the HTML safe to publish?
Does it add syntax highlighting?
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 YouTubeHow base64 encoding works
Andrew Schmelyun
Mental model for Base64 encode/decode tools.
Watch on YouTube
- Introduction to JSON Web Tokens
jwt.io
JWT structure for decoder and debugger pages.
- Introducing JSON
json.org
Canonical JSON grammar for formatters and validators.