Fundamentals 4 min read

How to Install and Use the PlantUML Plugin in IntelliJ IDEA for Quick UML Diagram Creation

This guide explains what PlantUML is, its advantages, how to install the PlantUML plugin and Graphviz on Windows, configure IntelliJ IDEA, write PlantUML code to generate diagrams, and alternative browser‑based options, providing a complete workflow for developers.

Architecture Digest
Architecture Digest
Architecture Digest
How to Install and Use the PlantUML Plugin in IntelliJ IDEA for Quick UML Diagram Creation

PlantUML is an open‑source project that enables fast creation of UML diagrams using a simple text language, rendering the diagrams via the powerful Graphviz library and allowing export to PNG or SVG formats.

Key advantages include full text‑based editing without drag‑and‑drop controls, automatic layout adjustment, platform independence (only the PlantUML JAR is required), and integration with many editors and IDEs such as IntelliJ IDEA, Eclipse, and Notepad++.

Installation steps:

In IntelliJ IDEA, open File → Settings → Plugins , search for PlantUML integration and install the plugin.

Download and install Graphviz for Windows (e.g., graphviz-2.38.msi ).

Add environment variables: %GRAPHVIZ_HOME%\bin to PATH and set GRAPHVIZ_DOT to %GRAPHVIZ_HOME%\bin\dot.exe .

Verify the installation by running dot -version in a command prompt; the version information should be displayed.

Configure the plugin in IDEA via File → Settings → Other Settings → PlantUML and ensure the Graphviz path is correctly set.

To create a diagram, add a new .uml file, write PlantUML code such as:

@startuml
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response

Alice -> Bob: Another authentication Request
Alice <-- Bob: another authentication Response
@enduml

The IDE will render the diagram in real time, showing the flowchart as you type.

You can also generate UML class diagrams directly from source code or use the Chrome extension PlantUML Viewer to edit and preview diagrams without installing Graphviz.

Images illustrating the plugin installation, Graphviz configuration, and diagram previews are included throughout the guide.

PlantUMLUMLIntelliJ IDEAGraphviztooldiagram
Architecture Digest
Written by

Architecture Digest

Focusing on Java backend development, covering application architecture from top-tier internet companies (high availability, high performance, high stability), big data, machine learning, Java architecture, and other popular fields.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.