Suggested
Examples: · ·
FeatureD2
Nodes supported
Undirected Edges supported
Directed Edges supported
Parallel Edges supported
Self-loops supported
Nested Graphs in Nodes supported
Node Labels supported
Edge Labels supported
Attributes on Nodes supported
Attributes on Edges supported

Frequently Asked Questions

How do I convert a D2 file?

Upload or paste your D2 file above — the input is preset to D2 — then pick a target format and download the result. It is free and runs in your browser.

What can I convert D2 to?

Choose any supported output above, such as GraphML, DOT, GML or Connected JSON. The comparison table shows how D2 lines up with the target you pick.

Is converting D2 free?

Yes. Conversion runs in your browser, with no account and nothing to install.