The formatted document appears here as you type.
Markdown Editor & Preview
Write Markdown and see it formatted live, then export it as a .md file or an HTML page.
This Markdown editor shows your formatted document live next to the text you type. Use it to write a README, documentation, notes or a blog post, check how tables and code blocks will look, then download the result as a .md file or a ready-to-open HTML page. It runs entirely in your browser - nothing you write is uploaded or stored.
How to use the editor
- Type or paste Markdown on the left, or open a .md file. The preview updates as you type.
- Use the toolbar - or Ctrl+B, Ctrl+I and Ctrl+K - to add bold, italic and links without remembering the syntax. Press a button again to undo it.
- Switch between Split, Write and Preview views. On a phone, Write and Preview give each side the full screen.
- Copy the Markdown or HTML, or download a .md file or a standalone .html page.
Markdown cheat sheet
# Heading,## Smaller heading- one#per level, up to six.**bold**,_italic_,~~strikethrough~~and`inline code`.[link text](https://example.com)and.- itemfor bullets,1. itemfor numbered lists,- [ ] taskfor checkboxes.> quotefor a quotation,---for a horizontal line.- Three backticks (
```js) on the lines before and after a block of code, with an optional language for syntax highlighting. - Tables use pipes:
| Name | Age |, then a| --- | --- |line under the header.
GitHub-flavored Markdown
The preview follows GitHub-flavored Markdown (GFM), the variant used by GitHub, GitLab, Reddit and most documentation sites. On top of standard Markdown it adds tables, task lists, strikethrough and automatic links for plain URLs, so a README looks here the way it will on GitHub. By default a single line break inside a paragraph is ignored, as in standard Markdown - turn on Keep single line breaks to show every line break, like GitHub comments do.
Exporting to HTML
Download .html creates a complete web page with clean, readable styling built in, ready to open in any browser, email or print to PDF. Copy HTML gives just the HTML of the content, to paste into a CMS, a website or an email template. Any raw HTML in your Markdown is kept, but scripts and other active content are removed for safety.
Frequently asked questions
Is my document saved or uploaded?
No - it lives only in this browser tab. Download or copy it before you close the page; the site warns you if you try to leave with unsaved changes.
Is it safe to paste Markdown from elsewhere?
Yes. Markdown can contain raw HTML, so the preview runs everything through a sanitizer that strips scripts and event handlers before showing it. Links open in a new tab, so clicking one never closes your document.
Which languages get syntax highlighting?
Common ones including JavaScript, TypeScript, Python, HTML, CSS, JSON, YAML, SQL, Bash and many more - add the language name after the opening backticks.
Related tools
Count words and check readability with the Word Counter & Text Analyzer, compare two drafts with the Text Diff Checker, or browse all Text & Data tools.
Runs entirely in your browser - nothing you enter or upload is sent to a server.
Need it to do something else? Request a tool