WebToolsPlanet
Developer Tools

Free Markdown Preview & Online Markdown Editor

Write or paste Markdown and see the rendered preview update instantly. Copy Markdown, rendered HTML, or plain text, import .md files, download Markdown or HTML, and keep drafts in local browser auto-save.

Live previewGFM supportHTML exportBrowser based

Last updated: June 30, 2026

Client-Side Processing
Input Data Stays on Device
Instant Local Execution
No upload requiredLocal auto-saveSanitized preview

Find this tool useful? Support the project to keep it free!

Buy me a coffee

What is Markdown Viewer?

Markdown Viewer is a browser-based Markdown preview workspace with full GitHub Flavored Markdown (GFM) support. It renders Markdown into sanitized HTML so you can check headings, lists, links, images, tables, task lists, blockquotes, and code blocks before publishing.

The tool is designed for README files, documentation, changelogs, release notes, blog drafts, and technical notes. Your Markdown is processed locally in the browser with no account required, and local auto-save means a refresh never loses your draft.

Markdown Editor Features

Live Side-by-Side Preview

See rendered Markdown next to the editor as you type with automatic debounced updates.

GitHub Flavored Markdown

Full GFM support: tables, task lists, strikethrough, fenced code blocks, and auto-links.

Copy & Export Options

Copy Markdown, rendered HTML, or plain text. Download .md or standalone .html files.

Browser Auto-Save

Edits are saved to your browser automatically. Refreshing the page never loses your draft.

Sync Scroll

Scroll the editor and the preview follows. Toggle on or off with one click in the toolbar.

Code Block Copy Buttons

Each code block in the preview gets a copy button injected automatically for quick copying.

Fullscreen Writing Mode

Enter a distraction-free fullscreen workspace. Press Escape or the toolbar button to exit.

Import .md Files

Open any .md or .txt file directly in the browser — no upload required.

Private & Client-Side

All processing happens in your browser. Your Markdown is never uploaded to the server.

Markdown Syntax Cheat Sheet & Quick Reference

Headings (H1–H6)

# H1 ## H2 ### H3 through ###### H6 — one # per heading level. H1 is the page title; H2–H4 are section headings.

Bold, Italic, Strikethrough

**bold** or __bold__ • *italic* or _italic_ • ***bold italic*** • ~~strikethrough~~ (GFM)

Links

