HTML ↔ Markdown Converter

Convert between HTML and Markdown both directions. GitHub-flavored syntax, sanitized HTML output, one-click copy. All client-side.

Runs in your browser — nothing uploaded

Convert between HTML and Markdown both ways, instantly, in your browser. Useful for moving content into a docs site, cleaning up pasted rich text, or generating publishable HTML from notes.

Private by design — your data never leaves your device

How to use it

No account, no upload — it all happens on your device.

1
Pick a direction — HTML → Markdown or Markdown → HTML.
2
Type or paste your source on the left.
3
Copy the converted output on the right, or expand the rendered preview.

When you'd use this

Three common scenarios.

  • Moving content between tools. Copy a doc out of Notion or Word as HTML, paste it here, get clean Markdown ready for a static-site generator.
  • Generating publishable HTML. Write in Markdown for readability, export sanitized HTML for a CMS that needs the raw source.
  • Migrating between blog platforms. Most platforms export one format and import the other. This is the missing middle step.

Markdown vs. HTML, the short version

Markdown is a plain-text syntax that converts to HTML. It's the right format for content that humans will read and edit directly — README files, blog posts, documentation. HTML is the right format for content that browsers render — which is everything you publish on the web.

For long-form writing the right workflow is usually: author in Markdown, render to HTML at build time, ship HTML. This tool lets you do that round-trip ad-hoc when you don't have a full pipeline.

See also: Markdown Preview for a dedicated live preview tool when you only need MD → HTML.

Frequently asked

What flavour of Markdown does this support?
GitHub-Flavored Markdown — fenced code blocks, tables, task lists, autolinks. Same parser most static-site generators use under the hood.
Is the HTML output safe to paste into my site?
Yes. The HTML produced from Markdown is passed through DOMPurify before display, so script tags, inline event handlers, and other XSS vectors are stripped. The raw HTML you copy is the sanitized version.
What's lost when converting HTML to Markdown?
Anything Markdown can't represent: inline styles, specific class names, advanced layout (div/span structure), embedded iframes, custom attributes. Plain semantic HTML — headings, paragraphs, lists, links, code, blockquotes, tables — round-trips cleanly.

Related tools

Color ConverterConvert any color between HEX, RGB, HSL, HWB, and OKLCH instantly. Includes a live swatch and one-click copy for each format.QR Code GeneratorGenerate QR codes for URLs, text, Wi-Fi, and more — entirely in your browser. Download as PNG or SVG. No tracking, no uploads.Unix Timestamp ConverterConvert Unix timestamps to human-readable dates and back. Supports seconds and milliseconds, UTC and local time. All in your browser.