Flowchart Syntax Guide
Master Mermaid flowchart syntax with this interactive guide. Learn node shapes, connections, and advanced features.
Every Mermaid flowchart starts with a direction declaration. Use `flowchart TD` for top-down, `flowchart LR` for left-right, `flowchart BT` for bottom-top, or `flowchart RL` for right-left.
flowchart TD
A[Start] --> B[Process]
B --> C[End]Live Editor
More Tutorials
All tutorialsMermaid Sequence Diagram with Examples
Copy a Mermaid sequenceDiagram and edit it in the browser. The examples below cover participants, solid and dashed messages, activation, loops, and alt fragments.
Mermaid Gantt Chart Examples to Copy
Copy a Mermaid Gantt chart and change the dates. These examples cover task ids, after dependencies, done and critical states, milestones, and excludes weekends.
ER Diagram Tutorial — Entities, Keys & Relationships
Design database schemas visually with Mermaid ER diagrams. Learn entity declarations, attribute types, relationships, and cardinality notation.
Getting Started — Your First Mermaid Diagram in 2 Minutes
New to Mermaid? Start here. Learn the fundamentals and create your first diagram in minutes.