Markdown Editor
Write Markdown with a live preview and export clean HTML.
Write Markdown with a live side-by-side preview and export clean HTML or Markdown — privately in your browser. Free. No sign-up. Runs in your browser, nothing is uploaded.
Preview
Type Markdown on the left and the rendered result appears on the right as you write; on a phone the two panes stack. The toolbar inserts bold, italic, a heading, a link, a list item or inline code at the cursor. When you are done, Copy HTML puts the rendered markup on your clipboard, and you can download your work as a .md file or as a standalone .html page. Sample loads an example document, and the draft is autosaved in your browser so a refresh does not cost you anything.
The syntax you will use 95% of the time
| You type | You get |
|---|---|
# Title / ## Section | Headings, level 1 and 2 |
**bold** | Bold |
_italic_ | Italic |
~~gone~~ | Strikethrough |
`code` | Inline code |
- item | Bulleted list |
1. item | Numbered list |
- [ ] todo / - [x] done | Task list with checkboxes |
> quote | Block quote |
[text](https://…) | Link |
 | Image |
--- | Horizontal rule |
Code blocks go between two lines of three backticks. Put the language after the opening fence (```js) and it is kept as a class on the code element, which syntax highlighters on your site can pick up.
Tables without the pain
GitHub-flavored Markdown tables are pipes and dashes. Colons in the divider row set the alignment:
| Item | Qty | Price |
|:--------|:---:|------:|
| Coffee | 2 | 3.50 |
| Bagel | 1 | 2.20 |
Left-aligned, centered, right-aligned. The columns do not have to line up in the source — that is only for your eyes — but every row needs the same number of pipes. A missing pipe is the most common reason a table renders as plain text.
Line breaks: the difference that trips people up
This editor renders with GitHub-flavored Markdown and treats every single line break as a break, like GitHub comments, issues and many chat tools. Plain Markdown and GitHub's own rendering of .md files do not: there, a single newline inside a paragraph is ignored.
| In the source | Here | In a README on GitHub |
|---|---|---|
| Two lines, no blank line between | Two lines | One joined paragraph |
| Blank line between | Two paragraphs | Two paragraphs |
Line ending in two spaces or \ | Line break | Line break |
If the text is going into a README or a static site generator, separate paragraphs with a blank line and you get the same result everywhere.
What happens to raw HTML
Markdown allows HTML inside it, which is handy (<details> for collapsible sections, <kbd>Ctrl</kbd> for keys) and risky when the text comes from someone else. Before the preview renders, the HTML passes through an allowlist:
- Kept: headings, paragraphs, lists, tables, code, quotes, images, links,
details/summary,kbd,mark,sub,sup, task-list checkboxes. - Removed with their content:
script,style,iframe,object,svg, forms and form fields. - Unwrapped: unknown tags disappear but their text stays.
- Attributes: only a short safe list survives;
onclickand friends are gone, and links that are not http, https, mailto, tel or relative are dropped. Every link getstarget="_blank"andrel="noopener noreferrer".
The copied and downloaded HTML is this cleaned version. It is a sound safety net for previewing pasted text; if you build a system that publishes Markdown from many untrusted users, sanitize again on the server.
Where the output goes next
- README or docs: download the
.mdand commit it; mind the line-break rule above. - A CMS or blog that accepts HTML: use Copy HTML and paste into the HTML or code view.
- A one-off page or an email attachment: Download .html gives a complete document that opens in any browser.
For length targets, the Word Counter tracks the draft as it grows, and the Case Converter makes headings consistent in Title Case or sentence case.
Frequently asked questions
Related tools
All Developer tools →- Word & Character CounterCount words, characters, sentences, paragraphs and reading time as you type.
- Case ConverterConvert text to UPPERCASE, lowercase, Title Case or Sentence case — instantly, in your browser.
- JSON FormatterFormat, beautify and minify JSON with instant validation — all in your browser.
