MMD File Viewer
Open .mmd, .mermaid and Markdown files and see every Mermaid diagram rendered. Drag and drop, review, and export, all without uploading anything.
- Drag and drop
- Markdown support
- PNG & SVG export
- Files stay on your device
How to open an MMD file
- Drag your file onto the page, or click Choose files. You can open several files at once.
- See every diagram. A
.mmdfile shows as one diagram. A Markdown file shows each```mermaidblock as its own card, in order. - Export or edit. Download any diagram as PNG or SVG, copy its code, or open it in the full Mermaid editor to change it.
What is an .mmd file?
An .mmd file (sometimes .mermaid) is a plain-text file that contains Mermaid diagram code: a diagram type on the first line, such as flowchart TD or sequenceDiagram, followed by nodes and connections. It is the input format for the official Mermaid CLI (mmdc) and many documentation tools.
Because it is plain text, you can open an MMD file in any text editor, but you will only see code. To see the actual diagram you need something that renders Mermaid, which is what this viewer does.
Viewer features
Markdown support
Open a README, design doc or wiki export and see all of its Mermaid diagrams without the surrounding text.
Multiple files
Drop a whole folder's worth of .mmd files and review them on one page.
PNG and SVG export
Turn any diagram into an image for slides, tickets or chat with one click.
Stays on your device
Files are read with your browser's File API. They are never uploaded, so private docs stay private.
Other ways to view MMD files
- VS Code: install a Mermaid preview extension, then open the file and run the preview command.
- GitHub and GitLab: put the code in a Markdown file inside a
```mermaidblock and it renders automatically. See how to embed Mermaid in Markdown. - Command line:
npx -p @mermaid-js/mermaid-cli mmdc -i file.mmd -o file.svgconverts the file to an image.
If a diagram shows a syntax error, open it in the Mermaid syntax checker to see which line to fix.
Frequently asked questions
How do I open an .mmd file?
Drag it onto this page or click Choose files. The diagram renders instantly in your browser. You can also open .mmd files in any text editor to see the code.
Can I view Mermaid diagrams inside a Markdown file?
Yes. Open a .md file and every fenced ```mermaid block is rendered as its own diagram, in the order it appears.
Are my files uploaded?
No. Files are read locally with your browser's File API and never leave your device.
What is the difference between .mmd and .mermaid files?
Nothing. Both are plain-text Mermaid diagram files. The official Mermaid CLI accepts either extension.
How do I convert an .mmd file to PNG?
Open the file here and click PNG on the diagram card. For more control over scale and background, use the Mermaid to PNG converter.
Is there a size limit?
Files up to 5 MB are supported, which is far larger than any normal diagram file.