Markdown Preview
Write Markdown and see the formatted result live, with tables, task lists and code blocks. Export as HTML.
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
- Type or paste Markdown on the left, or open a .md file. The sample shows the most common syntax.
- Watch the preview update on the right. Switch between side-by-side, editor-only and preview-only views; on small screens the panels stack.
- 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.
- 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
## Notes **Bold**, _italic_ and [a link](https://example.com)
<h2>Notes</h2> <p><strong>Bold</strong>, <em>italic</em> and <a href="https://example.com">a link</a></p>
GFM table
| Plan | Price | |------|------:| | Pro | $9 |
A two-column table with the price column right-aligned
The colon in the separator row sets the alignment: :--- left, :---: centre, ---: right.
Task list
- [x] Write draft - [ ] Review
☑ 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;  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.
Related Tools
Count words, characters, sentences and paragraphs as you type, with reading time, keyword density and common length limits.
Compare two texts side-by-side or unified to inspect additions, deletions, and modifications.
Prettify, validate, and minify JSON data instantly in your browser.
Featured Projects tech-fun.net
Explore more AI & productivity tools
Nihongo GameBox
Master Japanese typing, Kana, and JLPT N5–N1 vocabulary through interactive retro arcade games.
ResumeGPT
Tailors CVs and cover letters to every job opportunity with a multi-agent LLM pipeline, job tracking, and scheduled discovery.
CollectMind
Turns your bookmarks into a searchable AI knowledge base — entirely on-device, powered by Chrome's built-in Gemini Nano.