Instead of D2, try one of these 11.
Every alternative is lined up against D2 on what people actually switch for: price, open source, self-hosting, offline use and platforms. D2 sits in the first row, so you can see what you give up.
The product
What is D2?
Create beautiful diagrams in minutes. Simple syntax. Endlessly customizable. D2 is the fastest and easiest way to get a mental model from yo…
We have not checked D2’s price, licence or platforms yet. Know them? Tell us.
Screenshots
Live preview

Captured automatically from the app’s home page; the live site may differ.
Price colours on the Visit buttons: FreeFreemiumPaid
How to read this. The first row is D2 itself, for comparison. “Yes” means fully supported by the maker. “Partial” means it works with caveats. Likes reflect community popularity; vendors can’t pay for them or for placement. How we compare.
D2 alternatives at a glance
D2 is listed under Whiteboards. We compared 11 alternatives. Of the 8 whose details we have checked, 4 are open source, 5 are completely free, 0 can be self-hosted and 1 works fully offline. The most popular is Excalidraw, with 720 likes.
Classic open-source editor for UML, flowcharts and network maps.
Free · Open source · Works offline