Graph Manufacture

Converter

PlantUML to draw.io

Switch the format from PlantUML to draw.io and get a .drawio file you can keep editing in diagrams.net. Boxes are placed automatically, and nothing leaves your browser.

Convert PlantUML in the editor Free. No sign-up. Nothing is uploaded.

01

See it work

The PlantUML class diagram below becomes a draw.io file. This is an excerpt of the generated cells:

@startuml
class Animal {
  +name : String
  +makeSound()
}
class Dog
Animal <|-- Dog
@enduml
<mxCell id="n0" value="Animal&#xa;+name : String&#xa;+makeSound()" style="rounded=0;align=left;spacingLeft=6;whiteSpace=wrap;html=1;" vertex="1" parent="1">
  <mxGeometry x="0" y="0" width="108" height="75" as="geometry"/>
</mxCell>
<mxCell id="n1" value="Dog" style="rounded=0;align=left;spacingLeft=6;whiteSpace=wrap;html=1;" vertex="1" parent="1">
  <mxGeometry x="27" y="111" width="54" height="75" as="geometry"/>
</mxCell>
<mxCell id="e1" value="" style="endArrow=block;endFill=0;html=1;rounded=0;" edge="1" parent="1" source="n1" target="n0">
  <mxGeometry relative="1" as="geometry"/>
</mxCell>
02

How it works

  1. Paste your PlantUML into the editor.
  2. Switch the format to draw.io. The text is converted and a preview is drawn.
  3. Use Export, Source file to save the .drawio file, then open it in draw.io.

PlantUML is first turned into a graph, laid out by Graphviz, and then written as draw.io shapes. That works for diagrams made of boxes and arrows: class, state, ER, component, use case, mind map and activity diagrams. Sequence and Gantt diagrams have no draw.io counterpart here and are refused with an explanation.

03

Good to know

04

Private by design

Rendering and converting both run inside your browser. The page is not allowed to open connections to other servers, so your diagram text is not uploaded. Your work is kept in your browser's local storage only. Details are in the privacy policy.

05

Questions

Can I import the result into diagrams.net?

Yes. The export is a normal uncompressed .drawio file, which draw.io opens directly.

Will the file match what PlantUML draws?

Not pixel for pixel. The structure and the labels are the same, the layout is computed again. Converted results are provided as is. Check the preview and the list of what was not carried over before you rely on them.

06

Related