Graphviz DOT Editor
Write or open Graphviz DOT graphs, preview them live and export SVG.
DOT source
835 / 50,000 characters · 31 lines
Preview
Loading Graphviz…
Graphviz runs in your browser. External links, images and stylesheets are removed from the SVG.
Related Tools
How to use
- 1.Type or paste DOT source, open a .dot or .gv file, or load one of the examples.
- 2.Loading an example over your edits asks for confirmation first.
- 3.Choose a layout engine above the preview, then use Fit, the zoom buttons or 100% to inspect the graph; scroll a zoomed preview with the mouse or the arrow keys.
- 4.When Graphviz reports an error, fix the highlighted line; the previous graph stays visible, dimmed, until the source renders again.
- 5.Copy SVG puts the markup on the clipboard and Download SVG saves an .svg file named after the graph.
Graphviz DOT Editor
Graphviz turns graphs written in the DOT language into diagrams: directed and undirected graphs, subgraphs and clusters, edge chains, ports, quoted IDs and HTML-like labels. This editor runs Graphviz 16.1.0 as WebAssembly in a background worker that loads the first time a graph renders, then lays out the source about 400 ms after you stop typing. Only the newest request is shown, so a slow layout never replaces a newer one. Sources are limited to 50,000 characters, and the SVG output to 5 MiB and 100,000 elements.
Layout engines
dot draws hierarchical layouts for directed graphs such as pipelines and dependency trees. neato and fdp place nodes with a spring model and suit undirected networks. circo draws circular layouts and twopi draws radial layouts around a centre node. Changing the engine never edits your source. If the graph sets its own layout attribute, Graphviz uses that engine instead, and the editor shows a notice naming it.
Security
The preview is an image of the SVG, so nothing in it can run scripts, follow links or load files. Before preview, copy and download, the SVG is cleaned: links from URL and href attributes, external images, stylesheet references, scripts and event handlers are removed, and the editor lists what was removed. Local references such as arrow markers and gradients are kept, so the exported file opens offline.
Privacy
Rendering happens in your browser. Your source, the files you open and the generated SVG are never uploaded, stored or logged; reloading the page clears them. Only the layout engine you pick is remembered in this browser.
Frequently asked questions
- Is my DOT source uploaded?
- No. Graphviz runs as WebAssembly in a background worker in your browser. The source, opened files and the SVG are never uploaded, stored or logged; only the layout engine you pick is remembered in this browser.
- Which Graphviz version and layout engines are available?
- Graphviz 16.1.0 compiled to WebAssembly, with the dot, neato, fdp, circo and twopi engines. If the graph sets its own layout attribute, Graphviz uses that engine instead of the selector, and the editor says so.
- Why are links, images and stylesheets missing from the SVG?
- URL, href, image and stylesheet attributes would make the SVG load or open other sites. They are removed from the preview, the copied markup and the downloaded file, and the editor lists what was removed.
- Are HTML-like labels supported?
- Yes. HTML-like labels with tables, ports, bold or italic text are laid out by Graphviz and kept as SVG shapes and text. Images inside them are not loaded.
