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

  1. 1
    Start with the flowchart keyword

    Begin your diagram with "flowchart TD" (top-down) or "flowchart LR" (left-right) to set the direction.

  2. 2
    Add nodes and connections

    Define nodes with brackets (A[Text]), diamonds (B{Decision?}), or circles (C((Circle))). Connect them with arrows: A --> B.

  3. 3
    Label your edges

    Add labels to arrows using pipes: A -- Yes --> B or A -->|No| C.

  4. 4
    Export 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.

Also useful: Markdown EditorSVG Converter