D2
The facts below are what the maker publishes about D2, checked and dated. Our editors have not written about it yet.
The facts
Each one read from D2's own pages, with the date it was checked.
What it does
- Diagram features
- D2 supports themes, sketch mode, animations, LaTeX, Markdown, code snippets, tables, containers, imports, variables, and interactive links and tooltips.checked 5 Oct 2026
- Diagram types
- software architecture diagrams; UML class diagrams; sequence diagramschecked 20 Sep 2026
- Editor integrations
- The homepage lists official VSCode and Vim editor support, and the repository lists official VSCode, Vim, and Obsidian plugins.checked 4 Oct 2026
- Export formats
- The CLI exports diagrams to SVG, PNG, PDF, PPTX, GIF, and ASCII.checked 5 Oct 2026
- Exports
- D2 supports exports to SVG, PNG, PDF, PPTX, GIF, and ASCII.checked 4 Oct 2026
- Funding
- Donations support the project's public tools and infrastructure, and the project says donations do not affect its roadmap, governance, or license.checked 5 Oct 2026
- Help and support
- The repository recommends Discord for help, GitHub Issues for feature requests, proposals, or bug reports, and email for private inquiries.checked 4 Oct 2026
- Import/export formats
- D2 (.d2); SVG; PNG; PDF; PPTX; GIF; ASCIIchecked 20 Sep 2026
- Integrations
- Official integrations include extensions for VSCode, Vim, and Obsidian; the extensions page also lists community plugins and tools.checked 5 Oct 2026
- Layout engines
- The Playground offers Dagre, ELK, and TALA layout engines.checked 5 Oct 2026
- Layouts
- D2 offers three layout engines and also handles specialized layouts such as sequence diagrams and grids.checked 4 Oct 2026
- License
- The repository says D2 is open sourced under the Mozilla Public License 2.0.checked 4 Oct 2026
- Offline and telemetry
- The CLI does not use an internet connection after installation except to periodically check GitHub for version updates.checked 5 Oct 2026
- Offline editing
- Yeschecked 20 Sep 2026
- Offline use
- The homepage describes the local CLI as an offline workflow; the FAQ says D2 does not use an internet connection after installation except to check for version updates from GitHub periodically.checked 4 Oct 2026
- Online playground
- The hosted Playground is an online runner for playing, learning, and creating with D2.checked 4 Oct 2026
- Open source
- D2 is free and open source, and remains under the Mozilla Public License 2.0.checked 5 Oct 2026
- Other integrations
- The repository lists community plugins and integrations including Emacs, Telegram, Postgres import, Confluence, and MkDocs.checked 4 Oct 2026
- Privacy
- The repository FAQ says D2 does not use an internet connection after installation except to check periodically for version updates from GitHub.checked 4 Oct 2026
- Programming API
- D2 can be used as a library to produce diagrams from Go programs.checked 4 Oct 2026
- Project sponsorship
- D2 is an independent open-source project fiscally sponsored by Hack Club.checked 4 Oct 2026
- Project status
- D2 is an independent nonprofit project fiscally sponsored by Hack Club, and its maintainer says development time is limited.checked 5 Oct 2026
Money
- Free plan
- Yeschecked 20 Sep 2026
Where it runs
- Platforms
- The CLI supports macOS, Linux, and Windows, and D2 can also run in a browser through WebAssembly.checked 5 Oct 2026
Alternatives to D2
- 1

Creately
Free planWebAPILinuxmacOS8.7Free plan - 2

Structurizr
Free planOpen sourceWebAPILinuxmacOS8.7From £300 a month - 3

SmartDraw
AndroidiOSWebAPI8.6From $8.95 a month - 4

Sparx Enterprise Architect
Free planWebAPILinuxmacOS8.6$245 one-time - 5

draw.io
Free planOpen sourceAndroidiOSWebWindows8.4Free plan - 6

EdrawMax
Free planAndroidiOSWebLinux8.3From $5.90 a month
