FREE TOOL · RUNS OFFLINE
PlantUML to Mermaid converter
Paste a PlantUML or Mermaid diagram and get it in the other language. Sequence, class, state, activity and mind map diagrams convert both ways; every line that does not carry over is listed with its line number. Nothing leaves your browser.
Result
Paste a diagram and press “Convert”.
What did not carry over
A worked example
A checkout sequence in PlantUML, with a database participant, an alt branch and a separator. The Mermaid below is what the converter gives for it, produced when this page was built.
@startuml
title Checkout
actor User
participant "Web Shop" as Shop
database Orders
User -> Shop : place order
activate Shop
alt card accepted
Shop -> Orders : save
Shop --> User : order id
else declined
Shop --> User : try another card
end
== Later ==
deactivate Shop
@endumlsequenceDiagram
title Checkout
actor User
participant Shop as Web Shop
participant Orders@{ "type": "database" }
User->>Shop: place order
activate Shop
alt card accepted
Shop->>Orders: save
Shop-->>User: order id
else declined
Shop-->>User: try another card
end
Note over User,Orders: Later
deactivate ShopWhat the converter reports for it:
- Line 14: The separator "==" is shown as a note across the diagram: Mermaid has no separator line.
Three things changed and the list says why: -> becomes ->> (Mermaid's solid arrow with a head), the participant with spaces gets the id Shop and keeps "Web Shop" as its label, and the == Later == separator becomes a note across all participants, because Mermaid has no separator line.
How each diagram type converts
| PlantUML | Mermaid | What changes |
|---|---|---|
Sequence: A -> B : hi, -->, ->>, ->x | A->>B: hi, -->>, -), -x | Arrow heads \, // and o become plain arrows |
participant, actor, database, queue, boundary ... | participant X@{ "type": "database" } | Mermaid 11+; a typed participant cannot also have a display name |
alt/else, loop, opt, par, break, critical, group | the same blocks; par branches use and, critical uses option | group becomes opt |
== Section ==, ... 5 min ..., ref over | Note over the first to the last participant | Shown as notes |
activate, ++/--, destroy, box | the same; destroy moves before the last message | Mermaid requires that order |
Class: interface, abstract, enum, List<T>, {static} | <<interface>>, List~T~, $, * | Fields written name : Type become Type name |
package X { } | namespace X { } | Relations move outside, as Mermaid requires |
State: [*], composite states, <<choice>>, fork, join, -- | stateDiagram-v2, nearly line for line | History states [H] are dropped |
Activity: :step;, if/elseif/else, while, repeat, fork, switch, swimlanes, partition | flowchart TD with decisions, labelled edges, fork bars and subgraphs | Notes beside steps are dropped |
Mind map: *, **, +/- sides | mindmap with indentation | Left and right sides and colours are dropped |
| Mermaid flowchart (back to PlantUML) | A[x] -->|yes| B{y}, subgraphs | rectangle, hexagon, database ... joined by -->, ..>, ==> |
Tested with the real engines
On 27 November 2026 we ran 38 test diagrams through the converter: 28 in PlantUML and 10 in Mermaid, covering every feature in the table, many of them modelled on the examples in the two languages' documentation. Each source and each result was then drawn by the engines themselves: Mermaid 11.17.2 and 12.3.0, and PlantUML1.2026.10 (the official engine compiled to JavaScript).
- 26 of 26 converted PlantUML diagrams draw without an error in both Mermaid versions.
- 8 of 8 converted Mermaid diagrams draw without an error in PlantUML.
- The other 4 (a use case diagram, a Gantt chart, a pie chart and an ER diagram) were refused with a message, not converted wrongly.
Two bugs this testing found and fixed: Mermaid wants destroy X before the message that ends X, while PlantUML writes it after; and Mermaid refuses a namespace that would be left empty once relations move out of it.
Draw both in Confluence and Jira
If you are converting to put a diagram on a Confluence page, you may not need to: Excalidraw for Confluence draws Mermaid and PlantUML, and PlantUML Diagrams for Confluence draws PlantUML with C4 built in. Both draw inside Atlassian, with no PlantUML server; the source stays editable. In Jira, Mermaid Tabs keeps Mermaid diagrams on a work item.
More on the two languages: Mermaid vs PlantUML vs D2 vs Graphviz, the PlantUML syntax guide, the Mermaid syntax guide and the Mermaid sequence diagram guide.
Frequently asked questions
Is my diagram sent anywhere?
No. The conversion runs in your browser, the page has no analytics, and its Content-Security-Policy (connect-src none) stops it from sending any request. It also works offline once loaded.
Which PlantUML diagrams can be converted to Mermaid?
Sequence, class, state, activity (the new syntax with start, :action; and if/endif, drawn as a Mermaid flowchart) and mind maps. Use case, component, deployment, Gantt, JSON, YAML, wireframe (Salt) and network diagrams have no Mermaid counterpart here, and the tool says so instead of guessing.
What gets lost when converting PlantUML to Mermaid?
Styling (skinparam, themes, colours), !include files, separators (==), delays (...), "return", messages from the edge of the diagram, notes beside activity steps and history states. Separators, delays and "ref over" become notes. Every dropped or changed line is listed with its line number.
Can I convert Mermaid back to PlantUML?
Yes, for sequence, class, state and mind map diagrams and flowcharts. A Mermaid flowchart becomes a PlantUML diagram of boxes (rectangle, hexagon for decisions, database, card, circle) joined by arrows, with subgraphs as nested rectangles.
Does the Mermaid output work in GitHub, Confluence and Jira?
Every converted diagram of our test set draws in Mermaid 11.17.2 and 12.3.0. Check which Mermaid version your tool runs: a database or queue participant uses the participant type syntax that came with Mermaid 11.
Why not just ask an AI to convert it?
You can, but you then have to check the result line by line. This converter follows fixed rules, gives the same output every time and lists what it could not keep, so you know where to look.