Convert Markdown and HTML

Markdown ↔ HTML converts text both ways as you type. Markdown becomes clean HTML with tables, footnotes, code blocks and heading anchors — as a fragment or a styled, standalone page — and HTML becomes tidy Markdown with scripts and styles removed.

  • Free
  • No sign-up
  • Text or file
  • No watermark

Drop your file here

or browse your device · Paste text or upload a file

Files are processed only for this request and are never stored.

How to use Markdown ↔ HTML

Three steps, about a minute.

  1. 1

    Paste or upload

    Paste text or choose a .md or .html file.

  2. 2

    Pick the direction

    The result and preview update as you type.

  3. 3

    Copy or download

    Copy the output or save it as a file.

Markdown ↔ HTML questions

Which Markdown features are supported?

CommonMark basics plus tables, fenced code blocks, footnotes, definition lists, abbreviations and attribute lists, and heading anchors.

Is the preview safe?

Yes. The preview renders in a sandboxed frame with scripts disabled.

What happens to scripts in HTML → Markdown?

Scripts, styles and the document head are removed before conversion, so only content remains.

Other tools