Skip to content

Convert Markdown to HTML

Turn Markdown into a polished standalone web page, or into clean HTML to paste into a blog or CMS — GitHub-style tables, highlighted code and linkable headings included.

  • Never stored
  • No queue, no waiting
  • No signup, no watermark

No file to hand?

How it works

1

Add Markdown

Drop a .md file, or write and paste straight into the editor.

2

Choose the output

A complete styled page that opens anywhere, or just the HTML for your own site.

3

Copy or download

Copy the HTML to the clipboard or save it as an .html file.

A fragment or a page, and which you want

There are two useful outputs and they are not interchangeable. A fragment is just the converted markup — headings, paragraphs, lists, links — with no document wrapper, which is what you want when the result is going into a template, a CMS field or another page. A complete page adds the doctype, a head, a character-set declaration and a stylesheet, so it opens on its own and looks like something. Pasting a complete page into a CMS gives you a document inside a document; pasting a fragment into a browser gives you unstyled text.

The conversion covers the widely-agreed extended Markdown set: headings, emphasis, lists, links, images, block quotes, tables, fenced code blocks with syntax highlighting, task lists, strikethrough and footnotes. Headings get identifiers derived from their text, so they can be linked to directly — the anchor links that make long documentation usable.

Raw HTML inside the Markdown is passed through, which is part of the specification and worth being deliberate about: it means a Markdown file from an untrusted source can contain a script tag, and converting it produces a page carrying that script. Never render Markdown from strangers without sanitising the HTML afterwards — the conversion is not a security boundary and was never meant to be one.

Two things are output as code blocks rather than rendered, deliberately. Math formulas in LaTeX notation need a typesetting library, and Mermaid diagrams need a diagram renderer — each is a substantial dependency, and a misrendered equation is worse than a visible one. A complete page uses ordinary system fonts rather than fetching any, so it works offline and looks slightly different across Windows, macOS and Linux.

When you want something else

Pandoc handles the parts left out here and a great deal more: pandoc in.md -o out.html --mathjax --standalone --toc renders math properly, generates a table of contents, and accepts a template so the output matches your own site. It also converts to and from around forty other formats, which is why it is worth installing once.

For a website rather than a file, use a generator rather than converting pages one at a time. Hugo, Eleventy, Jekyll and MkDocs turn a folder of Markdown into a site with navigation, search and consistent styling, and rebuild it whenever the source changes — which is the actual job whenever there is more than one document.

Frequently asked questions

Complete page or HTML snippet — which do I want?

A complete page is a single .html file with its own styling that looks good opened from your desktop, on a phone or printed. A snippet is only the content markup, with no styles, for pasting into WordPress, Ghost, a CMS or your own template.

Which Markdown features are supported?

GitHub-flavoured Markdown: tables with alignment, task lists, strikethrough, autolinks, fenced code with syntax highlighting, footnotes and inline HTML. Headings get GitHub-style ids, so links like #installation keep working.

Is my text stored anywhere?

No. Nothing is sent anywhere and nothing is stored.

What happens to my images?

Image paths stay exactly as you wrote them, so the page works when saved next to your images folder. Drop the images in too, and they are embedded into the file so it works on its own.

Is the HTML safe to publish?

Scripts, forms, embedded frames and inline event handlers are removed from any HTML inside your Markdown, so the output only contains formatting.

Can I add a table of contents?

Yes — tick "Table of contents", or put [TOC] on its own line where you want the list to go.

Good to know: Math formulas and Mermaid diagrams are output as code blocks rather than rendered. A complete page uses web-safe system fonts, so it looks slightly different on Windows, macOS and Linux.

Put this tool on your website

Free for any blog, class page or help article. Paste one snippet and your visitors can use it right on your page.