Docs / Compared
Architecture diagram tools compared: code, text and editors
This page is for people choosing a tool to draw architecture diagrams, by hand or with an AI agent. It says when to pick each of nine tools, then sets their facts side by side, with sources.
Updated
When should you pick open-diagram, and where does it fall short?
Pick open-diagram for a dense architecture map that has to read well the first time, above all when an AI agent writes it. It measures every label, then checks the layout and names each problem, such as two boxes 9 px apart. It reads Python, JSON and Mermaid flowcharts, writes SVG (a picture file that stays sharp at any size) and PNG, and comes with an MCP server, a small program that lets an AI app such as Claude Code call it.
It draws one kind of diagram, made of boxes, lines and groups, so it cannot draw sequence diagrams or Gantt charts. It has no canvas to drag shapes on. From Mermaid it reads flowcharts only, and draws every node as the same box. PNG needs Chrome, Chromium or Edge. In the comparison pictures, D2 drew the same flow in 0.017 s to open-diagram's 0.59 s, and the D2 and Mermaid files took 27 lines each, to 183 lines of formatted JSON.
When should you pick Mermaid?
Pick Mermaid when the diagram sits in a Markdown file: GitHub draws Mermaid code blocks in files, issues and pull requests. Mermaid also draws kinds of diagram open-diagram does not, such as sequence diagrams and Gantt charts.
When should you pick D2?
Pick D2 for speed, slides and a choice of layout. It drew the comparison flow fastest, exports PowerPoint and GIF, and offers three layout engines.
When should you pick draw.io?
Pick draw.io to place every shape by hand in a free editor, in the browser or a desktop app. It turns pasted Mermaid into shapes you can restyle.
When should you pick Excalidraw?
Pick Excalidraw to sketch on an open canvas in a hand-drawn style. The editor is free; Excalidraw+ adds an MCP server that reports layout problems with each change the AI makes.
When should you pick archify?
Pick archify when your agent should build an interactive HTML page for readers to explore, or when you need one of its ten diagram kinds, such as sequence or timeline. Like open-diagram, it checks the layout before it delivers.
When should you pick mingrammer's diagrams?
Pick mingrammer's diagrams when cloud provider icons carry the meaning and the code should be short. It draws from Python, with icons for AWS, Azure, Google Cloud, Kubernetes and more, and Graphviz lays it out.
When should you pick PlantUML?
Pick PlantUML for UML, the standard set of software design diagrams: sequence, class, state, timing and deployment diagrams, among others. It has its own MCP server, and you choose its license from five.
When should you pick Eraser?
Pick Eraser when a team wants a hosted workspace where AI drafts diagrams from a prompt or pasted code, and people edit them by hand, by prompt or as diagram-as-code.
How do all nine compare?
| Tool | Input | Layout | Checks layout | Output | MCP server | License | Price |
|---|---|---|---|---|---|---|---|
| open-diagram | Python, JSON, Mermaid flowcharts | You choose the columns; it spaces and routes | Yes, names each problem | SVG, PNG | Yes | MIT | Free |
| Mermaid | Mermaid text | Automatic | Not in its docs | SVG; PNG, PDF from the CLI | Yes | MIT | Free; paid plans from "$10 per user / month", billed annually |
| D2 | D2 text | Automatic, three engines | Not in its docs | SVG, PNG, PDF, PowerPoint, GIF, ASCII | Not in its docs | MPL-2.0 | Free; the TALA engine needs a license for commercial use |
| draw.io | Editor | By hand | In its MCP server's viewer | SVG, PNG, PDF | Yes | Apache-2.0 | Free |
| Excalidraw | Whiteboard | By hand | In the Excalidraw+ MCP server | PNG, SVG, .excalidraw | Excalidraw+; an open-source server | MIT | Free; Plus "$6 a month per user", billed annually |
| archify | JSON written by your agent | Automatic when asked | Yes | HTML page; PNG, WebP, JPG, PDF, video | Not in its docs; it is an agent skill | Apache-2.0 | Free |
| mingrammer's diagrams | Python | Automatic, by Graphviz | Not in its docs | PNG, JPG, SVG, PDF, DOT | Not in its docs | MIT | Free |
| PlantUML | PlantUML text | Automatic, by Graphviz or Smetana | Not in its docs | PNG, SVG, LaTeX, EPS | Yes | GPL, LGPL, Apache, EPL or MIT | Free |
| Eraser | Editor, diagram-as-code, AI prompts | Automatic for diagram-as-code | Not in its docs | PDF, PNG, SVG, Markdown | Yes | None in its docs | Free plan; Business "$45 / member / mo billed annually, or $60 monthly" |
Sources: open-diagram's README, AI agents and Mermaid docs. Mermaid: GitHub's diagram docs, introduction, CLI, repository, MCP server, pricing. D2: exports, repository, TALA. draw.io: home page, repository, Mermaid post, MCP server. Excalidraw: repository, pricing, MCP docs. archify: repository. mingrammer's diagrams: repository, diagram guide. PlantUML: home page, repository. Eraser: Eraser AI, diagram-as-code, MCP server, pricing, docs home. "Not in its docs" means the linked pages do not mention it. Each tool's page links the source of every fact.
Checked November 25, 2026
If a fact here is wrong or out of date, open a pull request on the open-diagram-website repo.