Skip to content

Markdown ↔ HTML Converter

Convert Markdown to HTML or HTML back to Markdown, with a live preview.

Runs in your browserNo account neededFree
Loading tool…

Processing: This tool runs entirely in your browser. Your input and any file you open stay on your device — nothing is uploaded to a server.

How to use the markdown ↔ html converter

  1. Choose a direction.
  2. Paste your Markdown or HTML.
  3. Copy the result, or expand the preview to see it rendered.

About this tool

Markdown to HTML uses GitHub-flavoured Markdown, so tables, task lists, strikethrough and fenced code blocks all work as they do on GitHub.

The reverse direction is lossy, and it is worth understanding why rather than being surprised by it. Markdown has no way to express a class, an id, an inline style or most attributes, so those are dropped. Converting a styled web page to Markdown gives you the content and the structure, not the design — which is usually exactly what you wanted, but not a round trip.

Both directions run in the page, so an unpublished draft stays with you.

Common uses

  • Turning a README into HTML for a web page.
  • Converting a web article into Markdown notes.
  • Previewing Markdown before publishing it.

Frequently asked questions

Which Markdown flavour is used?
GitHub-flavoured Markdown, so tables, strikethrough, task lists and fenced code blocks are supported.
Why did my HTML lose its classes and styles?
Markdown cannot express them. The conversion keeps content and structure and drops everything presentational, because there is nowhere for it to go.

Related tools