curly{bits}

curlybits / Markdown Preview

Markdown Live Preview

Write or paste Markdown on the left and see it rendered on the right as you type, the way GitHub shows a README. Tables, task lists, code blocks and links all work. Switch to HTML to copy the code, or download your document as a .md or .html file. Your draft stays in this browser.

Markdown
Preview

How to use the Markdown Live Preview

  1. Type or paste Markdown into the left box, or click Load sample.
  2. Watch the preview update on the right. Click HTML to see the generated code.
  3. Tick Line breaks as <br> if single line breaks should start a new line, like in GitHub comments.
  4. Click Copy HTML, or download a .md or .html file. The draft is kept in this browser until you clear it.

Markdown cheat sheet

You typeYou get
# Heading, ## Smaller headingHeadings, levels 1 to 6
**bold**, _italic_, ~~strike~~bold, italic, strike
[text](https://example.com)A link
![alt text](image.png)An image
- item or 1. itemBullet or numbered list
- [ ] task, - [x] doneTask list with checkboxes
`code`Inline code
Three backticks on lines before and afterA code block (add a language name like js after the first three)
> quoteA blockquote
| a | b | then |---|---|A table
---A horizontal line

GitHub-flavored Markdown

The preview follows GitHub-flavored Markdown (GFM), the version used for READMEs, issues and pull requests on GitHub and GitLab. It adds tables, task lists, strikethrough and automatic links to the original Markdown syntax. The look of the preview is close to GitHub's, although exact spacing differs.

Safe preview

Markdown can contain raw HTML. The preview cleans it with DOMPurify, so pasted scripts and event handlers are removed and can't run. The same cleaned HTML is what you copy or download.

Frequently asked questions

Is my text saved anywhere?

Only in this browser's local storage, so your draft comes back when you return. It's never uploaded. Click Clear to delete it.

Why doesn't a single line break show?

In Markdown, a single line break is joined to the previous line. Leave a blank line between paragraphs, end a line with two spaces, or tick Line breaks as <br>.

Can I use HTML inside Markdown?

Yes, most HTML tags work. Scripts, styles and event attributes are removed for safety.

Does it highlight code?

Code blocks are shown in a monospace font, without syntax colors.

Add this Markdown previewer to your website

Free for blogs, schools and businesses. Copy the code below and paste it into your page's HTML. The tool works exactly like this one and runs in your visitors' browsers, so nothing is uploaded. Please keep the credit line so others can find it too.

Preview embed ↗