Markdown Editor

Copy
Export
0 words0 chars0 lines0 min readAuto-saved

Why write Markdown in an online editor with live preview?

Markdown is plain text, so it's quick to type and diffs cleanly in version control, but a missing blank line or an unclosed backtick only shows up once it's rendered. Writing beside a live preview catches those slips as you type. This editor renders GitHub Flavored Markdown with alerts and footnotes, keeps the preview scrolled to the part you are writing, saves your draft in your browser as you go, and exports .md, HTML or PDF. Nothing you write is uploaded.

How to use the Markdown editor

  1. Type or paste Markdown, or press Open to load a .md file. The preview updates on every keystroke; on a phone, switch between Write and Preview.
  2. Format with the toolbar or Ctrl+B, Ctrl+I and Ctrl+K (Cmd on a Mac). TOC inserts a linked table of contents.
  3. On a computer, drag the divider to resize the panes; scrolling either side keeps the other in step.
  4. Use Copy for Markdown, HTML or formatted text, or Export for a .md file (Ctrl+S), an HTML page or a PDF. Your draft also stays in this browser.

What is Markdown?

Markdown is a lightweight markup language John Gruber released in 2004: you format with plain-text marks such as # for headings, ** for bold and [text](url) for links, and a converter turns that into HTML. The CommonMark specification later pinned down the details, and GitHub Flavored Markdown (GFM) extends it with tables, task lists, strikethrough and automatic links. It is used for README files, documentation, notes apps like Obsidian, forums like Reddit, and prompts for AI chatbots.

Keyboard shortcuts

BoldCtrl+B
ItalicCtrl+I
LinkCtrl+K
Save .mdCtrl+S
Undo / redo (toolbar edits too)Ctrl+Z / Ctrl+Shift+Z
Indent (two spaces)Tab
Leave the editor (keyboard)Esc, then Tab

Markdown cheat sheet

Everything in this table renders in the preview. Paste any row into the editor to see it.

