Markdown Editor: Write Markdown with Live Preview
Write GitHub-flavored Markdown with a formatting toolbar and keyboard shortcuts, see a live side-by-side preview with synchronized scrolling, and get an automatic table of contents, word count, and reading time. Export as .md, a standalone .html file, or copied HTML. Everything runs in this tab; nothing is uploaded or stored.
Tab indents list lines. Press Esc, then Tab, to leave the editor.
Preview
Ready.
Save and export
No unsaved changes.
Nothing is kept after you reload or close this tab. Download the .md file to keep your work.
Counts
Table of contents
Checks
How it works and limits
- Private and not stored. Parsing and rendering run in this tab with a small built-in GitHub Flavored Markdown renderer. Nothing is uploaded, and nothing is saved in browser storage, so a reload clears the editor. If you have unsaved edits, the browser asks before you leave. Download .md (or Ctrl/Cmd+S) counts as saving.
- Supported syntax: ATX and setext headings, emphasis, strong, strikethrough, inline code, fenced and indented code blocks, block quotes, nested bulleted, numbered, and task lists, tables with column alignment, inline and reference links and images, <URL> autolinks, bare www, http(s), and email autolinks, footnotes, hard line breaks, backslash escapes, and common HTML entities.
- Safety: raw HTML is always shown as text, never rendered. Links may use only http, https, mailto, or # (same-document) targets. Images may use only http or https. Anything else, including javascript:, data:, and relative paths, is shown struck through and marked [blocked]. Exported and copied HTML uses the same rules, and every character of your text is escaped.
- Remote images are off by default because loading them contacts the image host. Turn on Load remote images to see them. Exported HTML always keeps the image tags.
- Anchors: heading ids follow GitHub's rules (lowercase, punctuation removed, spaces become hyphens, duplicates get -1, -2) with a
markdown-editor-prefix. A[link](#heading)points to the prefixed id automatically. Copy TOC as Markdown outputs GitHub-style anchors for README files. - Not included: math, diagrams, syntax highlighting, emoji shortcodes, GitHub alerts, and HTML blocks. Code blocks get a
markdown-editor-lang-<name>class only. The parser follows CommonMark and GFM closely but not perfectly, so unusual nesting and lazy-continuation edge cases can differ from GitHub. Tabs in indentation count as 4 columns. - Counts: words come from the rendered text, with each Chinese or Japanese character counted as one word. Characters are Unicode code points. Reading time assumes 200 words per minute.
- Keyboard: Ctrl/Cmd+B bold, I italic, K link, E inline code, Shift+X strikethrough, Shift+. quote, Shift+8, Shift+7, and Shift+9 for bulleted, numbered, and task lists, Alt+1 to Alt+6 headings, Alt+0 plain paragraph, ] and [ indent and outdent, F find. Enter continues lists and quotes. Enter on an empty item ends the list. Tab and Shift+Tab indent list lines and multi-line selections. Elsewhere Tab moves focus as usual. Esc makes the next Tab leave the editor. Every edit goes through the browser's own undo (Ctrl/Cmd+Z), including Clear, Sample, Import, and Replace all.