✦ tomai
Free · Text Tools

Markdown Preview

Live Markdown → HTML preview, and HTML → Markdown the other way

Input
Preview

Where Markdown ends and HTML begins

  • Inline HTML renders but sanitised — scripts, event handlers and dangerous URLs never reach the preview DOM.
  • Tables, fenced code with language hints and task lists follow the CommonMark/GFM dialect most sites ship.
  • The preview updates as you type; nothing leaves the browser, drafts stay private.

A preview that renders like production, safely

⚡

See the rendered result

Headings through level six, bold, italic, links, images, ordered and bullet lists, blockquotes and fenced code blocks render beside your source the moment you type them.

🔒

HTML back to Markdown

Paste markup copied from any web page and the reverse pass turns headings, links, images and code blocks back into clean Markdown, discarding scripts, styles and comments along the way.

🎯

Grab the finished HTML

The rendered preview copies as ready-to-paste HTML for a CMS or email, while the Markdown side exports the plain-text source — a sample document loads both panes for a first look.

Frequently asked questions

Does this support the full Markdown spec (tables, footnotes, etc.)?

It covers the common CommonMark subset most people actually use day to day — headers, bold/italic, links, images, lists, blockquotes, code blocks/spans and horizontal rules — not the full spec (no tables or footnotes yet).

How good is the HTML → Markdown conversion?

It handles the tags a typical "copied from a webpage" paste actually contains (headings, paragraphs, links, images, bold/italic, lists, code, blockquotes). Unusual or deeply nested markup may not convert perfectly — it's built for the common case, not as a full HTML parser.

Is my text uploaded anywhere?

No upload happens at any point: the preview is rendered from your source text by JavaScript in the page, so private notes and unpublished docs stay on your device.

Related tools

What Is a Markdown Preview?

Markdown writes formatted documents — headings, emphasis, links, lists, quotes and code — as plain text with a few symbols, and nearly every developer platform, note app and CMS speaks it. Raw Markdown is not what readers see, so writing blind means guessing where a heading, list or link will land. This tool renders Markdown into formatted HTML live beside the editor on every keystroke, and runs the reverse trip too: paste HTML copied from any page and get clean Markdown back. The forward renderer covers the everyday subset — six heading levels, bold and italic, inline and fenced code with language hints, links, images, blockquotes, rules and ordered and unordered lists — while reverse mode maps common tags back to Markdown and reduces the unknown to plain text.

Two directions, one split screen

  • 👁️ Live Markdown to HTML preview of headings, lists, quotes, links, images and code
  • 🧱 Fenced blocks keep their language hint and blockquotes keep quoted lines
  • 🔁 Reverse mode turns pasted HTML back into Markdown for reuse elsewhere
  • 🧹 Reverse input strips scripts, styles and comments from copied pages
  • 📋 Copy results or load the built-in sample to explore

Drafting loops it shortens

  • Checking a README or issue rendering before committing it
  • Porting a formatted web article into Markdown for a blog or wiki
  • Sanitizing copied web content into portable plain Markdown

One fair caveat: this is a compact converter for the common subset, not a full specification build, so exotic extensions like tables or footnotes may not render. It runs locally with no dependencies and no uploads, so long drafts preview instantly and private documents never leave your device.

Last updated · 2026-09-01

Related tools