Fast, static-first
Astro static site. Mermaid.js loads only when you open the preview tool, so the rest of the site stays light.
Paste Mermaid syntax and watch the SVG appear as you type. Export PNG or SVG, copy a shareable URL, or learn the syntax for any of the eleven diagram types — without leaving the browser.
Boxes and arrows for processes, decisions, and pipelines.
Learn →Time-ordered messages between actors and services.
Learn →Object-oriented classes, attributes, and relationships.
Learn →State machines, UI flows, and lifecycle transitions.
Learn →Entity-relationship diagrams for database schemas.
Learn →Timelines with sections, dependencies, and milestones.
Learn →Quick proportional charts.
Learn →Hierarchical idea maps and brainstorms.
Learn →Astro static site. Mermaid.js loads only when you open the preview tool, so the rest of the site stays light.
Rendering happens in your browser. We never receive your diagram source — not even for share URLs (we use the URL fragment).
Each diagram type ships with a guide, a cheat sheet, and worked examples so you can learn while you sketch.
Mermaid runs with securityLevel: 'strict'. Even pasted snippets that try to inject scripts are sanitised.
Diagrams as code live in pull requests, render automatically in GitHub READMEs, and diff cleanly when you change them. They are versioned, they survive a laptop crash, and they take seconds to share. Mermaid Preview is the workshop where you draft, debug, and export those diagrams.