100% in your browser · your files never leave your device

Diagram Syntax Reference & Cheatsheet

A one-page cheatsheet for Mermaid-style flowchart, sequence, class, ER, Gantt, and mind-map syntax — every snippet tested, every example renders.

Loading tool…

More tools

All free, all private — everything runs in your browser.

How to use Syntax Reference

  1. 1Browse the cheatsheet by diagram kind — flowchart, sequence, class, ER, Gantt, mind map.
  2. 2Copy any snippet with the copy button.
  3. 3Click 'open in editor' to load a snippet straight into the Mermaid Editor and tweak it.
  4. 4Every snippet on this page is tested against the engine, so nothing here can fail to render.

Syntax Reference FAQ

Are these the official Mermaid docs?
No — this is the reference for the syntax this site's engine actually renders (a documented Mermaid-style subset). Every snippet on the page is tested against the engine, so nothing here can fail to render.
Can I try a snippet immediately?
Yes — every snippet has a one-click 'open in editor' link that loads it into the Mermaid Editor.