# D2

> D2 is a Dev Tools tool with open source pricing. Contemporary diagrams-as-code with beautiful layouts. Best for Modern text-to-diagram infra docs.

Canonical: https://www.isthereanytool.app/tool/d2

- URL: https://www.isthereanytool.app/tool/d2
- Vendor: https://d2lang.com/
- Pricing: Open Source
- Platforms: CLI VS Code CI
- Category: [Dev Tools](https://www.isthereanytool.app/category/dev-tools)

Modern diagram scripting language with strong auto-layout.

## Related tools

- [Mermaid Live Editor](https://www.isthereanytool.app/tool/mermaid-live-editor) — Default docs-as-code diagram path.
- [draw.io](https://www.isthereanytool.app/tool/draw-io) — Deepest free shape library for formal diagrams.
- [PlantUML](https://www.isthereanytool.app/tool/plantuml) — Veteran diagrams-as-code for UML-heavy teams.
- [Graphviz](https://www.isthereanytool.app/tool/graphviz) — Foundational layout engine many tools wrap.
- [AsciiFlow](https://www.isthereanytool.app/tool/asciiflow) — Retro ASCII architecture sketches.
- [Eraser](https://www.isthereanytool.app/tool/eraser) — AI + tech-doc diagrams for architecture flows.

## Alternatives page

[See alternatives to D2](https://www.isthereanytool.app/alternatives/d2)
