Markdown to HTML
Get indented HTML source from your Markdown, ready to paste into a CMS or save.
- Runs in your browser
- No uploads
- No account
Loading your browser tool…
What Markdown to HTML does
Many help-center editors, email builders and static pages accept HTML but not Markdown. Paste your Markdown and you get the HTML source with one block per line and nested lists indented, so it is easy to read and to diff.
Choose HTML fragment to drop into an existing page, or Full document for a standalone file with a doctype, charset, viewport tag and a title copied from the first H1. Flip the result to Preview to check the rendered version before you copy. If you only want to look at the formatting, the Markdown Previewer is quicker.
Example
Input
## Export a video Click **Export** and pick `MP4`. 1. Open the project 2. Choose 1080p
Result
<h2 id="export-a-video">Export a video</h2> <p>Click <strong>Export</strong> and pick <code>MP4</code>.</p> <ol> <li>Open the project</li> <li>Choose 1080p</li> </ol>
The heading gets a GitHub-style id, so a link to #export-a-video still works on the converted page.
How to use Markdown to HTML
- Paste Markdown, click Open file, or click Use example.
- Pick HTML fragment or Full document under Output, and use the Source and Preview switch to check the result.
- Click Copy, or Download .html to save the file.
Good to know
- No CSS is added. A full document opens as a plain, unstyled browser page until you link your own stylesheet.
- Every heading gets an id and there is no switch to turn that off. If your CMS rejects ids, run the output through the HTML Cleaner, which strips them.
- Fenced code keeps a
language-class but is not syntax highlighted; your site's highlighter has to pick that class up.
Questions about Markdown to HTML
How do I convert a Markdown file to HTML?
Click Open file and choose the .md file, or paste its text. The HTML appears on the right straight away. Choose Full document if you want a page that opens in a browser, then click Download .html.
What is the difference between an HTML fragment and a full document?
A fragment is only the body content: headings, paragraphs, lists and tables. A full document wraps that in html, head and body tags with a doctype, UTF-8 charset, viewport meta tag and title, so it works as a complete web page.
Do Markdown tables become HTML tables?
Yes. Pipe tables become table elements with thead and tbody, and alignment from the divider row, such as ---:, becomes an align attribute on each cell in that column.
Can I paste the output into WordPress or a help-center editor?
Yes, as long as the editor has an HTML or code view. Paste the fragment there rather than into the visual editor, which would show the tags as literal text.