Markdown Editor with Live Preview
Write Markdown on the left and watch the formatted result render live on the right — headings, lists, links, tables, code blocks, and blockquotes. Drafts auto-save to your browser's local storage so you never lose work, and nothing is uploaded. Great for README files, GitHub issues, and blog drafts.
How to use Markdown Editor
- Type Markdown on the left side of the editor.
- Watch the rendered HTML preview update on the right as you type.
- Use the toolbar buttons for quick formatting — bold, italic, headings, links, and code.
- Your draft auto-saves to local storage, so you can close the tab and pick up where you left off.
- Download the finished .md file, or copy the rendered output into your destination.
Writing Markdown with confidence
Markdown is a lightweight markup language that turns plain text into formatted HTML using a handful of intuitive symbols. It powers READMEs, documentation, issue trackers, static sites, and note apps because it stays readable in its raw form while still producing rich output. A live-preview editor lets you see exactly what the renderer will produce as you write.
CommonMark: the spec that removes ambiguity
The original Markdown left many edge cases undefined, so different tools rendered the same text differently. CommonMark fixed that with a precise specification. This editor follows CommonMark, so the rules below behave predictably no matter how you nest or combine them.
Core syntax
# Heading 1
## Heading 2
**bold**, *italic*, and `inline code`
- bullet item
- another item
1. numbered item
2. second item
> a blockquote
[link text](https://example.com)
Headings use one to six # marks; emphasis uses asterisks; lists use a leading dash or number; and links and images share the same bracket-and-parenthesis shape, with images adding a leading ! .
GitHub-Flavored Markdown extensions
GFM adds the features people actually need in documentation. Task lists render as checkboxes, tables align with colons, and tildes strike text through:
- [x] done
- [ ] still to do
| Name | Role |
| :---- | -------: |
| Ada | Engineer |
~~deprecated~~Code blocks and language hints
Fenced code blocks are the safest way to show code. Wrap the block in triple backticks and name the language after the opening fence to enable syntax highlighting. Everything inside is treated literally, so special characters and indentation survive untouched.
The blank-line rule
Block-level elements are separated by blank lines, and a single newline inside a paragraph collapses to a space. If two lines unexpectedly merge, add a blank line between them; if you need a hard break within a paragraph, end the line with two spaces or a backslash.
Safe rendering
Because Markdown permits inline HTML, this editor sanitizes the rendered output with DOMPurify, stripping scripts and event handlers. You get the convenience of raw HTML when you need it, without the security risk of executing pasted content.
Related dev tools
- Diff Checker — compare two versions of a document.
- HTML Encoder — escape entities before embedding HTML in Markdown.
- JSON Formatter — tidy JSON snippets to paste into code blocks.
- Word Counter — track the length of what you are writing.
Frequently asked questions
Which Markdown flavour does this support?
What is the difference between CommonMark and GFM?
How do I write a table?
How do fenced code blocks work?
Why did my single line break disappear?
Where are my drafts stored?
Is the rendered HTML safe?
Can I export to PDF?
Related tools
More tools you might find useful in the same flow.
JSON Formatter
Free JSON formatter, validator, and minifier with line/column error reporting. Sensitive payloads stay on your device — nothing is sent to a server.
JWT Decoder
Free JWT decoder for inspecting header, payload, and expiry. Tokens never leave your browser — safe for production tokens containing secrets or PII.
Base64 Encoder
Base64 encoder and decoder online: convert text to Base64 or decode Base64 strings back to readable text. UTF-8 safe, instant, and free to use with no signup.
URL Encoder
URL encoder and decoder online — percent-encode URLs, query strings, and parameters or decode them back to plain text. Instant results, right in your browser.
Built by Muhammad Tahir · About