How to use the Markdown Preview
- 1
Type or paste Markdown into the editor on the left, or drop a .md file onto it. The rendered document updates on the right as you type.
- 2
Use the formatting buttons, or Ctrl+B, Ctrl+I and Ctrl+K, to make text bold, italic or a link. Buttons for headings, lists, task lists, quotes and code wrap the current selection.
- 3
Switch the view between Split, Editor only, Preview only and HTML to see the generated markup. In Split view the preview scrolls with the editor.
- 4
Tick Line breaks if you want single newlines rendered as line breaks, as in GitHub comments.
- 5
Copy the HTML, or download the document as a .md file or as a standalone .html page.
Features
- Live preview with GitHub Flavored Markdown, including tables, task lists, strikethrough and autolinks
- Formatting toolbar and keyboard shortcuts that wrap the selection
- Split, editor, preview and HTML source views with synced scrolling
- Output sanitised with DOMPurify, so pasted HTML cannot run scripts
- Links open in a new tab with rel noopener, and unsafe link schemes are removed
- Copy HTML, download Markdown, or download a standalone styled HTML page
- Word count, character count and reading time as you write
- Your draft is saved in this browser automatically; nothing is uploaded
Write Markdown, see the result
Markdown is the plain-text format behind README files, documentation sites, chat messages and many note-taking apps. It is quick to write but easy to get slightly wrong: a missing blank line merges two paragraphs, a table separator row with the wrong number of cells breaks the whole table. A live preview catches those mistakes as you make them.
The editor keeps your text on the left and the rendered page on the right. The toolbar wraps whatever you have selected, so formatting an existing sentence is one click, and pressing the same button again removes the formatting.
Safe by default
Markdown allows raw HTML, which means a document pasted from an untrusted source can contain scripts. Everything this tool renders goes through DOMPurify, a widely used HTML sanitiser, before it reaches the page. Dangerous tags and attributes are stripped, unsafe link schemes are removed, and every remaining external link opens in a new tab without access to this page. The HTML you copy or download is the same cleaned markup.
Related tasks
Count the words in a draft with the Word Counter. To escape a code sample before embedding it in HTML, use the HTML Entity Encoder.
Frequently asked questions
Which Markdown syntax is supported?
Is it safe to paste Markdown from somewhere else?
Why do my single line breaks disappear?
Where is my draft stored?
What does the downloaded HTML file contain?
Can I use this to write a README?
Last updated .