When to use it
Company profile slides, business plans, employee handbooks and quality-system documentation. Three levels: general manager, five departments and two teams per department. Reporting lines use plain connectors (---) without arrowheads, the usual convention for org charts.
Making it yours
- Rename a box by double-clicking it in the preview, or edit the text inside the square brackets.
- Add a department with
CEO --- F[New department]and a team withF --- F1[Team name]. - To insert a deputy level, point the department connectors at the deputy node instead of
CEO. - If the chart gets too wide, change the first line to
LRso the tree grows sideways.
Mermaid code
flowchart TB
CEO[General manager]
CEO --- A[R&D]
CEO --- B[Marketing]
CEO --- C[Sales]
CEO --- D[Finance]
CEO --- E[Human resources]
A --- A1[Frontend team]
A --- A2[Backend team]
B --- B1[Brand]
B --- B2[Content]
C --- C1[East region]
C --- C2[West region]
D --- D1[Accounting]
D --- D2[Treasury]
E --- E1[Recruiting]
E --- E2[Compensation]Ask an AI for one with this structure
Send the prompt below to ChatGPT or Claude, then paste the whole reply into the editor; the code inside is detected automatically.
Draw a company organisation chart in Mermaid flowchart TB syntax: a general manager with R&D, Marketing, Sales, Finance and Human resources departments, each with two teams underneath. Use plain connectors --- without arrowheads between levels. Output only the mermaid code block.
FAQ
- Can the chart run horizontally?
Yes, change
flowchart TBtoflowchart LRand the tree grows from left to right, which suits deep hierarchies with few nodes per level.- How do I show names and titles?
Use
<br/>inside the label, for exampleCEO[General manager<br/>Jane Doe], with the title on the first line and the name on the second.- Can I export something I can rearrange in PowerPoint?
The PowerPoint export contains a high-resolution image, not movable shapes. Change the code and export again, or export SVG and edit it in a vector tool.
More in this category
Updated 2026-09-05