PlantUML Activity Diagram Online

Create a PlantUML activity diagram online, map decisions and parallel work, preview the workflow, and export it as PNG or SVG.

PlantUML Activity Diagram Online Editor

Start with the Activity Diagram template, edit the PlantUML source, and preview the result live.

Use this focused activity diagram tool for quick previews and exports. Open the full editor for AI generation, syntax repair, sharing, and saved projects.

Diagram preview

Create a PlantUML Activity Diagram Online

Model activities, decisions, branches, loops, parallel paths, start and stop points, and swimlanes in an editable PlantUML workspace with live preview and PNG or SVG export.

Built-in Activity Diagram template

Start from valid PlantUML source designed for a practical activity diagram.

Live diagram preview

See the rendered diagram update as you edit the PlantUML source.

Focused activity diagram guidance

Learn the syntax and modeling choices used for business processes, approval flows, algorithms, user journeys, incident runbooks, and service workflows.

PNG and SVG export

Download a shareable PNG or scalable SVG from the same source.

No local setup

Create and preview PlantUML without installing Java, Graphviz, or an IDE extension.

Continue in OnUML

Move to the full editor for AI generation, repair, sharing, and saved projects.

How to Create a PlantUML Activity Diagram

Use the built-in template to create a activity diagram for business processes, approval flows, algorithms, user journeys, incident runbooks, and service workflows.

  1. 01

    Start with the built-in Activity Diagram template.

  2. 02

    Replace the sample actions with the steps in your workflow.

  3. 03

    Add if, repeat, while, or fork blocks where the flow branches or runs in parallel.

  4. 04

    Preview the workflow and check that every branch reaches a clear outcome.

  5. 05

    Export the activity diagram as PNG or SVG.

PlantUML Activity Diagram Syntax and Use Cases

Learn the core syntax and modeling decisions behind a useful activity diagram, then apply them directly in the online editor above.

Current Activity Diagram Syntax

This editor uses PlantUML's current activity diagram syntax, which is recommended for new diagrams. Begin with start, write each action between colons, and finish with stop or end. PlantUML connects consecutive activities automatically.

start
:Validate request;
:Create order;
stop

Decisions with if and else

Use if, then, else, and endif for mutually exclusive outcomes. Label the outgoing paths with short answers such as yes and no so the decision remains clear when the diagram grows.

Loops and Parallel Work

Use repeat or while for repeated actions. Use fork, fork again, and end fork when independent activities can run concurrently, such as sending a notification while recording analytics.

Swimlanes and Ownership

Prefix activities with a swimlane such as |Customer| or |Support Team| when ownership matters. Swimlanes turn a generic process into a responsibility map without changing the underlying flow.

PlantUML Activity Diagram Example

The editable example demonstrates a practical activity diagram. Change the source, check the live preview, and export the version you need.

@startuml
start
:User submits order;
if (Stock available?) then (yes)
  :Process payment;
  :Confirm order;
else (no)
  :Notify out of stock;
  :Cancel order;
endif
stop
@enduml

Why Use PlantUML for Activity Diagrams

PlantUML keeps activity diagrams in reviewable text, making them easier to update, version, reuse, and export as the design changes.

Start from the right diagram type

Open directly into a Activity Diagram template instead of adapting an unrelated example.

Keep the model reviewable

Store the diagram as readable text that works well in documentation and version control.

Preview before sharing

Check structure, labels, and relationships before exporting the rendered diagram.

Frequently Asked Questions

What is a PlantUML activity diagram online tool?

It is a browser-based editor that starts with a Activity Diagram template and lets you edit PlantUML source, preview the rendered diagram, and export PNG or SVG without local setup.

What can I model in a activity diagram?

Use it to model activities, decisions, branches, loops, parallel paths, start and stop points, and swimlanes. Common uses include business processes, approval flows, algorithms, user journeys, incident runbooks, and service workflows.

How do I add a decision to a PlantUML activity diagram?

Use an if block with then and else branches, and close it with endif. Add short labels to each branch to show which condition leads to each path.

Can PlantUML activity diagrams show parallel tasks?

Yes. Use fork, fork again, and end fork to model activities that happen in parallel before the workflow joins again.

Can I export the activity diagram as PNG or SVG?

Yes. Preview the diagram, then download PNG for slides and quick sharing or SVG for scalable documentation and web use.

Do I need to install PlantUML, Java, or Graphviz?

No. The online tool uses a server-backed preview, so you can edit and render the diagram directly in the browser.

Need AI-Assisted Diagram Editing?

Open the full OnUML editor for AI generation, syntax repair, sharing, saved projects, and multi-format diagram workflows.

Open Full Editor