# Open source architecture diagram tools: what each is best for

> draw.io, Excalidraw, Mermaid, PlantUML with C4-PlantUML, Structurizr and Diagrams by mingrammer: their licences, what each is good at, and how to choose.

## Key takeaways

- To draw by hand: draw.io (Apache 2.0) or Excalidraw (MIT).
- To keep diagrams as text in Git: Mermaid, PlantUML with C4-PlantUML, Structurizr, or Diagrams for Python.
- Check what the licence covers: draw.io's icon sets, for example, have their own terms.
- For cloud architecture diagrams with real icons, AI and sharing, archhy is our first pick, though it is not open source.

An open source architecture diagram tool gives you code you can read, run on your own machine and keep using if the company behind it changes course. This guide covers seven we checked on 28 November 2026: draw.io, Excalidraw, Mermaid, PlantUML with C4-PlantUML, Structurizr and Diagrams by mingrammer. They split into two groups: editors you draw in, and diagrams as code you write. We make archhy. It is not open source, but for cloud architecture diagrams it is our first pick, so it leads the ranking below, marked plainly; if open source is a must, start at number 2.

## The ranking at a glance

1. **archhy** (not open source, free to start): cloud diagrams with AWS, Azure, Google Cloud and Kubernetes icons, by hand or from a sentence.
2. **draw.io** (Apache 2.0): one free editor for every kind of diagram.
3. **Mermaid** (MIT): diagrams as text in a README.
4. **Diagrams by mingrammer** (MIT): cloud icons as Python code.
5. **Structurizr** (Apache 2.0): one model, every C4 diagram.
6. **PlantUML with C4-PlantUML** (several licences; MIT): C4 as text.
7. **Excalidraw** (MIT): hand-drawn sketches together.

## 1. archhy: our pick, but not open source

archhy's code is not published and you cannot host it yourself; if that is a requirement, go straight to number 2. We rank it first because it does one job the open source tools leave to you: a cloud architecture diagram with AWS, Azure, Google Cloud and Kubernetes icons, drawn by hand or from a sentence with AI, laid out for you, then shared as a picture or a link. It runs in the browser with no account to start, and works on a phone.

It also meets the text tools halfway. On paid plans archhy exports a diagram as a Mermaid flowchart for a README, and turns a Mermaid flowchart into an archhy diagram. See [a free online architecture diagramming tool](https://archhy.com/blog/free-online-architecture-diagram-tool) for what is free and what is paid.

**Choose it when** the diagram is a cloud architecture and you want it finished and shared quickly, and open source is not a requirement.

## What "open source" means for a diagram tool

Three things are worth checking, because they differ from tool to tool:

- **The licence.** Permissive licences such as MIT and Apache 2.0 let you use, change and host the code with few conditions. GPL asks you to share changes you distribute.
- **What it covers.** The code may be open while icons, a hosted service or extra features are not.
- **How it is developed.** Some projects take contributions; some publish code written by a core team only.

## 2. draw.io: the open source diagram editor

draw.io's source code is under the Apache 2.0 licence, and the online app is free with no account. It covers almost every diagram type, with AWS, Azure and Google Cloud shape libraries, a desktop app, and self-hosting through a Docker image. Two details matter. Its icon sets and stencils have separate terms, so read them before you reuse the shapes elsewhere. And the project does not accept pull requests: it is developed by its core team.

**Choose it when** you want one free editor for everything and control over where files are kept.

## 3. Mermaid: diagrams as text in Markdown

Mermaid is MIT licensed and turns short text into flowcharts, sequence, class, state and entity-relationship diagrams, C4 diagrams and more. GitHub draws Mermaid code blocks in Markdown, so the diagram sits in a README and is reviewed in the same pull request as the code. Layout is automatic, which saves time and costs control.

**Choose it when** the diagram should change with the code and be read where the code is.

## 4. Diagrams by mingrammer: cloud diagrams in Python

Diagrams is an MIT-licensed Python library for drawing cloud architecture as code. It has node sets for AWS, Azure, Google Cloud, Kubernetes, Alibaba Cloud, Oracle Cloud and more, and it needs Python 3.9 or later and Graphviz. It draws diagrams only: it does not create cloud resources or produce Terraform.

**Choose it when** you want real cloud icons in diagrams that live in your repository.

## 5. Structurizr: one model, many C4 diagrams

Structurizr, from the author of the C4 model, works the other way round from a drawing tool: you describe the model once in the Structurizr DSL and it produces each diagram from that model, so a renamed system changes everywhere. The main repository is Apache 2.0. Its documentation says every command is free except the server, which needs a licence when you use the prebuilt binaries. Older repositories, including Structurizr Lite, are now archived.

**Choose it when** you maintain a set of C4 diagrams that must stay consistent as the system grows.

## 6. PlantUML and C4-PlantUML

PlantUML is a long-standing text-to-diagram tool, offered under several licences, among them GPL, LGPL, Apache 2.0, EPL, MIT and BSD. It needs Java, and Graphviz for some diagram types. C4-PlantUML, MIT licensed, adds macros for the C4 model's context, container, component and deployment diagrams, so you write `Person`, `System` and `Container` rather than drawing boxes. PlantUML bundles a released version in its standard library, so `!include <C4/C4_Container>` works with no download.

**Choose it when** you already use PlantUML, or want C4 diagrams in plain text files.

## 7. Excalidraw: open source whiteboard sketches

Excalidraw is MIT licensed. It draws in a hand-drawn style, keeps your work in the browser, works offline as an installed web app, and offers end-to-end encrypted live collaboration. It exports PNG, SVG and its own open JSON format, and you can reuse shape libraries others have shared. Excalidraw+ is a paid hosted workspace built on the same editor.

**Choose it when** the diagram is a sketch for a conversation rather than a reference document.

## Which open source tool should you choose?

- **Draw by hand, any diagram type:** draw.io.
- **Sketch together:** Excalidraw.
- **Text in a README:** Mermaid.
- **C4 as text:** C4-PlantUML; as one consistent model: Structurizr.
- **Cloud icons as code:** Diagrams.

The wider comparison, including paid tools, is in [best architecture diagramming tools](https://archhy.com/blog/best-architecture-diagramming-tools).

## Summary

For a cloud architecture diagram you want finished and shared today, start with archhy: real cloud icons, AI from a sentence, automatic layout, and a picture or link at the end, free to start but not open source. If the tool must be open source, draw.io is the best all-round editor, Mermaid the best for diagrams that live in a README, and Diagrams by mingrammer the best for cloud icons as code. For C4, Structurizr keeps many diagrams consistent and C4-PlantUML keeps them as plain text; for a quick sketch with others, Excalidraw.

## Frequently asked questions

### Is draw.io open source?

Yes. Its source code is under the Apache 2.0 licence. Its icon sets and stencil libraries have their own terms, and the project does not accept pull requests from outside its core team.

### What is the best open source tool for cloud architecture diagrams?

To draw by hand, draw.io, which has AWS, Azure and Google Cloud shape libraries. To write diagrams as code, Diagrams by mingrammer, a Python library with AWS, Azure, Google Cloud and Kubernetes icons.

### Which open source tools support the C4 model?

C4-PlantUML adds C4 macros to PlantUML, Structurizr builds every C4 diagram from one model, and Mermaid has C4 diagrams too. Diagrams by mingrammer also lists C4 among its node sets.

### Is archhy open source?

No. archhy is a hosted editor whose code is not published. You can draw without an account and download your work, but you cannot run archhy yourself.
