Loading the editor…

Getting started

Install the package and import it:

npm install my-package
  • Works in the browser and in Node
  • No dependencies
  • See the docs
Option Default
debug false

Markdown to HTML converter, free and in your browser

Paste Markdown and click Copy HTML for the HTML source, or choose Download HTML in the ⋯ menu for a standalone page with styles included. The HTML is sanitized, so scripts in the Markdown are removed.

How it works

  1. Paste your Markdown

    The preview shows the rendered HTML.

  2. Click Copy HTML

    The HTML source goes to your clipboard, ready for a CMS, an email template or your own page.

  3. Or download a page

    ⋯ › Download HTML gives a single .html file that works offline, with math as MathML and diagrams inlined.

Questions

Which Markdown flavour is supported?

GitHub-flavoured Markdown: tables, task lists, footnotes, autolinks and callouts, plus math and Mermaid diagrams.

Is raw HTML in the Markdown kept?

Safe HTML is kept; scripts, event handlers and forms are removed.

Does the copied HTML include styles?

Copy HTML gives the document’s HTML without a stylesheet. Download HTML includes the styles in the file.