Mermaid diagram viewer
Type or paste Mermaid and the diagram is drawn as you go. Syntax errors point at the line, and the finished diagram can be zoomed, panned and downloaded.
What it does
- Live preview of flowcharts, sequence diagrams and the other Mermaid diagram types
- Compare two versions of a diagram's source side by side, with the differences highlighted
- Syntax errors give the line, and the line is highlighted
- Zoom with the mouse wheel or buttons, drag to pan, fit to view
- Download the diagram as SVG or PNG
- Diagrams are drawn in Mermaid's strict security mode and sanitized before display
Questions
- How big can a diagram be?
- Up to 50,000 characters and 500 connections, Mermaid's own limits. Larger diagrams get a clear message instead of a broken drawing.
- Can I use the diagram elsewhere?
- Yes. Download it as an SVG to edit or embed, or as a PNG image.
- Can I preview Mermaid inside a Markdown document?
- Yes. On the Markdown formatter, a ```mermaid code block is drawn as a diagram in the preview, the way GitHub shows it. A diagram with an error shows its source and the problem, and the rest of the document still renders.
Other formatters
A private formatter for the formats you paste every day
Paste JSON, YAML, Mermaid, XML, SQL and Markdown on the left and get it tidied on the right as you type. Errors name the line and column. It formats and checks; it never converts one format into another.
What it does
- Several formats in one place. Each has its own page and its own remembered settings.
- Clear errors. They point at the line and highlight it in the input.
- Copy or download. Downloads use the right file type for each format.
- Smooth on big pastes. Formatting runs in a background worker, so typing stays responsive. Mermaid diagrams are drawn on the page itself.
- Extras where they help. Zoom and pan for Mermaid diagrams, a rendered preview for Markdown, and a dialect picker for SQL.
Questions
Is my data sent to a server?+–
No. Formatting runs in your browser, on your own device. What you paste is kept in memory only: it is never uploaded or saved.
Can it convert JSON to YAML, or other formats?+–
No, on purpose. Each page formats one format and keeps it that format.
What happens with invalid input?+–
You get an error with the line and column instead of a half-formatted result. JSON is checked strictly, so comments and trailing commas are reported.
Is anything remembered between visits?+–
Your settings (like the SQL dialect) and how you arranged the panes are remembered in your browser. The text you paste is not.