| Feature | D2 | |
|---|---|---|
| Nodes | | |
| Undirected Edges | | |
| Directed Edges | | |
| Parallel Edges | | |
| Self-loops | | |
| Nested Graphs in Nodes | | |
| Node Labels | | |
| Edge Labels | | |
| Attributes on Nodes | | |
| Attributes on Edges | |
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.