Tools for flowcharts, sequence and UML diagrams, entity-relationship diagrams and other structured drawings, many of them generated from plain text so diagrams can be versioned with code.

By GitHub stars, the most popular diagramming tools here are Mermaid (91.1K stars), JSON Crack (44.6K stars), and Diagrams (42.8K stars). 22 of 33 had commits in the last 90 days.

Diagrams & diagrams as code, ranked by GitHub stars
1 Mermaid

Generate diagrams and flowcharts from markdown-like text definitions, with a live editor.

Diagrams as code 91.1K 2,832 MIT
2 JSON Crack

Visualizes JSON, YAML, XML and CSV data as interactive graphs.

Apps & tools 44.6K 108 Apache-2.0
3 Diagrams

Diagram as code in Python for prototyping cloud system architectures.

Diagrams as code 42.8K 46 MIT
4 xyflow

React Flow and Svelte Flow: libraries for building node-based editors, flow charts and interactive diagrams.

JS graphs & networks 39.1K 949 MIT
5 D2

Declarative diagram scripting language that turns text into diagrams.

Diagrams as code 25.9K 328 MPL-2.0
6 PlotNeuralNet Inactive

LaTeX code for drawing neural network architecture diagrams.

Machine learning 25.1K 0 MIT
7 PlantUML

Generates UML, Gantt, mind map and other diagrams from plain text.

Diagrams as code 13.4K 935 LGPL-3.0
8 Markmap

Builds interactive mind maps from Markdown.

Diagrams as code 13.3K 4 MIT
9 flowchart.js

Draws SVG flowcharts from a textual description.

Diagrams as code 8.7K 5 MIT
10 Penrose

Creates diagrams from mathematical notation in plain text, from Carnegie Mellon University.

Diagrams as code 8K 48 MIT
11 C4-PlantUML

PlantUML macros and styles for drawing software architecture diagrams with the C4 model.

Diagrams as code 7.5K 18 MIT
12 Vue Flow Archived

Flowchart and node-based graph component for Vue 3.

JS graphs & networks 6.9K 17 MIT
13 X6

Diagramming library for DAGs, ER diagrams, flowcharts and other graph editors, maintained by Alibaba.

JS graphs & networks 6.8K 107 MIT
14 LikeC4

Architecture-as-code language and tools that generate live, interactive diagrams.

Diagrams as code 6.1K 2,023 MIT
15 NN-SVG

Web tool for drawing publication-ready neural network architecture diagrams and exporting them to SVG.

Machine learning 5.7K 2 MIT
16 JointJS

SVG-based JavaScript diagramming library for interactive diagrams and graph editors.

JS graphs & networks 5.4K 163 MPL-2.0
17 go-diagrams Inactive

Diagram-as-code library for system architecture diagrams in Go, rendered with Graphviz.

Go 5.2K 0 MIT
18 Pele

Small, dependency-free renderer that turns Mermaid diagrams into SVG, from Obsidian.

Diagrams as code 4.6K 424 MIT
19 Kroki

Unified API that renders diagrams from many text formats, including PlantUML, Mermaid, Graphviz and D2.

Diagrams as code 4.4K 292 MIT
20 Svgbob

Converts ASCII art diagrams into SVG.

Diagrams as code 4.2K 2 Apache-2.0
21 WaveDrom

Draws timing diagrams and waveforms from simple textual descriptions.

Diagrams as code 3.5K 14 MIT
22 Flowchart Fun

Web app that generates flowcharts and diagrams from indented text.

Diagrams as code 3.4K 79 MIT
23 nomnoml

Draws UML diagrams from a simple text syntax.

Diagrams as code 2.8K 1 MIT
24 Cola.js

A tool to create diagrams using constraint-based optimization techniques. Works with d3 and svg.js.

JS graphs & networks 2.1K 3 MIT
25 diagram.js

Javascript diagram library serving as the basis for camunda's online BPMN modeler.

JS graphs & networks 1.9K 274 MIT
26 CeTZ

Drawing library for Typst with a TikZ-inspired API, for diagrams and plots.

Diagrams as code 1.9K 181 LGPL-3.0
27 DiagrammeR

Graph and network diagrams in R, rendered with Graphviz and mermaid.

R 1.7K 22 MIT
28 Graphviz

Open source graph visualization command line tool and library. From input text to SVG,PDF,interactive web graph browser.

Apps & tools 1.5K – EPL-2.0
29 SankeyMATIC

Web tool for building Sankey diagrams from a plain-text description of flows.

Apps & tools 1.4K 2 ISC
30 PGF/TikZ

TeX packages for programmatically drawing vector graphics and diagrams in LaTeX.

Diagrams as code 1.4K 128 GPL-2.0 OR LPPL-1.3c
31 circlize Inactive

Circular visualization in R, such as chord diagrams and Circos-style genomic plots.

R 1K 0 MIT
32 Vizdom Inactive

A declarative graph layout and rendering engine for Javascript/Typescript powered by Rust/WebAssembly.

JS graphs & networks 193 0 Apache-2.0
33 sankeydiagram.net

Web app for creating and sharing Sankey diagrams of flows and budgets without code.

Apps & tools 124 2 MIT + Commons Clause

Head-to-head comparisons

Categories in this topic

Frequently asked questions

What is the most popular diagramming tool?

By GitHub stars, Mermaid is the most popular, with 91.1K stars, followed by JSON Crack (44.6K) and Diagrams (42.8K).

Which diagramming tools are actively maintained?

28 of the 33 tools listed had commits in the last 12 months, including Mermaid, JSON Crack, Diagrams, xyflow, and D2. Each tool page shows monthly commit activity.

Are these diagramming tools free and open source?

32 of the 33 tools listed use an OSI-approved open-source license; the others are source-available, free to use, or use a custom license, so check each tool page. The most common license here is MIT.

Missing a tool? Add it with a one-line pull request to the README.