D2
Playground
Discord
Icons
Docs
Github
Download CLI
An online runner to play, learn, and create with D2, the modern diagram scripting language that turns text to diagrams.
Live editor
Layout engine
Dagre
Dagre
ELK
Cmd+S
Compile
✦
Create with AI
Not configured
Configure AI on the dashboard first.
AI setup
Create diagram
Theme
Neutral default
Renderer
SVG
Export
PNG
SVG
PNG (copy)
SVG (copy)
Fit screen
Syntax snippets