About this tool
An online Markdown editor with syntax highlighting, a toolbar for headings, bold, links, lists and code, and edit, split and preview modes. Copy the HTML or download files.
Typical uses
- Write a README or technical documentation
- Tidy meeting notes and export HTML
- Preview the layout of a blog post
How to use
Enter or open Markdown and use the toolbar to format selections as headings, bold text, links, lists or code.
Choose Edit, Split or Preview, inspect the rendering, then copy HTML or download files.
Select text and choose Bold, then insert headings, lists or a table and inspect the preview. Download the Markdown source or an HTML file with basic styling.
Up to 100K characters and 3000 lines; preview parsing stops after 2.5 seconds. Raw HTML is not rendered. Linked images are off until enabled, which makes requests to their hosts.
Preview supports up to 100K characters and 3000 lines. Raw HTML is not rendered and linked images are off by default; enabling them allows preview and exported HTML to request image hosts.
Which Markdown features are rendered
The preview parses with marked in GFM mode, then cleans the result with DOMPurify against an allow-list. The left column is the editor text (↵ marks a line break) and the middle column is the HTML the preview actually receives. That same HTML is what Copy HTML and Download HTML export:
| Markdown | Preview HTML | Notes |
|---|---|---|
| Title↵=== | <h1>Title</h1> | Underlined (===) headings work. Headings get no id, so #anchor links do not jump inside the exported page. |
| 3. three↵4. four | <ol start="3"><li>three</li><li>four</li></ol> | An ordered list starting at 3 keeps start="3". |
| - [ ] todo↵- [x] done | <ul><li>☐ todo</li><li>☑ done</li></ul> | Task list checkboxes become the characters ☐ and ☑, so done and open items stay distinct in the export too, but they cannot be ticked by clicking. |
| www.example.com | <p><a href="http://www.example.com">www.example.com</a></p> | A bare www. address becomes a link with http:// added. |
| ~one~ ~~two~~ | <p><del>one</del> <del>two</del></p> | One or two tildes both make strikethrough. |
| line1↵line2 ↵line3 | <p>line1↵line2<br>line3</p> | A single newline does not break the line; two trailing spaces produce <br>. |
| | L | R |↵|:--|--:|↵| 1 | 2 | | <table><thead><tr><th align="left">L</th><th align="right">R</th></tr></thead><tbody><tr><td align="left">1</td><td align="right">2</td></tr></tbody></table> | Table alignment is written as an align attribute. |
| ```js↵x<y↵``` | <pre><code>x<y↵</code></pre> | The language class of a fenced block is stripped: no syntax highlighting in the preview or the export. |
| Note[^1]↵↵[^1]: note | <p>Note<a href="note">^1</a></p> | Footnotes are not supported: the definition is read as a link reference, so [^1] becomes a link to “note”. |
| $x^2$ | <p>$x^2$</p> | Math is not rendered. |
| © <b> | <p>© <b></p> | HTML entities are decoded. |
The “Edit”, “Split” and “Preview” modes change only the layout, never the rendering. The preview re-renders in a background worker 350 ms after you stop typing and shows “Updating…” meanwhile.
How HTML, links and images are made safe
Raw HTML is never rendered. HTML fragments are discarded while parsing, and DOMPurify then limits the result to static tags, so no script runs and no iframe, video poster or CSS background image loads. Actual results (∅ means no output at all):
| Markdown | Preview HTML | Notes |
|---|---|---|
| a <kbd>Ctrl</kbd> b | <p>a Ctrl b</p> | Inline tags are dropped; the text between them stays. |
| <div>block</div> | ∅ | A block of HTML is dropped together with the text inside it. |
| <script>alert(1)</script> | ∅ | Scripts never appear. |
| x <!-- note --> | <p>x </p> | HTML comments are removed. |
| [js](javascript:alert(1)) | <p><a>js</a></p> | A javascript: link loses its href and keeps only its text. |
| [d](data:text/html,x) | <p><a>d</a></p> | So does a data: link. |
| [m](mailto:a@b.c) | <p><a href="mailto:a@b.c">m</a></p> | mailto: and http(s) links are kept. |
|  | <p>alt text</p> | By default images are not loaded; only the alt text is shown and no request reaches the image host. |
|  | <p><img src="https://e.com/a.png" alt="alt text" title="t"></p> | Only with “Load linked images (requests go to image hosts)” ticked is an img written, with src, alt and title. |
| <img src="https://e.com/a.png"> | ∅ | Even then an HTML <img> tag is removed; only Markdown image syntax works. |
The allowed tags are exactly: h1, h2, h3, h4, h5, h6, p, br, hr, blockquote, pre, code, strong, b, em, i, del, s, ul, ol, li, a, table, thead, tbody, tr, th, td, plus img once images are enabled. The only attributes kept are href, title, start and align (and src, alt for images); style, data-* and aria-* are always removed.
- “Download HTML” saves a complete page whose header carries the Content Security Policy default-src 'none'; img-src 'none'; style-src 'unsafe-inline'; base-uri 'none'; form-action 'none'. With images enabled, img-src becomes https: http: data:. The referrer is set to no-referrer, so image hosts are not told where the file came from.
- “Copy HTML” copies only the body fragment, without styles or the policy, for pasting into an existing page or CMS.
- “Download Markdown” saves the editor text as typed; it is not cleaned.
What the toolbar buttons insert
With nothing selected, a button inserts its syntax around a placeholder word and selects the placeholder so you can type over it. Placeholders follow the page language. On the English page the buttons insert:
| Button | Inserted text |
|---|---|
| Bold | **text** |
| Heading 2 | ## text |
| Link | [text](https://example.com) |
| Inline code | `code` |
| Code block | ```↵code↵``` |
| Bullet list | - text |
| Quote | > text |
| Table | | Heading | Content |↵| --- | --- |↵| Item | Value | |
- Select “use `x` here” and press “Inline code”: the result is ``use `x` here``. The fence uses one more backtick than the longest run inside, so the content cannot close the code early.
- If the selection itself contains ```, “Code block” switches to four backticks: ````↵a↵```↵b↵````.
- “Heading 2”, “Bullet list” and “Quote” work on whole lines; with two lines selected each gets the prefix: ## one↵## two.
- With the cursor in the middle of a line, code blocks and tables get line breaks before and after instead of being pushed into the sentence.
Document size limits and messages
| Message | When it appears |
|---|---|
| Preview supports up to 100,000 characters. Use a smaller document. | More than 100,000 characters, counted as JavaScript string length: an emoji usually counts as 2, so a text of only 😀 tops out at 50,000. The counter under the editor shows the same number. |
| Preview supports up to 3,000 lines. Use a smaller document. | More than 3,000 lines. A single line break at the very end does not count as an extra line. |
| The generated page is too complex. Use a smaller document. | The rendered HTML is longer than 500,000 characters or has more than 6,000 elements. A two-column table costs 3 elements per row, so about 1,998 rows fit. |
| Preview was stopped after timing out. Use a smaller document. | Rendering in the worker took longer than 2.5 seconds. |
| Markdown files are limited to 400 KB. | The file chosen with “Open file” is over 400 KB. A UTF-8 BOM is removed on reading. |
For the first four messages the preview header shows “Preview paused” and the HTML buttons are disabled, while “Download Markdown” still saves your text. Everything is rendered in the browser; the document is not uploaded.
Sources
Frequently asked questions
Is raw HTML in Markdown executed?
No. Raw HTML is not rendered and the preview is sanitized.
Are linked images shown?
They are off by default. Enabling them sends requests to the image hosts.
How long can documents be?
Up to 100,000 characters and 3000 lines.
Suggest an improvement to this tool
Missing an option, something awkward to use, or a wrong result? Let us know.