Loading editor...
Our free D2 diagram editor lets you create system architecture diagrams, flowcharts, and sequence diagrams using D2's modern declarative syntax. Features live preview, multiple themes, and SVG/PNG export.
Write your diagram using D2 syntax
See the live preview update automatically
Customize with themes and layout options
Export your diagram as SVG or PNG
D2 is a modern declarative diagramming language that makes it easy to create professional diagrams using simple text syntax. It was created by Terrastruct.
D2 supports flowcharts, sequence diagrams, entity-relationship diagrams, class diagrams, network topologies, and system architecture diagrams.
D2 offers more layout options, better styling control, SQL table support, and is designed specifically for software architecture diagrams.
Yes, D2 supports multiple themes, custom colors, shapes, icons, and extensive styling options for nodes and edges.