01 / Text
The basics
Headings, paragraphs, bold, italics, links, pictures, quotes, rules and inline code.
Free tool
Paste or type Markdown and get tidy HTML as you write, with a preview beside it. Headings can get ids for links, tables keep their alignment, task lists keep their boxes, and code blocks keep their language for a highlighter. Copy the HTML into your site, email tool or CMS, or download a ready page with simple styles.
Need a custom tool, app or website? Contact us →Preview
Raw HTML inside the Markdown is left out, and links that would run code are blocked, so the result is safe to paste into a page.
Your text is converted in your browser and kept in this browser only.
What it understands
01 / Text
Headings, paragraphs, bold, italics, links, pictures, quotes, rules and inline code.
02 / Lists
Bulleted and numbered lists inside each other, and - [ ] task items that become checkboxes.
03 / Extras
Pipe tables with left, centre or right columns, ~~strikethrough~~, and fenced code with its language.
Guide
A Markdown to HTML converter turns the plain text shorthand of Markdown, like # Title and **bold**, into the HTML tags a web page uses, like <h1> and <strong>. You write in a format that is quick to type and easy to read, and paste the HTML into a site, a CMS, an email tool or a help centre. This converter follows CommonMark plus GitHub's tables, task lists and strikethrough, and shows the code and a preview as you type.
| You type | You get |
|---|---|
## What changed | <h2 id="what-changed">What changed</h2> |
**bold** and *italic* | <strong>bold</strong> and <em>italic</em> |
~~old price~~ | <del>old price</del> |
[Docs](https://example.com) | <a href="https://example.com">Docs</a> |
 | <img src="logo.png" alt="Logo"> |
- [x] Tested | A list item with a ticked, disabled checkbox |
3. Third step as the first item | <ol start="3">, so the count carries on |
> A quote | <blockquote> around the paragraph |
Three backticks and js | <pre><code class="language-js"> |
--- on its own line | <hr> |
A bare web address like https://example.com becomes a link by itself. To force a line break inside a paragraph, end the line with two spaces or a backslash. A single line break on its own is joined into the same paragraph, which is how Markdown is meant to work.
whats-new. If two headings have the same text, the second gets -2 on the end. Use these for a table of contents or a link like page.html#whats-new.target="_blank" rel="noopener" to links that start with http or https. Links to sections on the same page are left alone.One thing to know: Download .html always saves a whole page, so the file opens nicely in a browser. It is named after the first heading, and the heading becomes the page title. Copy HTML gives you only the body unless the whole page option is ticked. The three switches are remembered in this browser.
Pick or drop more than one .md file and each is turned into its own whole web page, all in one ZIP named markdown-to-html.zip. Each page keeps the name of its file, with .html at the end, and uses the switches you have set. Your text in the box is left as it was.
Raw HTML typed into the Markdown, like a <div> or a <script>, is dropped, and its text is kept. A <br> becomes a line break. Links that start with javascript: are replaced with #. That makes the output safe to paste into a page even when the Markdown came from someone else.
Reference-style links such as [text][1] with a line [1]: https://example.com somewhere else are turned into ordinary links, and footnotes are listed at the end. Maths, definition lists and raw HTML tags are not read. Raw tags are dropped on purpose, so the result is safe to paste. A code block inside a list item ends the list, so keep code blocks at the left edge.
```css, so a code highlighter on your site can colour it.Prefer to write with a preview beside you and save your work as you go? Try the Markdown editor. For a file you can print or attach, use Markdown to PDF.
Questions
Raw HTML tags in the Markdown are dropped and javascript: links are replaced, so the output holds only ordinary tags. Still check anything you did not write yourself.
It adds the language as a class, such as class="language-js", which highlighters like Prism and highlight.js use. Add one of them to your page to colour the code.
An id lets you link straight to a section, such as page.html#what-changed. Tables of contents use them.
Yes, with Markdown to PDF, which uses the same reader and lays the text out on pages.
No. It is converted in this tab and kept in this browser so it is still there next time.
Not with this tool, it only goes from Markdown to HTML. Keep your .md file as the source and convert again after each edit.
Yes. Leave A whole page with simple styles off, copy the HTML and paste it into the editor's HTML or code view. The CMS theme then styles it.
In Markdown, one line break inside a paragraph is treated as a space. Leave a blank line to start a new paragraph, or end the line with two spaces for a line break.
Yes, in this browser only. It is stored on your computer so it is still in the box next time you open the page.