PlantUML turns textual descriptions into UML and many other diagram types, with PNG, SVG, LaTeX, and EPS output options.
Overview
PlantUML generates diagrams from simple textual descriptions. It covers classic UML diagram types such as sequence, use case, class, component, deployment, state, and timing diagrams, along with a long list of non-UML diagram styles including Gantt charts, mind maps, ER diagrams, wireframes, and network diagrams.
Diagrams can include hyperlinks, tooltips, Creole rich text, icons, and sprites. Multiple layout engines are supported, including Graphviz by default, internal Smetana, Viz.js in JavaScript, and ELK for certain layouts. Sequence diagrams can use the Puma or Teoz engines, with Teoz adding features like anchors, duration, and nested boxes.
The project can be used as a standalone tool or embedded in other software. A TeaVM build compiles PlantUML to JavaScript so rendering can run entirely in the browser without a server, and an official browser extension can render diagrams inside GitHub. Output formats include PNG, SVG, LaTeX, EPS, and ASCII art for some sequence diagrams.
Getting started documentation describes local setup, building a JAR with Gradle or Ant, and integration with editors and documentation formats such as Markdown, AsciiDoc, and Dokuwiki. An MCP server package is mentioned for AI assistants that need to render or validate PlantUML syntax.
Key features
- UML diagram generation from text
- Gantt, mind map, and ER diagrams
- Hyperlinks, tooltips, and Creole text
- Graphviz, Smetana, Viz.js, ELK layouts
- PNG, SVG, LaTeX, and EPS export
- Browser-side JavaScript rendering
- GitHub browser extension
- Teoz sequence diagram engine
Use cases
- Architecture diagrams in docs
- Sequence charts in code reviews
- Wireframes with Salt syntax
- In-browser diagram editing
- Embedding diagrams in wikis