Markdown Editor

Write Markdown on the left, see the rendered preview on the right — every fragment sanitized with DOMPurify before it touches the page.

Text Tools Runs in your browser · no upload

Reviewed 17 November 2026 · Free · No account needed

ExecutionYour browserInput never leaves your tab
File retentionNoneNothing is stored
AccountNot requiredNo sign-up, no paywall
PriceFreeNo trial, no usage cap on the tool itself

How to use

  1. Type or paste Markdown in the editor pane.
  2. The sanitized preview updates as you type.
  3. Copy the generated HTML.

Example

Input: # Hello\n\n- item one

Output: <h1>Hello</h1><ul><li>item one</li></ul>

How it works

Markdown is parsed into HTML with the marked parser, then the resulting HTML is sanitized with DOMPurify — scripts, event handlers and dangerous URLs are stripped before the preview is shown.

Every edit runs the Markdown through the marked parser (GitHub-flavoured basics: headings, lists, tables), then the resulting HTML is sanitized with DOMPurify before the preview renders it. Copy HTML hands you the sanitized output.

Worked example

# Hello\n\n- item one renders as <h1>Hello</h1><ul><li>item one</li></ul>.

Edge cases to know

  • Output is sanitized: scripts, event handlers and dangerous URLs are stripped.
  • HTML inside Markdown is allowed but sanitized before preview.
  • GitHub-flavoured basics only — headings, lists and GFM tables; no further extensions.

Limits & compatibility

  • GitHub-flavoured basics (headings, lists, tables via GFM tables plugin in marked) — no extensions.
  • Output is sanitized: scripts, event handlers and dangerous URLs are stripped.
  • HTML inside Markdown is allowed but sanitized before preview.

Privacy

Your text never leaves the browser. There is no server call, no storage and no logging of content.

Related tools

FAQ

Questions about Markdown Editor

Is the preview safe for untrusted Markdown?

Yes. Every rendered fragment is passed through DOMPurify before it touches the page, and scripts, event handlers and dangerous URLs such as javascript: links are stripped out. That applies to HTML you paste directly into the Markdown as well — inline HTML is allowed, but it is sanitized before display rather than trusted.

What Markdown flavour does it support?

The GitHub-flavoured basics: headings, emphasis, lists, code, links, blockquotes and tables via the GFM tables support in the marked parser. Extensions beyond that are not offered, so elaborate plug-in syntax will render as plain text. Rendered with marked and sanitized with DOMPurify, the preview updates as you type on the left.

Can I copy the generated HTML out?

Yes — the Copy HTML button places the sanitized HTML on your clipboard, ready to paste into a CMS or email composer that accepts HTML. What you copy is exactly what the preview shows, sanitisation included, so nothing script-bearing can slip through on the way out. A Clear button resets the editor pane.

Does the editor work without an internet connection?

Once the page has loaded, editing and previewing happen entirely in your browser — no server call reads your Markdown, so nothing is transmitted, logged or stored. The page itself needs a modern browser with JavaScript enabled; DOMPurify needs a live document, which is why the preview appears in the browser rather than in any server-rendered output.