Home / Examples / Mindmap

Mermaid Mindmap Examples

Mindmaps organize ideas around one central topic. They work well for brainstorming notes, study outlines, and planning documents.

A mindmap starts with mindmap. Indentation defines the hierarchy: each line indented deeper than the line above becomes its child.

System design topics

The root uses ((text)) for a circle. Everything else is plain text, and indentation alone builds the tree.

mindmap
  root((System design))
    Storage
      SQL database
      Object storage
      Cache
    Traffic
      Load balancer
      CDN
      Rate limiting
    Reliability
      Retries
      Circuit breaker
      Monitoring

Project kickoff map

)text( draws a cloud shape for the root. Use mindmaps like this to collect goals, risks, and owners before writing a formal plan.

mindmap
  root)Q1 launch(
    Goals
      Self-serve billing
      Lower churn
    Risks
      Payment provider migration
      Holiday code freeze
    Owners
      Backend team
      Design team

Mindmap syntax cheat sheet

SyntaxMeaning
mindmapStart a mindmap
IndentationDefines parent and child nodes
id[Text]Square node
id(Text)Rounded node
id((Text))Circle
id)Text(Cloud
id))Text((Bang
id{{Text}}Hexagon

Common mindmap mistakes

  • A mindmap has exactly one root. A second line at the root's indentation level causes an error.
  • Mixing tabs and spaces makes the hierarchy unpredictable. Use spaces only.

Mindmap FAQ

Can I add icons to mindmap nodes?
Yes, with ::icon(fa fa-book) on the line after a node, but the icon font must be loaded on the page that renders the diagram.
Why is a node attached to the wrong parent?
Mermaid attaches each line to the closest line above it that is indented less. Check that siblings use exactly the same number of spaces.

Keep going

More Mermaid examples

Last updated 2026-11-28.