Markdown Previewer
Preview a single .md file or a whole .zip archive — right in your browser
Drop in a file or a zipped folder of docs. Browse the tree, follow cross-file links, view embedded images, share the whole workspace via a self-contained URL. Nothing ever leaves your browser.
Zero upload
Files stay in your browser. No latency, no privacy questions.
Private share
URL hash carries the workspace — never sent to our servers.
Same engine
Renders with the same GFM + KaTeX + Mermaid pipeline as /editor.
Safe HTML
rehype-sanitize allowlist strips scripts and event handlers.
What you get
A real previewer — not a single-file textarea
Most online Markdown previewers handle one document at a time. This one opens entire repositories, complete with folder structure, cross-file links, and embedded images.
Single .md or whole .zip
Drag in one Markdown file, or a whole archive — folder structure preserved.
Multi-tab + tree
Open many files at once, browse a sidebar tree, switch instantly.
Cross-file links
Relative .md links open the target as a new tab — IDE-style navigation.
Shareable URL
Self-contained link encodes the whole workspace. No server storage.
Use cases
Where teams reach for the Markdown Previewer
Audit a docs site
Drop the docs folder zip in, scan every README and guide without spinning up the static-site generator.
Course reading material
Send students a single link that decodes a workspace of lessons — no LMS upload needed.
Repository release notes
Download a GitHub tag's source zip, drop it in, follow the changelog + migration cross-links in tabs.
Internal review
Share a self-contained URL of your draft docs for a quick review pass — no Confluence space required.
CMS migration triage
Open a Markdown export from a legacy CMS, scan for broken cross-file links before importing anywhere.
Quick QA
Verify formatting, headings, images, and tables across a whole folder before you commit.
What does an online Markdown previewer do?
A Markdown previewer takes plain text written in Markdown and renders it as HTML so you can see exactly what the document will look like before publishing or committing. The Markdown Viewer Previewer goes a step further: instead of one document at a time, it can open an entire repository's worth of Markdown — drop a .zip archive in and the previewer rebuilds the folder tree, resolves cross-file links, and renders embedded images, all in your browser.
It's the fastest way to QA a docs site, audit a README, or browse a GitHub release without cloning the repo.
Single .md file or whole .zip — same workflow
Two ways to use the previewer:
- Paste / drop a single
.mdfile — get an instant live preview. - Drop a
.ziparchive — every.md/.mdxfile becomes a clickable entry in the sidebar; non-Markdown assets are kept so images and cross-file references continue to work.
In both modes the preview pane uses the same rendering engine as our main editor — GitHub Flavored Markdown, syntax-highlighted code, KaTeX math, Mermaid diagrams, the lot.
Browse like an IDE
The previewer feels like a tiny static-site preview built into your browser:
- Multi-tab navigation — open as many documents as you like.
- Folder tree —
.mdfiles are highlighted as the primary content; everything else is dimmed and still accessible. - Cross-file links — clicking
[API](./docs/api.md)opens the target file as a new tab, with all the path resolution you'd expect (../, bare names,folder/README.mdshortcuts). - Embedded images — relative paths resolve against the file's location and render via blob URLs created in-memory.
- Full-window mode — collapse the surrounding chrome and read distraction-free.
File manager built in
The preview pane is read-mostly, but the workspace itself is mutable:
- Rename any file (hover the tree row).
- Delete files you don't want included in the share / download.
- Download a single file (
.md) or the entire workspace as a fresh.zip. - Clear the workspace and start over.
Renames update tab labels live; deletes close the corresponding tab automatically.
Export anything
- Per-file: download as
.md, export to a self-contained HTML document, or rasterise as PDF (uses the same renderer as the print dialog). - Whole workspace: download as a brand-new
.zip— useful after you've tidied things up. - Shareable URL: click Share and the entire workspace is zipped, base64-encoded, and stuffed into the URL hash fragment. Recipients open the link and see the same thing you did. Nothing is stored on our servers.
How the shareable URL works (and what it doesn't)
When you click Share, the previewer:
- Walks every file in your workspace.
- Writes them into a fresh
.zip(with deflate compression). - Base64-url-encodes the resulting bytes.
- Writes the result to
#w=...on the current URL. - Copies that URL to your clipboard.
Because the payload lives in the URL fragment (the part after the #), it never reaches a web server — fragments are stripped before requests are sent. The recipient's browser decodes the fragment, rebuilds the zip in memory, and loads the workspace. You get a self-contained shareable link without us ever touching the data.
The soft warning at ~150 KB is real: some mail / chat tools trim long URLs. Past 2 MB encoded we block sharing and ask you to download the .zip instead.
What it renders
- Headings, paragraphs, blockquotes
- Ordered, unordered, and task lists
- Fenced code blocks with language-aware highlighting for 150+ languages
- Tables with alignment
- Inline images and external links
- Footnotes, strikethrough, and autolinks
- KaTeX math (block and inline)
- Mermaid diagrams in ```mermaid` fences
Sanitisation and safety
Opening a third-party .zip shouldn't be risky. The previewer sanitises raw HTML inside Markdown using rehype-sanitize with a conservative allowlist:
<script>,<style>,<noscript>tags are removed.- Inline event handlers (
onclick,onerror, …) are stripped. javascript:URLs and unsafe iframes are blocked.- Only
http(s):,mailto:,blob:, and the workspace's own asset references are allowed as resource URLs.
You can open .zip archives from people you don't fully trust and not worry about XSS.
Why client-side?
Privacy and speed. There is no upload step — even a 500-file zip opens in well under a second because we never wait for a network round trip. Your unreleased internal docs, your draft post, that repo your client mailed you — nothing leaves the browser tab unless you explicitly download or share.
Common scenarios
- Open a
.zipsomeone shared on Slack or email — preview everyREADME, browse the docs folder, follow links between files. - Audit a docs site you cloned but haven't built locally — check headings, links, images, formatting issues without spinning up a static-site generator.
- Quickly read a GitHub release: download the source
.zipfrom a tag page, drop it in, browse the changelog and migration notes. - Prepare a Markdown bundle for review: load the files, tidy up names, share the URL so a reviewer sees exactly what you see.
- Triage a Markdown migration: open the source
.zipfrom your old CMS export, scan readability and broken cross-file links before importing.
Free, no signup, no API key
The Markdown Previewer is free for any use — personal, commercial, classroom. There's no account to create, no token to copy. Drop a file, get a preview.
Ready?
Drop a file or a .zip above. Use the Share button to send the result to a colleague. Use the Download button to save a tidied workspace as a fresh .zip. Use the Expand button to read distraction-free.
FAQ
Markdown Previewer — frequently asked questions
- Two things: a single Markdown file (.md, .markdown, .mdx) or a .zip archive that may contain many files. Only .md / .mdx files become clickable in the file tree, but every file in the zip is preserved so cross-file links and embedded images keep working.
- No. The previewer is 100% client-side. The zip is unpacked in your browser, files live in memory, image references resolve to in-memory blob URLs. Nothing ever leaves your tab. Closing the tab discards everything; downloads and share links are the only ways content leaves the page.
- Click Share, and the entire workspace is zipped, base64-encoded, and stuffed into the URL hash fragment (the part after #). Hash fragments are never sent to a server, so the contents are visible only to whoever has the URL. Most mail / chat clients accept URLs up to a few hundred kilobytes — past that we recommend downloading the .zip and sharing the file directly.
- Yes. Relative links like [API](./docs/api.md) resolve against the current file's path. Clicking the link opens the target file in a new tab — exactly like a local IDE. Bare names ('api'), missing extensions, and folder/README.md style references are also resolved automatically.
- Relative image paths inside the zip render correctly — every binary asset is held as a Blob in memory and exposed to the preview as a blob: URL. Tables, fenced code blocks, task lists, KaTeX math, and Mermaid diagrams all render via the same engine as our main editor.
- Yes. Each open Markdown file can be exported as .md (the source), as a clean self-contained HTML document, as a PDF, or sent to the print dialog. The entire workspace can be downloaded as a fresh .zip — useful when you've used the file manager to rename / delete things and want a tidied-up copy.
- There's no hard limit beyond what your browser is willing to hold in memory. Zips with hundreds of small Markdown files and a few megabytes of images work fine. The share URL has a soft warning at ~150 KB encoded and a hard ceiling at 2 MB — beyond that, share the .zip file directly.
- Yes — tables with alignment, task lists, strikethrough, autolinks, fenced code with syntax highlighting for 150+ languages. The renderer is react-markdown plus remark-gfm and a curated rehype pipeline, the same one that powers /editor.
- Inline HTML is allowed but sanitised — script tags, inline event handlers (onclick, onerror), javascript: URLs, and dangerous iframes are stripped via rehype-sanitize. The preview is safe to open against an untrusted .zip you received from someone else.
- The editor is single-document, multi-draft, optimised for authoring (toolbar, find/replace, drafts bar). This previewer is multi-file, read-mostly, and optimised for browsing — think of it as a lightweight static-site preview for a folder of docs.
- Once the page has loaded, the previewer runs offline — there are no server round-trips after first paint. You can drop in a zip on the train and read it all the way home.
- Yes — the layout adapts to narrow viewports. The file tree collapses under the preview on small screens, and tabs scroll horizontally. Drag-and-drop works on touch devices via the file picker button.
What can I open in the Markdown Previewer?
Is anything uploaded to a server?
How does the share link work?
Do cross-file links between Markdown files work?
What about images and other assets?
Can I export the rendered output?
How big can the zip be?
Does the previewer support GitHub Flavored Markdown?
Is HTML inside Markdown safe to render?
How is this different from the main /editor?
Will it work offline?
Can I use it from a tablet or phone?
Free. Private. Works offline once it loads.
Drop a single .md file or a whole .zip — no signup, no API key, no upload. Share the result with a self-contained URL.
Also available: the full editor, a link checker, and 26 other Markdown utilities.
Related tools
More free browser tools in the same workflow.
Use the API
Automate this workflow in your app with the same engine that powers these browser tools.
New to the platform? Start with the API quickstart, then try a live request in the API playground.
Explore the API platform