Graphviz Online Viewer (DOT Editor)
Developer ToolsWrite DOT and see the graph rendered live with real Graphviz, then export it as SVG or PNG.
dot draws hierarchies, neato and fdp spring layouts for networks, circo circles and twopi radial layouts.
Processed in your browser. A copy of each run is saved to your past runs so you can reopen it. Privacy
About
What the Graphviz Online Viewer does
The Graphviz Online Viewer renders DOT graph descriptions with Graphviz itself, compiled to WebAssembly and run in your browser. Choose the layout engine: dot for hierarchies and dependency graphs, neato and fdp for networks, circo for circular layouts and twopi for radial ones. Start from an example, export SVG or a 2× PNG, and share the graph as a link. Errors show what Graphviz reported.
Steps
How to use it
- 1Pick an example or paste DOT.
- 2Choose the layout engine; the graph re-renders as you type.
- 3Export SVG or PNG, or share a link.
Example
A real run
Input
digraph deps {
rankdir=LR;
node [shape=box, style="rounded,filled", fillcolor="#f5f3ff"];
web -> api;
web -> auth;
api -> db;
api -> cache;
worker -> db;
worker -> queue;
api -> queue;
}Output
Rendered with the dot engine: 7 nodes, 7 edges, laid out left to right · 6,044-byte SVG, exportable as PNG
rankdir=LR lays the services out from left to right; dot places each node in a rank after everything that points to it, so web comes first and db, cache and queue last.
Options
Every setting, and when to use it
- Layout engine
- dot arranges directed graphs in ranks, best for pipelines, dependencies and org charts. neato and fdp place nodes like springs, good for undirected networks. circo draws cycles in a circle; twopi puts one node at the center and the rest in rings.
- Examples
- A service dependency graph, an org chart, an order state machine and an undirected network, each showing common attributes such as rankdir, shape and label.
- Export and share
- SVG for documents and further editing, PNG at twice the size for slides. Share link stores the DOT in the link itself, after the # sign.
Good to know
Common problems and limits
Source up to 200 KB. Rendering runs in a background worker that is stopped after 5 seconds, so a runaway layout cannot freeze the page.
The output is shown only as an image, so text or links inside the graph cannot run scripts. Images referenced from DOT files are not loaded.
For flowcharts and sequence diagrams that render on GitHub, use the Mermaid Diagram Editor; to inspect an exported SVG, use the SVG Viewer.
Audience
Who uses it
- DevelopersVisualize module dependencies, call graphs, build pipelines and state machines generated by scripts or tools.
- Data engineersRender DAGs and lineage graphs exported as DOT by orchestration and modeling tools.
- Students and researchersDraw graphs, trees and automata for assignments and papers without installing Graphviz.
FAQ
Frequently asked
What is DOT syntax?
A plain-text graph language: digraph name { a -> b; } for directed graphs or graph name { a -- b; } for undirected ones. Attributes in brackets style nodes and edges, such as node [shape=box] or a -> b [label="calls"].
Which layout engine should I use?
Use dot for anything with a direction or hierarchy. Use neato or fdp for undirected networks where you want clusters to emerge, circo for rings and cycles, and twopi for a hub-and-spoke view around one central node.
Graphviz or Mermaid?
Graphviz offers more layout engines and finer control, and handles large generated graphs well; many tools export DOT. Mermaid is simpler to write by hand and renders directly in GitHub Markdown. Use whichever your source produces or your readers use.
How do I install Graphviz locally?
On macOS: brew install graphviz. On Ubuntu or Debian: sudo apt install graphviz. On Windows: winget install graphviz or the installer from graphviz.org. Then dot -Tsvg graph.dot -o graph.svg renders a file.
Why does my graph look different from the desktop version?
This page runs real Graphviz, so layouts match for the same engine and version, but fonts differ: the browser substitutes available fonts, which changes node sizes slightly. Set fontname explicitly for consistent results.
Is my graph sent anywhere?
No. Graphviz runs in your browser in WebAssembly. A copy of the DOT is saved to your past runs when you export it.
Automation: an MCP tool render_dot(dot, engine, format) → file and an n8n node are planned (the diff output is text).