About Markdown to HTML
Markdown to HTML is a live Markdown editor. Write with simple symbols like # and **, see the formatted result instantly, and export clean HTML for your website, blog, documentation or email.
What is Markdown?
Markdown is a lightweight way to format text using plain characters. It was created to be easy to read even before it's converted. It's used everywhere: GitHub READMEs, documentation sites, note-taking apps like Obsidian and Notion, forums, and static site generators.
Markdown cheat sheet
# Heading,## Subheadingfor titles**bold**,*italic*,~~strikethrough~~[link text](https://example.com)and- itemfor bullet lists,1. itemfor numbered lists,- [ ] taskfor checklists> quotefor blockquotes, and`code`or a```fence for code blocks- Tables with pipes:
| Name | Price |followed by| --- | --- |
How it works
The editor uses marked, a fast parser that follows the CommonMark and GitHub Flavored Markdown specifications. The preview is cleaned with DOMPurify, which blocks scripts and other unsafe HTML. The exported HTML is semantic markup with no inline styles, so it takes on your site's own design.
Tips
- Leave a blank line between paragraphs, lists and headings. Most formatting problems come from missing blank lines.
- Add a language after the code fence, such as
```js, so syntax highlighters on your site can color it. - Use Download page for a standalone file you can open or email, and Copy HTML to paste into a CMS.
- Your draft is saved in this browser automatically. Download the .md file to keep a permanent copy.
Worked example
You write a README in Markdown with a heading, a bullet list and a code block. The live preview shows the formatted result. You choose Copy HTML to paste it into your CMS, or Download page for a standalone file.
Limits to know about
- It follows CommonMark and GitHub Flavored Markdown. Extensions from other tools may not render the same way.
- The preview is sanitized, so scripts and unsafe HTML do not run. Use the editor for content, not for custom scripts.
- The exported HTML has no inline styles. It takes on the look of the page where you paste it.
Troubleshooting
- A list or heading does not format: Leave a blank line before and after it, and check there is a space after the # or the dash.
- My draft disappeared: Drafts are saved in this browser only. If you cleared site data or switched browser, it is gone. Download the .md file to keep a copy.