Create beautiful flowcharts, network diagrams, and graphs using Graphviz DOT language with live preview and easy download
Click Generate to render your diagram
digraph G { A -> B; } → Directed graph (arrows)graph G { A -- B; } → Undirected graph (lines)NodeName [label="Text"]; → Node with label[shape=box] → box, circle, diamond, ellipse[style=filled, fillcolor=lightblue] → Filled colorA -> B; → Directed edge (arrow)A -- B; → Undirected edge (line)A -> B [label="text"]; → Edge with label[style=dashed] → dashed, dotted, boldChild -> Parent [arrowhead=empty]; → Inheritance / ExtendsA -> B [arrowhead=diamond]; → CompositionA -> B [arrowhead=odiamond]; → AggregationA -> B [style=dashed]; → Dependency / IncludeA -> B; → Associationnode [shape=record]; → Use record shapeClass [label="{Name|fields|methods}"]; → 3 sections+ field\\l → + public, - private, # protectedActor [shape=box, label="👤 User"]; → Actor (person)UseCase [shape=oval]; → Use case (oval)subgraph cluster_system { } → System boundaryActor -> UseCase; → Association[style=dashed, label="<>"] → Include/ExtendObject [label=":ClassName"]; → Participant objectA -> B [label="1: message()"]; → Synchronous call[style=dashed]; → Return message (dashed)rankdir=TB; splines=ortho; → Top-to-bottom flowrankdir=LR; → Left to Rightrankdir=TB; → Top to Bottomrankdir=RL; → Right to Leftrankdir=BT; → Bottom to Topcolor=blue, fillcolor=lightblue → Named colors"#FF5733" → Hex colors"rgb(255,87,51)" → RGB colorssubgraph cluster_0 { A; B; } → Group nodes in boxnode [style=filled]; → Default node styleedge [color=gray]; → Default edge styleQuick Tip: Click any Quick Example above to see these syntax in action!