All diagram types Open editor

merIDK / Diagram types / Mind map

Mermaid mind map: example and syntax

Mind maps branch ideas out from one central topic. In Mermaid, indentation sets the hierarchy, so you can type an outline and get a mind map from it.

Open this example in the editor

Example code

mindmap
  root((Mermaid))
    Diagrams
      Flowchart
      Sequence
      Gantt
    Features
      Themes
      Layouts
        dagre
        ELK
    Output
      SVG
      PNG

Result

mindmap
  root((Mermaid))
    Diagrams
      Flowchart
      Sequence
      Gantt
    Features
      Themes
      Layouts
        dagre
        ELK
    Output
      SVG
      PNG

Syntax quick reference

How to use it

  1. Open the example in the editor, or paste your own Mermaid code.
  2. Edit the code on the left. The preview updates as you type, and errors point to the line.
  3. Export SVG or PNG, copy a Markdown block for GitHub or Notion, or copy a share link.

More diagram types