Markdown Preview
Write Markdown and see a live preview with HTML output. Supports headers, bold, italic, links, code blocks, tables, and more. 100% client-side processing.
No data sent to serverRelated Tools
What is Markdown?
Markdown is a lightweight markup language created by John Gruber and Aaron Swartz in 2004 as "easy-to-read, easy-to-write plain text format." The original design goal: text that's readable as-is in any editor, then convertible to HTML when needed. Twenty years later, Markdown is the dominant format for technical writing on the web.
Why Markdown won
HTML is verbose. Word processors are heavyweight. Markdown hits the sweet spot — minimal syntax, readable raw, fast to type, and convertible to HTML/PDF/anything via tools like Pandoc. It's plain text, so it works in any editor, version controls cleanly with Git, and never gets corrupted.
Where Markdown is used
- GitHub / GitLab / Bitbucket — README, issues, PRs, comments
- Notion / Obsidian / Logseq / Bear — note-taking apps
- Discord / Slack / Microsoft Teams — message formatting
- Stack Overflow / Reddit / Hacker News — comments and posts
- Jekyll / Hugo / Astro / Next.js MDX — static site generators
- Documentation tools — MkDocs, Docusaurus, GitBook
- Pandoc — convert Markdown to PDF, Word, EPUB, etc.
How to Use
- Type or paste Markdown in the left editor panel.
- The live preview on the right updates as you type — see how your formatted output will look.
- The raw HTML output appears below the preview — useful for embedding in CMSes that need HTML.
- Click Copy HTML to copy the generated HTML to clipboard.
- Click Sample to load example Markdown showcasing all supported features.
Privacy: Everything renders in your browser. Notes, drafts, and content stay private.
Markdown Syntax Cheatsheet
Text formatting
# Heading 1 ## Heading 2 ### Heading 3 **bold text** *italic text* ~~strikethrough~~ `inline code` > blockquote > spans multiple lines --- (horizontal rule)
Lists
- Unordered item - Another item - Nested item 1. Ordered item 2. Second item 1. Nested ordered - [ ] Task list (GFM) - [x] Completed task
Links and images
[link text](https://example.com) [link with title](https://example.com "Tooltip")   <https://autolink.example.com> <email@example.com>
Code blocks
```javascript
const x = 1;
console.log(x);
```
Indented code block (4 spaces)Tables (GFM)
| Column 1 | Column 2 | Column 3 | | -------- | :------: | -------: | | left | center | right | | data | data | data |
Markdown Flavors
Markdown's original 2004 spec was loose — different tools implemented incompatible versions. CommonMark (2014) standardized core syntax. Major flavors today:
CommonMark
The strict, unambiguous reference spec. All modern parsers (markdown-it, commonmark.js, marked, rehype) follow this. The base layer everyone agrees on.
GitHub Flavored Markdown (GFM)
CommonMark + GitHub-specific extensions: tables, task lists [ ] / [x], strikethrough ~~text~~, autolinks, emoji shortcodes:smile:, footnotes. The de facto standard for code documentation. Most tools accept GFM.
MDX
Markdown + JSX. Lets you embed React components inside Markdown. Used by Docusaurus, Next.js docs, Astro. Powerful for interactive docs, but breaks compatibility with non-React tooling.
Pandoc Markdown
The "kitchen sink" flavor — adds: math ($E = mc^2$), citations ([@smith2020]), definition lists, fenced divs, and many academic-friendly features. Used for academic papers and books converted to PDF.
Obsidian / Logseq / Roam
Personal knowledge management apps add wikilinks [[Page Name]], block references, embeds, callouts. Increasingly important as note-taking conventions but not portable to other tools.
Compatibility tip
For maximum portability, stick to CommonMark + basic GFM (tables, task lists). Avoid wikilinks and proprietary extensions when content needs to move between tools.
FAQ
Does this support all Markdown features?
Yes for CommonMark + most GFM: headings, bold, italic, strikethrough, links, images, code blocks (fenced and indented), inline code, blockquotes, ordered/unordered lists, tables, horizontal rules, task lists. Math ($$) and footnotes require dedicated tools (KaTeX, remark-math).
Is the HTML output safe?
The HTML is sanitized via DOMPurify to remove <script> tags, onclick handlers, javascript: URLs, and other XSS vectors before rendering. Safe for displaying user- submitted Markdown.
Why does my Markdown render differently on different sites?
Different flavors. GitHub, Stack Overflow, Discord, and Notion each implement slightly different supersets. For portability, write to CommonMark and avoid extensions unless you control the rendering target.
Can I include HTML inside Markdown?
Yes — Markdown allows raw HTML by design. Block-level HTML elements work inline. Useful when Markdown's vocabulary is too limited (custom CSS classes, complex tables, embedded iframes). Sanitization may strip some tags depending on the parser config.
What's the file extension — .md or .markdown?
Both work. .md is the de facto standard (shorter). .markdown is the original extension Gruber used. GitHub recognizes both.
How do I embed videos or interactive content?
Plain Markdown doesn't have video tags. Most renderers accept HTML iframe / video tags inline. For React-based sites, use MDX to embed components. For static sites, shortcodes (Hugo, Jekyll plugins) provide {% youtube ID %} style syntax.
⚠️ Reference Only
Output is generated based on your input and is provided for reference. Results may vary depending on your specific use case, edge cases, or environment-specific behavior. We do not guarantee accuracy of conversions, validations, or computed values.
Always verify critical outputs against official documentation or production environments. We are not responsible for any decisions or losses based on these tool results.
📖 Related Guides
Color Formats — HEX, RGB, HSL, OKLCH
Modern CSS color formats explained. When to use OKLCH for perceptual uniformity.
REST vs GraphQL vs gRPC — Choosing an API Paradigm
Trade-offs across performance, tooling, type safety, and team shape. When to use each.
UUID v4 vs ULID — Which to Choose?
Compare UUID v4 and ULID for distributed systems. Performance, sortability, and use cases.