Markdown Preview

Type Markdown and see the rendered HTML update as you go. Supports GFM tables, task lists, strikethrough and code fences; copy the HTML or download it as a standalone page. Everything runs in your browser.

Preview

How it works

The page loads two small libraries the first time you type —marked to turn Markdown into HTML, andDOMPurify to sanitise that HTML — so the initial page stays light. Everything then runs in your browser: your text is never sent to a server, and the tool keeps working offline once the libraries are cached.

What GitHub-Flavoured Markdown adds

On top of plain Markdown, GFM gives you tables (pipes and a divider row), task lists (- [ ] and- [x]), strikethrough(~~text~~), and automatic line breaks on a single newline. Fenced code blocks with a language tag get alanguage-* class so a syntax highlighter can pick them up later.

Sanitisation

Markdown allows raw HTML, which means a pasted document could contain a<script> tag or an onerror handler. Before the preview is shown or the HTML is copied, DOMPurify strips anything that could execute, so the output is safe to drop into a page or a CMS field. External links are rewritten to open in a new tab without leaking the referring page.

Related tools

Count the words in your draft with theword counter, tidy a fenced JSON block with the JSON formatter, or generate filler copy with the lorem ipsum generator.

Related tools

Frequently asked questions

Which Markdown flavour is this?
GitHub-Flavoured Markdown (GFM): headings, lists, links, images, blockquotes, fenced code, plus tables, task lists and strikethrough. A single newline becomes a line break, matching how GitHub renders comments.
Is the HTML safe to paste into my site?
Yes. The rendered HTML is run through DOMPurify in your browser before it is shown or copied, which removes

Last reviewed: September 2026. Figures and formulas are checked against their published sources; see the site's data notes.