1. Home
  2. Developer
  3. Markdown Preview

Markdown Preview

Write Markdown, see the rendered result live and export it as HTML.

Runs in your browser · No upload
Preview
Preparing the preview…

The preview renders only sanitized HTML (DOMPurify) inside an isolated sandbox iframe where scripts cannot run. For safety, links inside the preview do not open.

Your text is converted in this browser and never uploaded. External image URLs in your Markdown are loaded from their servers in the preview.

How to use

  1. Type Markdown on the left and the preview on the right updates as you go | handy for READMEs, blog drafts, meeting notes or anything headed for GitHub or Notion.
  2. GitHub-flavored Markdown (GFM) is supported: tables, task lists (- [ ]), strikethrough (~~ ~~) and automatic links.
  3. Turn on “Treat single line breaks as
    ” to see single newlines as line breaks, the way GitHub comments render them.
  4. Download .md saves your source; Download .html saves a styled web page. Copy HTML copies just the body HTML.

Syntax cheat sheet

You want Markdown
Headings # Title, ## Subtitle (number of # = level, space required)
Bold, italic **bold**, _italic_
Links, images [text](https://url), ![alt text](https://image-url)
Lists - item or 1. item
Task lists - [ ] to do, - [x] done
Quotes > quoted text
Code `inline code`, or a block fenced with three backticks (```)
Tables | Head | Head | then |---|---|; align with :---: (center) or ---: (right)

When line breaks don’t behave

In standard Markdown (CommonMark), a single newline is treated as a space, not a line break; a blank line starts a new paragraph. To break a line inside a paragraph, end it with two spaces or a backslash (\). GitHub issues and comments show single newlines as breaks, which is why the same text can look different in a README. Use the option above to compare both.

How the preview stays safe

Markdown allows raw HTML, so text from someone else can hide malicious scripts. This tool sanitizes the converted HTML with DOMPurify | stripping scripts, event-handler attributes and javascript: links | and renders it only inside an isolated sandbox iframe where scripts can’t run. For the same reason, links in the preview don’t open. The exported .html file also carries a Content Security Policy that blocks scripts.

FAQ

Is my text saved or uploaded?

No. Conversion happens in your browser and nothing is sent to a server | download your .md before closing the page. External image URLs you include are fetched from their servers so the preview can show them.

Can I go the other way, from a web page to Markdown?

Use HTML to Markdown. To check length, try the Character Counter.

Can't find the tool you need?

Tell us what you want to do. We build the most requested tools first.