Markdown to HTML converter
Write in the Markdown you use for READMEs and blogs and get clean HTML to paste into your site.
Loading the tool…
Processing and privacy: The result is calculated inside your browser and your data is not sent to any server.
How to use it
- Enter markdown text.
- The result appears straight away and updates as you edit.
- Copy the result, or copy a link that keeps the same values to share it.
How it is calculated
Supported rules: # to ###### headings, blank line between paragraphs, **bold**, *italic*, ~~strike~~, `code`, [text](url), , - and 1. lists, > quotes, ``` code blocks and --- rules. &, < and > are always escaped.
Example
Result: Result: <h1>Shipping policy</h1> <p>Orders ship within <strong>2 working days</strong>. See <a href="https://example.com/faq">our FAQ</a>.</p> <ul> <li>Free delivery over 200 SAR</li> <li>Returns within <em>14 days</em></li> </ul>.
# Shipping policy Orders ship within **2 working days**. See [our FAQ](https://example.com/faq). - Free delivery over 200 SAR - Returns within *14 days*
<h1>Shipping policy</h1> <p>Orders ship within <strong>2 working days</strong>. See <a href="https://example.com/faq">our FAQ</a>.</p> <ul> <li>Free delivery over 200 SAR</li> <li>Returns within <em>14 days</em></li> </ul>
Limits and caveats
- Nested lists, tables and underlined (===) headings are not supported, and raw HTML in the text is escaped.
- A --- line is always treated as a horizontal rule.
Questions about this tool
Is the output CommonMark compatible?
For the supported elements it matches CommonMark in most cases, but the tool implements a documented subset listed in the formula.
How do I write a code block?
Put ``` on a line before the code and another after it. You can add the language after the first fence, like ```js.
Is the HTML safe to paste?
Special characters in the text are escaped, but link URLs pass through as written, so check them if the text is from an untrusted source.
