PlantUml Diagrams for Confluence

About the add-on


PlantUML is a plugin for Confluence Cloud that allows PlantUML and Graphviz DOT diagrams to be created, edited and stored on your Confluence Cloud instance. The plugin only stores both the text description and resulting image output with your Confluence Cloud instance, nowhere else. Data only passes through our servers during image generation and is deleted straight after that process.

The PlantUML website has thorough documentation for how to build the various UML diagram types it supports.

The plugin also supports Graphviz DOT flowcharts:

1 2 3 4 5 6 7 8 9 10 @startdot digraph foo { node [style=rounded] node1 [shape=box] node2 [fillcolor=yellow, style="rounded,filled", shape=diamond] node3 [shape=record, label="{ a | b | c }"] node1 -> node2 -> node3 } @enddot

The second line of a Graphviz definition must be of the form:

1 digraph name {

Note that you can use @startuml / @enduml or @startdot / @enddot, both will work. Only the DOT language is supported.


To insert a PlantUML or Graphviz diagram, whilst a page is being edited, insert a {plantuml} macro. See the Atlassian documentation for inserting and editing macros. Once inserted you will see a macro box that says "PlantUML for Confluence". Click the macro and press "edit". This will bring you to the macro editor:

Input the filename, width(or leave blank) and in the markup field input the PlantUML diagram string.

Click on Save button to insert the diagram into the page. Diagram will appear in the page viewer, page editor and page PDF export.