Text & Utilities

Markdown Preview

Write Markdown and see the formatted result live, with tables, task lists and code blocks. Export as HTML.

Markdown
Preview

Scripts, event handlers and embedded frames are removed from the preview, so pasted Markdown cannot run code. Your draft is kept in this browser only.

About this tool

Markdown is a lightweight way to format text with plain characters: # for headings, ** for bold, - for lists. It is used for README files on GitHub, documentation sites, note apps such as Obsidian and Notion, chat tools and many blogging platforms. This editor shows the formatted result next to your text as you type.

It follows GitHub Flavored Markdown (GFM), so tables, task lists, strikethrough and fenced code blocks render the way they will on GitHub. When you are done, copy the HTML or download a standalone .html file with clean default styling, or save your Markdown as a .md file. Rendering happens in your browser, and anything executable is stripped from the preview.

How to use Markdown Preview

  1. Type or paste Markdown on the left, or open a .md file. The sample shows the most common syntax.
  2. Watch the preview update on the right. Switch between side-by-side, editor-only and preview-only views; on small screens the panels stack.
  3. Turn on "Line breaks as <br>" if you want every single line break to show, as in GitHub comments; by default a blank line starts a new paragraph.
  4. Copy the rendered HTML, or download it as a complete .html page or the source as a .md file. The file name comes from your first heading.

Examples

Headings, emphasis and links

Input
## Notes
**Bold**, _italic_ and [a link](https://example.com)
Result
<h2>Notes</h2>
<p><strong>Bold</strong>, <em>italic</em> and <a href="https://example.com">a link</a></p>

GFM table

Input
| Plan | Price |
|------|------:|
| Pro  | $9 |
Result
A two-column table with the price column right-aligned

The colon in the separator row sets the alignment: :--- left, :---: centre, ---: right.

Task list

Input
- [x] Write draft
- [ ] Review
Result
☑ Write draft
☐ Review

Markdown cheat sheet

  • # Heading 1, ## Heading 2 … ###### Heading 6
  • **bold**, *italic* or _italic_, ~~strikethrough~~, `inline code`
  • - item or * item for bullet lists; 1. item for numbered lists; indent to nest
  • [link text](https://url) for links; ![alt text](image.png) for images
  • > for blockquotes; --- on its own line for a horizontal rule
  • Three backticks followed by a language name (```js) start a code block; close it with three backticks
  • A blank line separates paragraphs; end a line with two spaces or a backslash to force a line break

Is the preview safe?

Markdown can contain raw HTML, which makes previewing untrusted text risky: a pasted snippet could include a script or an onerror handler. This tool passes the rendered HTML through DOMPurify, a widely used sanitizer, which removes scripts, event handlers, javascript: links, iframes and forms before anything is shown.

The exported .html file contains the same sanitized markup, so it is safe to open or publish.

Frequently asked questions

Everything you need to know about this tool and data security.

Which Markdown flavor does it use?

GitHub Flavored Markdown on top of CommonMark: tables, task lists, strikethrough, autolinks and fenced code blocks. Footnotes, math and diagrams are not part of GFM's core and are not rendered.

Why does my single line break disappear?

In standard Markdown, a single newline inside a paragraph is treated as a space. Leave a blank line for a new paragraph, end the line with two spaces, or enable "Line breaks as <br>".

Is my document saved?

Your draft is stored in this browser's local storage so it survives a reload. It is never uploaded. Use Download .md to keep a copy, and Clear to remove it.

Can I paste the HTML into WordPress or an email?

Yes. "Copy HTML" gives clean markup without styles, which most editors accept in their HTML or code view. For a styled standalone page, use "Download .html".

Is my data safe when using this tool?

Yes, 100% safe. This tool operates entirely inside your web browser using client-side JavaScript and WebAssembly. Your data never touches any external server.