[link text](https://url.com) for inline links. <https://url.com> autolinks bare URLs (GFM). [text][ref] with [ref]: url for reference-style links.

Images

![alt text](image.jpg) — same syntax as a link with a leading ! before the bracket. Alt text is shown if the image fails to load and is required for accessibility.

Inline Code and Code Blocks

Wrap inline code in `backticks`. Fenced code blocks use triple backticks ``` with an optional language name (```js, ```python) for syntax highlighting hints.

Unordered Lists

Start each item with - or * or +. Indent by 2–4 spaces to create a nested sub-list. Mixing markers is valid but - is the convention.

Ordered Lists

Start each item with 1. 2. 3. — or just 1. repeated. Markdown auto-increments numbers in the rendered output regardless of the source values.

Task Lists (GFM)

- [x] Done item and - [ ] Pending item. Task lists render as checkboxes in GitHub, Notion, and any GFM renderer including this tool.

Tables (GFM)

| Col A | Col B | on the first row, then | --- | --- | as the separator, then data rows. Align columns with :--- (left), :---: (center), ---: (right).

Blockquotes

> prefix per line to create a blockquote. >> for a nested quote. Blockquotes can contain other Markdown including lists and headings.

Horizontal Rule

--- or *** or ___ on its own line (3 or more characters) renders a horizontal divider. Separate it from surrounding paragraphs with a blank line.

How to Use the Markdown Preview Tool

1

Type, paste, or import a .md file into the Markdown editor.

2

Use Split, Editor, Preview, or HTML mode to inspect your document.

3

Use the toolbar for common Markdown syntax: headings, lists, links, code, and tables.

4

Copy Markdown, rendered HTML, or plain text using the Copy buttons.

5

Download a .md or standalone .html file, or use Print to save the preview as PDF.

Common Use Cases

  • Previewing GitHub README files before committing them.
  • Writing project documentation with live Markdown preview.
  • Checking Markdown tables, task lists, and code blocks.
  • Copying rendered HTML for CMS, email, or documentation workflows.
  • Drafting changelogs, release notes, and technical blog posts.
  • Importing .md files for quick inspection or cleanup.
  • Writing blog posts for Markdown-native platforms like Dev.to or Hashnode.
  • Preparing Markdown content for Jekyll, Hugo, Astro, or other static site generators.

Example Input and Output

A Markdown document with a checklist and table renders to clean preview HTML.

Markdown input
# Release Notes

- [x] Update docs
- [ ] Publish release

| Area | Status |
| --- | --- |
| API | Ready |
Rendered preview
<h1>Release Notes</h1><ul><li><input type="checkbox" checked disabled> Update docs</li><li><input type="checkbox" disabled> Publish release</li></ul><table><thead><tr><th>Area</th><th>Status</th></tr></thead><tbody><tr><td>API</td><td>Ready</td></tr></tbody></table>

Markdown Preview vs Markdown Editor vs Markdown Viewer

A Markdown preview tool shows how your Markdown will look after it is rendered. A Markdown editor helps you write and update Markdown content. A Markdown viewer is mainly used to open and read Markdown files. This tool combines all three: you can write Markdown, preview it live, sync-scroll through the output, copy the rendered HTML, and download your Markdown or HTML file from one page. If you need all three in one place with no account, no cloud sync dependency, and local auto-save, this tool covers the complete workflow.

How This Tool Works

The tool parses Markdown with the shared Markdown-to-HTML renderer, sanitizes the output with DOMPurify, and displays it in a live preview panel. Code block copy buttons are injected after render. Copy and download actions use browser APIs: Clipboard, Blob, object URLs, FileReader, localStorage, and CSS print styles.

Technical Stack

marked.jsDOMPurifyCodeMirror 6Browser Clipboard APIBlob downloadslocalStorage auto-saveClient-side only

Privacy

Markdown rendering and file handling happen in your browser. Local auto-save uses browser storage on your device and does not upload draft content to WebToolsPlanet.

Security

Rendered Markdown HTML is sanitized before preview insertion to remove unsafe tags, event handlers, and dangerous links.

Frequently Asked Questions

What Markdown syntax is supported?
The viewer supports common Markdown and GitHub Flavored Markdown features such as headings, paragraphs, bold, italic, strikethrough, links, images, ordered and unordered lists, blockquotes, inline code, fenced code blocks, tables, and task lists.
Can I use this as an online Markdown editor?
Yes. You can write or paste Markdown, use toolbar buttons for common syntax, preview the result live, copy output, and download Markdown or HTML files.
Does this send my Markdown anywhere?
No. Markdown rendering, import, export, and local auto-save happen in your browser. Drafts saved by auto-save are stored in your browser localStorage.
Can I copy Markdown as HTML?
Yes. Copy HTML copies the sanitized rendered HTML, not the raw Markdown source.
Can I export Markdown as PDF?
Use the Print button and choose Save as PDF in your browser print dialog. The print view focuses on the rendered preview.
What is sync scroll?
Sync scroll links the editor and preview panels so that scrolling the editor automatically scrolls the preview to the matching position. Toggle it on or off using the Sync button in the toolbar.
What is GitHub Flavored Markdown (GFM)?
GFM is a Markdown variant created by GitHub. It extends CommonMark with tables (pipe syntax), task list checkboxes (- [x] / - [ ]), strikethrough (~~text~~), fenced code blocks with language names (```js), and autolinks for bare URLs. This tool renders GFM, so documents written for GitHub repositories preview accurately.
Can I check how a README.md will look on GitHub before pushing?
Yes. Paste or import your README.md and the live preview matches GitHub rendering for GFM tables, task lists, strikethrough, and fenced code blocks. The only elements that differ are GitHub-specific extensions such as @mentions, #issue links, and Mermaid diagrams in their live GitHub context.
How do I write a Markdown table?
A GFM table uses pipe | characters as column separators. The first row is the header, the second row is a separator using dashes, and all following rows are data: | Column A | Column B | on the header row, | --- | --- | on the separator row, then data rows. Use :--- for left-align, :---: for center, and ---: for right-align in the separator row. Use the Markdown Table Generator to build the syntax for you.
Does this tool work without an internet connection?
Once the page has loaded, Markdown rendering and auto-save work offline. The tool runs entirely in your browser and does not call any external API to convert or preview Markdown.
How is this different from Dillinger or StackEdit?
Dillinger and StackEdit require an account for cloud saves and sync to external services. This tool saves drafts to your browser localStorage with no sign-up, no storage quota imposed by a free tier, and no data transmitted to any server. It also runs after the page loads without a network connection.