Mermaid is a text-based diagram description language. Write diagrams like code. This tool runs entirely in your browser - your code never leaves your device.
Quick Start: Click a template tab above to choose a diagram type, modify the code, then click Render.
graph TD
A[Start] --> B{Condition}
B -->|Yes| C[Process]
B -->|No| D[Skip]
C --> E[End]
D --> E
sequenceDiagram
participant User
participant System
User->>System: Send Request
System-->>User: Return Response
This tool supports flowcharts (graph), sequence diagrams (sequenceDiagram), class diagrams (classDiagram), state diagrams (stateDiagram-v2), ER diagrams (erDiagram), Gantt charts (gantt), and pie charts (pie).
SVG (editable vector format, infinitely scalable) and PNG (bitmap format, great for documents). SVG exports maintain full graphic quality.
Check your Mermaid syntax. Common issues include incorrect arrow direction symbols, duplicate node IDs, or mismatched brackets. Start with a template and modify gradually. Error messages appear below the code editor.
Mermaid has simpler, more concise syntax that's easier to learn. It's natively supported in GitHub Markdown. PlantUML is more powerful but has a steeper learning curve. For most common diagrams, Mermaid is the better choice.