Unsaved
Ready
Loading Monaco Editor...
Preview
Styling
Mind Map
All diagram types

Mermaid Mind Map Syntax & Brainstorm Examples

A mind map is an outline drawn as a tree. Indentation is the structure: deeper lines are children.

Examples

Copy an example, or open it in the live editor with this diagram already loaded.

Launch outline

The root is the topic. Each indented line is a branch, and a deeper indent is a sub-branch.

mindmap
  root((Launch))
    Audience
      New users
      Admins
    Channels
      Docs
      Email
      In-app
    Risks
      Empty states
      Export quality

Research notes with shapes

Shapes are optional. Square nodes mark sources, and the default shape marks notes under them.

mindmap
  root((Research))
    Interviews
      Five customers
      Two churned accounts
    Analytics
      Activation
      Export rate
    Writing
      Problem statement
      Open questions

Study sheet

A short study map. Keep each node to a few words so the layout stays readable.

mindmap
  root((HTTP))
    Methods
      GET
      POST
      DELETE
    Status
      2xx success
      4xx client
      5xx server
    Headers
      Auth
      Content type

What is a Mind Map?

A Mermaid mind map starts with mindmap and a root node, then branches by indentation. Two extra spaces make a child. There are no arrows to draw and no ids to invent. Shapes are optional: ((text)) is a rounded node, [text] is a square, and plain text is the default. Use a mind map to break a topic into parts. It is the wrong diagram for a process with decisions or for a flow that loops.

When to use it

Use a mind map for a brainstorm, a study sheet, or the contents of a document. Use a flowchart when a step leads to a decision. Use a class or ER diagram when the nodes are a data model rather than topics.

Edit this mind map in the live editor, read the Mermaid cheat sheet, or compare it with Flowchart, Pie Chart and Gantt Chart.

Common Use Cases

  • •Brainstorming - Generate and organize ideas
  • •Note-taking - Capture information hierarchically
  • •Project planning - Break down projects into components
  • •Study aids - Create visual summaries of topics
  • •Decision making - Map out options and considerations

Syntax Quick Reference

ElementSyntaxDescription
Rootroot((Central Idea))Central concept
BranchIndented textChild node
Sub-branchFurther indentationNested child
Circle shape((Text))Rounded node
Square shape[Text]Square node

Syntax tips

  • •Indent with spaces, not tabs. Each level in these examples is two spaces deeper than its parent.
  • •root((Topic)) draws the central node. You only need one root.
  • •A line of plain text is a node. You do not declare ids, and you do not draw arrows.
  • •((text)) makes a pill, [text] makes a square, and (text) makes a rounded node. Use shapes sparingly.
  • •Keep labels short. A mind map full of sentences becomes wider than the page.

Common mistakes

Mixing tabs and spaces, so a child renders as a sibling.

Indent only with spaces, and use the same width at each level. Two spaces per level is enough.

Trying to link two branches with an arrow.

Mind maps are trees. A cross-link is a flowchart. Move that diagram to flowchart syntax.

Putting a colon or Mermaid keyword in a node and getting a parse error.

If a label needs punctuation, wrap it in a shape: [CI / CD]. Plain lines are happier as short words.

Export Options

Mind maps grow wide. SVG is the better default so labels stay readable when someone zooms. Free PNG exports include a watermark.

Got Mermaid code from ChatGPT? Paste it here to render and export instantly.

Get the Free Mermaid Syntax Cheat Sheet

Free Mermaid Syntax Cheat Sheet

All 21 diagram types in one PDF reference.

Frequently Asked Questions

Ready to create your own mind map?

Open the editor with this example pre-loaded and start customizing.

Mind Map templates

Related Diagram Types

All diagram types