Mermaid Flowchart Maker
Build directed flowcharts and decision trees with Mermaid syntax — live preview, SVG/PNG export, no account needed.
Runs 100% in your browser. Your input and files never leave your device.
Why use our online Mermaid Flowchart Maker?
Create and export Mermaid flowcharts in seconds with a live code editor and instant preview.
How to use Mermaid Flowchart Maker
- 1Start with the flowchart keyword
Begin your diagram with "flowchart TD" (top-down) or "flowchart LR" (left-right) to set the direction.
- 2Add nodes and connections
Define nodes with brackets (A[Text]), diamonds (B{Decision?}), or circles (C((Circle))). Connect them with arrows: A --> B.
- 3Label your edges
Add labels to arrows using pipes: A -- Yes --> B or A -->|No| C.
- 4Export your flowchart
Download as SVG for Figma or web use, or PNG at 2× for slides and documentation.
Frequently Asked Questions
What is the difference between flowchart TD and flowchart LR?
TD means top-down — nodes flow vertically from top to bottom. LR means left-right — nodes flow horizontally. You can also use BT (bottom-top) or RL (right-left).
How do I create a decision diamond in a Mermaid flowchart?
Use curly braces: B{Is it raining?}. This renders as a diamond shape, ideal for decision points with Yes/No branches.
Can I add colors to flowchart nodes?
Yes. Use the style directive: style A fill:#f9f9f9,stroke:#333. Or use classDef to apply the same style to multiple nodes.
How do I create subgraphs in a flowchart?
Wrap nodes in a subgraph block: subgraph "Group Name" ... end. Subgraphs create visual clusters and can be nested.
Can flowcharts render on GitHub?
Yes. GitHub renders Mermaid natively in Markdown files (.md). Paste your flowchart code inside a ```mermaid fenced block in your README.
Related Tools
More Developer Tools- Diff CheckerCompare two files for visual differences.Free • In browser
- SQL to ORM ConverterConvert CREATE TABLE SQL to Prisma, Drizzle, SQLAlchemy, Django, TypeORM, Sequelize, GORM, and Ecto model definitions — free, browser-based, no account needed.Free • In browser
- Hash GeneratorGenerate MD5, SHA-1, SHA-256, and SHA-512 hashes from text or files. Supports HMAC authentication codes.Free • In browser
Also useful: Markdown EditorSVG Converter