You typeYou get
# Heading 1 ## Heading 2 ### Heading 3Headings, from level 1 down to level 6. Each gets a GitHub-style anchor, so [link](#heading-2) jumps to it.
**bold** *italic* ~~strike~~Bold, italic, and strikethrough. Underscores also work for bold and italic.
`inline code`Code inside a sentence, in a monospace font.
```js const a = 1; ```A fenced code block. The language name is optional.
[link text](https://example.com)A link. Bare addresses like https://example.com or www.example.com are linked automatically.
![alt text](https://example.com/a.png)An image. The alt text is what screen readers announce.
> quoted text >> nested quoteA blockquote, and a quote inside it.
> [!NOTE] > Worth knowing.A GitHub alert. Also [!TIP], [!IMPORTANT], [!WARNING] and [!CAUTION].
- item - item - nested itemA bulleted list (* and + work too). Indent two spaces to nest.
1. first 1. secondA numbered list. Numbering is automatic, so every item can start with 1.
- [ ] to do - [x] doneA task list with checkboxes, shown but not clickable.
| Item | Qty | |------|----:| | Tea | 2 |A table. The row of dashes separates the header; a colon sets the alignment.
Text[^1] [^1]: The note.A footnote: numbered automatically and listed at the end with a link back.
---A horizontal rule. Leave a blank line above it, or the text above becomes a heading.
\*not italic\*A backslash shows a Markdown character as itself.

Export Markdown to HTML, PDF, Google Docs or Word

  • HTML file: Export › HTML file saves a complete page with its own styles (light and dark), so it opens and prints properly anywhere, even offline. The file is named after your first heading.
  • PDF: Export › Print or save as PDF prints only the formatted document, without the editor around it. Pick "Save as PDF" (or "Microsoft Print to PDF") as the printer. On an iPhone, open Print from the Share sheet and choose Save to Files.
  • Google Docs, Word and email: Copy › Formatted text puts the rendered document on the clipboard, so headings, lists, tables and links paste as real formatting instead of # and ** symbols.
  • Websites and CMSs: Copy › HTML gives the bare HTML (headings, paragraphs, lists, tables) to paste into WordPress, Ghost or a template.

Going the other way? Convert Word files with DOCX to Markdown or a web page with HTML to Markdown, tidy messy syntax with the Markdown cleaner, and build tables from a spreadsheet with CSV to Markdown table.

How this editor renders Markdown

The preview uses the open-source marked parser with GitHub Flavored Markdown switched on, plus GitHub's alerts, footnotes and heading anchors. A few details are worth knowing before you paste the result somewhere else:

  • Single line breaks are kept. Pressing Enter once starts a new line in the preview, the way GitHub comments behave. GitHub README files and many site generators join those lines into one paragraph instead, so separate paragraphs with a blank line and end a line with a backslash when you need a hard break that works everywhere.
  • Heading anchors follow GitHub. "Install & Setup" becomes #install--setup and a repeated heading gets -1, -2, so a table of contents made here keeps working on GitHub.
  • Single tildes strike through. GFM treats text between single tildes as deleted, so H~2~O comes out crossed out rather than as a subscript. Escape the tilde with a backslash to keep it.
  • Code isn't colored. A language name after the opening fence is kept as a class that syntax highlighters on your site can use, but the preview shows plain monospace text.
  • HTML passes through, cleaned. Tags such as <details> or <kbd> work. The preview and every copy and export are sanitized with DOMPurify, which removes scripts and event-handler attributes, so what you copy is what you see.
  • Images need a full address to show. The preview loads an image only from a full web address (https://…) or a data: URL. A relative path such as photo.png can't be resolved on this page, so the preview shows its alt text instead; the path is kept as written in your Markdown and in the exports.
  • One draft per browser. Your text lives in this browser's local storage. It survives reloads and restarts, but clearing site data or closing a private window removes it, so download the .md file for anything you want to keep. If the browser blocks storage, or a document grows past its storage limit (usually about 5 MB), the editor keeps working and the status bar says autosave is off.

Frequently Asked Questions

How do I use this online Markdown editor?

Type or paste Markdown in the editor and the formatted preview updates as you type, side by side on a computer or on the Preview tab on a phone. Use the toolbar or Ctrl+B, Ctrl+I and Ctrl+K (Cmd on a Mac) for bold, italic and links, then copy the result or export it as a .md, .html or PDF file.

Is my document saved, and is it private?

Your text is saved automatically in this browser's local storage as you type, so it survives reloads and restarts. It never leaves your device: the Markdown is rendered by JavaScript on the page and nothing is uploaded. Clearing site data or closing a private window deletes it, so download a .md file for anything you want to keep.

How do I convert Markdown to HTML or PDF?

Open Export: HTML file saves a complete web page with its own styles that opens in any browser, and Print or save as PDF opens your browser's print dialog showing only the formatted document, where you choose Save as PDF. To paste HTML into a website or CMS, use Copy › HTML instead.

How do I paste Markdown into Google Docs, Word or an email with formatting?

Choose Copy › Formatted text, then paste into Google Docs, Word, Outlook or Gmail. Headings, bold and italic, lists, links, tables and code blocks arrive formatted instead of as Markdown symbols.

Does it support GitHub Flavored Markdown, alerts and footnotes?

Yes. Tables, task lists, strikethrough, fenced code and automatic links (GFM) all render, plus GitHub's alert blocks (a quote starting with [!NOTE], [!TIP], [!IMPORTANT], [!WARNING] or [!CAUTION]), footnotes written as [^1] with a [^1]: definition, and heading anchors that use GitHub's naming, so #section links work.

How do I add a table of contents?

Put the cursor where the contents should go and press the TOC button. It inserts a nested list linking every heading with the same anchors GitHub generates, leaving out a single top-level title. Press it again after editing headings to make a fresh one.

How do I make a table in Markdown?

Write the header cells between pipes, add a row of dashes under it, then one line per row: | Item | Qty |, then |------|-----|, then | Tea | 2 |. The table button inserts a two-column skeleton. Colons in the dash row set each column's alignment: :--- left, :---: centered, ---: right.

Why does a single line break show in the preview but not on GitHub?

This editor turns every single line break into a visible break, the way GitHub comments and issues do. GitHub README files and most static-site generators follow plain CommonMark, which joins those lines into one paragraph. For text that renders the same everywhere, separate paragraphs with a blank line and end a line with a backslash when you need a hard break.

Can I open an existing .md file?

Yes. Press Open and pick a .md, .markdown or .txt file, or drag the file onto the editor. It is read on your device and replaces the current text; Undo in the status bar brings the previous text back. Exports are named after the file, or after the document's first heading.

Does it work on a phone?

Yes. On a narrow screen the editor and preview become Write and Preview tabs so each gets the full screen, the toolbar buttons are sized for fingers, and the text box uses a 16px font so iPhones don't zoom in when you tap it. Your draft is saved on the phone just as on a computer.

Can I write HTML inside Markdown?

Yes. Inline HTML such as <details>, <kbd>, <sup> or <br> passes through to the output. The preview and every copy and export are cleaned with DOMPurify, which removes scripts and event-handler attributes, so what you export is what you see.

Does it support math, diagrams or emoji shortcodes?

No. LaTeX math between dollar signs, Mermaid diagrams and emoji shortcodes such as :smile: are extensions some platforms add, and they appear here as plain text. Paste emoji characters directly instead; they are stored as text and render everywhere.

Advertisement