Markdown to HTML converter
Type or paste Markdown and get clean HTML as you go, with a live preview and a download as a ready-to-open web page.
Converter
The HTML appears here as you type.Jotura, a free notes app, keeps every note as a Markdown file and exports any note to HTML from the editor. Download Jotura
How to convert Markdown to HTML
- Add your Markdown. Paste it, type it, or open a
.mdfile. The example in the box shows what the converter handles. - Check the result. Switch between the HTML and the rendered preview. Both update as you type.
- Copy or download. Copy HTML puts the body HTML on the clipboard, and Download .html saves a full page, so
notes.mdbecomesnotes.html.
What each piece of Markdown becomes
| Markdown | HTML |
|---|---|
## Heading | <h2 id="heading"> |
**bold**, *italic*, ~~gone~~ | <strong>, <em>, <del> |
- [x] done | A list item with a ticked, read-only checkbox |
| A pipe table | <table> with each column's alignment |
| A fenced code block with a language | <pre><code class="language-bash">, ready for a syntax highlighter |
[^1] footnotes | A linked reference and a footnote block at the end |
| YAML front matter | Left out |
Markdown to HTML questions
How do I convert Markdown to HTML?
Paste or type Markdown in the box at the top of this page, or open a .md file. The HTML updates as you type. Copy HTML copies the HTML body to paste into a CMS, an email template or another page. Download .html saves a complete web page with a title and a small stylesheet, ready to open in a browser.
Which Markdown does it support?
GitHub Flavored Markdown: headings, emphasis, links, images, lists, block quotes, fenced code blocks, tables with column alignment, task lists, strikethrough, footnotes and GitHub's > [!NOTE] alerts. YAML front matter at the top of the file is left out of the HTML. The parser follows the CommonMark specification, so the output matches what most Markdown tools produce.
Do headings get id attributes for links?
Yes. Each heading gets an id made the way GitHub makes them: lower case, spaces turned into hyphens and punctuation dropped, with -1, -2 added to repeats. A heading Getting started becomes <h2 id="getting-started">, so a link to #getting-started jumps to it.
What happens to HTML inside my Markdown?
It is kept in the HTML output exactly as you wrote it, which is how Markdown is meant to work. The preview on this page shows that HTML as plain text and never runs it, and links that start with javascript: are disarmed in the preview, so pasting a file you did not write is safe.
How do I convert Markdown to HTML on the command line?
Pandoc converts a file in one line, and -s makes a standalone page with a head and title. For a script, the marked package for Node and the markdown package for Python do the same job.
pandoc notes.md -f gfm -s -o notes.htmlCan I style the HTML?
The copied HTML carries no styles, so it takes on the look of the page you paste it into. The downloaded page includes a short stylesheet with readable widths, tables with borders and a dark mode. Edit the <style> block in its head to change it, or replace it with a link to your own CSS.
Is there a size limit?
Markdown up to 50 MB. A long document converts in a few milliseconds, and the page stays usable while it runs.
Is my Markdown uploaded?
No. The converter is a WebAssembly program that runs in a background thread of your browser. What you type stays on your device, and nothing is sent to a server or saved.
The same engine runs the Markdown to Word converter. Going the other way, the Word to Markdown and PDF to Markdown converters turn documents into Markdown, and the Markdown table generator builds tables from spreadsheet cells.