01What is Markdown to HTML?
Some places only take HTML. An email template, a CMS field or an old blog engine won't read Markdown, so you need the markup. Markdown to HTML takes your Markdown and gives you plain HTML with no extra classes or wrappers, ready to paste. The converter is a compact parser that walks your text line by line. It covers the parts of the CommonMark spec people use most. That means ATX headings from # to ######, paragraphs, fenced code blocks with ``` or ~~~, block quotes, bullet lists with -, * or +, numbered lists and thematic breaks such as --- or ***. Inline, it handles code spans, emphasis with asterisks or underscores, links and images. A few details follow the spec closely. Fence languages turn into a language-xxx class on the code tag, which Prism and highlight.js both pick up. A numbered list that starts at 3 gets start="3" on the ol. Underscores inside a word, as in snake_case_name, are left alone. Link URLs may contain one level of balanced parentheses, so Wikipedia links survive intact. On top of CommonMark it supports two GitHub Flavored Markdown (GFM) extensions: ~~strikethrough~~ and pipe tables. Colons in the table's delimiter row become align attributes on every cell of that column. Safety matters when you convert text from elsewhere. Raw HTML is never passed through. A div or script tag in your input comes out escaped as visible text. Link and image URLs with a scheme other than http, https or mailto, such as javascript: or data:, are replaced with #. For example, the input This is **bold** and *italic* text. becomes a single p element with strong and em inside it. Click Preview to see that rendered, click it again to go back to the code, and Copy HTML grabs the markup. Be clear about what it does not do. Nested lists come out flat, setext (underlined) headings, indented code blocks, reference links, footnotes and image titles are not recognised, and task list boxes stay as literal [ ] text. For long documents, a full library such as markdown-it in your build is a better fit. Conversion happens in your browser tab, so your draft is not uploaded.
Developers and writers who move content from Markdown into an email, CMS or site that only accepts HTML. The tool runs entirely in your browser, so your data never leaves your device.
02How to use Markdown to HTML
- Type or paste your text into the Markdown box, or load the Heading, Code block or Links/Images example.
- Read the generated markup in the HTML Output panel.
- Click Preview to see the rendered result, and click it again to return to the code.
- Click Copy HTML to put the markup on your clipboard.
- Use the reset button to clear the input and start over.
03Worked examples
- Input:
This is **bold** and *italic* text. - Result:
<p>This is <strong>bold</strong> and <em>italic</em> text.</p> - Input:
Use `<div>` tags - Result:
<p>Use <code><div></code> tags</p> - Angle brackets are escaped, so the tag shows as text.
- Input:
[Click](javascript:alert(1)) - Result:
<p><a href="#">Click</a></p> - Schemes other than http, https and mailto are replaced with #.
- Input:
[Wiki](https://en.wikipedia.org/wiki/Foo_(bar)) - Result:
<p><a href="https://en.wikipedia.org/wiki/Foo_(bar)">Wiki</a></p> - One level of balanced parentheses in a URL is kept.
- Input:
3. third 4. fourth - Result:
<ol start="3"> <li>third</li> <li>fourth</li> </ol> - A list that doesn't begin at 1 keeps its starting number.
- Input:
| A | B | |:--|--:| | 1 | 2 | - Result:
<table> … <th align="left">A</th> <th align="right">B</th> … <td align="left">1</td> <td align="right">2</td> … </table> - Delimiter colons become align attributes on every cell (output shortened).
04Common use cases
- Pasting release notes into an email tool or CMS field that only accepts HTML
- Turning a README section into markup for a static landing page
- Producing a code block with a language-xxx class so Prism or highlight.js colours it on your site
- Converting a GFM table into an HTML table for a platform that has no Markdown support
- Safely converting Markdown copied from an issue or forum without letting embedded HTML through
- Showing a junior developer how each piece of Markdown maps to an HTML element
05Tips
- Words like file_name_here keep their underscores, as CommonMark specifies. Asterisks inside a word still create emphasis, so write a*b*c with care.
- A numbered list that starts above 1 keeps its number through the start attribute, which is handy for continuing a list after a code block.
- You can't mix HTML tags into your Markdown here, because they are escaped. Add any custom markup after you copy the output.
- Leave a blank line before a list or table that follows a paragraph so it reliably starts a new block.
- The output has no classes, so it picks up whatever styles the target page already has for p, table and pre.
06Related concepts
Markdown, CommonMark, HTML, fenced code blocks, GFM tables.
Frequently Asked Questions
What is Markdown to HTML?
Markdown to HTML is a free, browser-based developer tool on AIDToolStack. Convert Markdown to HTML It requires no installation or sign-up and works entirely in your browser.
Is Markdown to HTML free to use?
Yes. No sign-up, no fees and no usage cap.
Does Markdown to HTML store my data?
No. It runs in your browser; nothing is uploaded.