Tools / Editor

PlantUML to Mermaid Converter

Convert supported PlantUML diagrams to Mermaid source. Compare a worked example, inspect skipped constructs and review migration limitations.

Move the diagram structure, then review the differences

Convert existing PlantUML text when your documentation needs Mermaid syntax. Start with a small diagram and compare the source, preview, and warnings. The converter handles a subset of PlantUML; it is not a lossless replacement for the PlantUML renderer.

A request and reply in both syntaxes

PlantUML input

@startuml
participant Browser
participant API
Browser -> API: Request profile
API --> Browser: Return profile
@enduml

Diagram source

sequenceDiagram
  participant Browser as Browser
  participant API as API
  Browser->>API: Request profile
  API-->>Browser: Return profile
PlantUML wrappers are removed, participant declarations are translated, and the request and response become Mermaid sequence messages. The interaction survives; identical visual layout is not guaranteed.

Review the migration

  1. Paste a supported PlantUML diagram, including its @startuml and @enduml wrappers if present.
  2. Convert and read every warning. Check any skipped lines against the original diagram.
  3. Compare participants, relationships, message order, and labels before using the generated source in your documentation.

Conversion compatibility at a glance

PlantUML inputConversion behavior
SequenceSupported declarations, messages, notes, and selected control blocks become sequenceDiagram syntax.
ClassSupported class structure becomes classDiagram syntax. Check skipped constructs and member details.
Activity / use caseConverted to flowcharts as an approximation, not native UML-equivalent rendering.
Styling and external directivesskinparam and external directives are skipped with warnings. Includes are not fetched.
Other diagram familiesUnsupported types are rejected. Individual unsupported lines in recognized types may be skipped with warnings.

Common questions

Why does the converted diagram look different?

Mermaid and PlantUML use different syntax and layout rules. Preserve the meaning first: participants, relationships, branch conditions, and message order. Rework styling in the destination editor.

Can I convert a large file?

Each input is limited to 200,000 characters. Split large diagrams into smaller scenarios so skipped details are easier to find and compare.

Does a successful preview mean the migration is complete?

No. A preview shows that the output can render. It does not prove that unsupported source lines were preserved. Review warnings and compare the diagram with the original.