Markdown Editor

Write Markdown with a live preview and export clean HTML.

Runs in your browserUpdated Built and maintained by Leon and Henrik

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.

Markdown Editor

Preview

Your rendered Markdown will appear here.
Runs in your browser
Nothing is uploaded

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 typeYou get
# Title / ## SectionHeadings, level 1 and 2
**bold**Bold
_italic_Italic
~~gone~~Strikethrough
`code`Inline code
- itemBulleted list
1. itemNumbered list
- [ ] todo / - [x] doneTask list with checkboxes
> quoteBlock quote
[text](https://…)Link
![alt text](image.png)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 sourceHereIn a README on GitHub
Two lines, no blank line betweenTwo linesOne joined paragraph
Blank line betweenTwo paragraphsTwo paragraphs
Line ending in two spaces or \Line breakLine 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; onclick and friends are gone, and links that are not http, https, mailto, tel or relative are dropped. Every link gets target="_blank" and rel="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 .md and 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