Markdown Preview
Preview Markdown in real time
About This Tool
You've written some Markdown and want to check how it actually renders before committing it to a README, a blog post, or a documentation page. Paste it in the Edit tab, switch to Preview, and see the result. Headings, bold, tables, code blocks — it renders the same way GitHub and most Markdown processors handle it.
Features
- ✓Switch to preview instantly — Click the Preview tab and your Markdown renders immediately. Switch back to edit, make changes, check again.
- ✓All the common syntax covered — Headings (# H1 through #### H4), bold, italic, ordered and unordered lists, links, images, inline code, fenced code blocks, blockquotes, horizontal rules, and tables.
- ✓Code blocks look right — Fenced code blocks get a distinct background and monospace font — technical docs render cleanly.
- ✓GFM tables work — GitHub Flavored Markdown table syntax renders as proper bordered HTML tables. Good for structured data.
- ✓Renders locally — Your Markdown is processed in your browser and never sent anywhere. Safe for drafts and unreleased content.
FAQ
- What's the relationship between Markdown and HTML?
- Markdown is a shorthand that gets converted to HTML. **bold** becomes <strong>bold</strong>, # Heading becomes <h1>. The point is to write formatted text without manually typing HTML tags, while keeping the source readable as plain text.
- Why doesn't pressing Enter once create a new paragraph?
- Standard Markdown requires a blank line (two Enters) to start a new paragraph. A single newline is treated as continuation of the same paragraph. To force a line break within a paragraph, add two spaces at the end of the line. This tool has "breaks" enabled, so a single newline also produces a <br>.
- What is GitHub Flavored Markdown?
- GFM is GitHub's extension of standard Markdown. It adds tables, task lists (- [ ]), strikethrough (~~text~~), fenced code blocks with syntax hints, and a few other conveniences. This tool uses the marked library and supports most GFM syntax.
- Can I write raw HTML inside Markdown?
- Yes — standard Markdown passes HTML through as-is. That's fine here since you're the only author. If you're building something that renders user-submitted Markdown in a production app, always sanitize the output with DOMPurify first to prevent XSS.
Further Reading
- wikipediaMarkdown — Wikipedia
- w3cCommonMark Specification