Tools / Editor

Sequence Diagram Online — Map Messages and Participants

Create a sequence diagram online with participants, messages, notes, and branches. Follow an API request example and generate editable Mermaid source.

Make the order of an interaction visible

Build a sequence diagram for an API call, login flow, or service interaction. Add participants in reading order, then describe the messages they exchange. This sequence diagram generator uses your structured steps; it does not infer a system from a natural-language prompt.

Follow one cached API request

Diagram source

sequenceDiagram
  autonumber
  participant Browser
  participant API
  participant Cache
  Browser->>API: Request profile
  API->>Cache: Read profile
  Cache-->>API: Cached profile
  API-->>Browser: Return profile
Read from top to bottom: the browser requests a profile, the API reads its cache, and the result returns along the response path. Numbering makes it easier to refer to a particular message in a review.

How to use this tool

  1. Add actors or participants and use display names when an internal ID would be hard to read.
  2. Add message steps with a sender, receiver, arrow, and concise action label.
  3. Add notes or control blocks where needed. Close each block with an end step and preview the complete interaction.

Choose a step that explains the behavior

StepWhen to use it
MessageShow a request or response between participants. Use labels such as Read profile rather than vague labels such as Data.
NoteExplain a condition or assumption next to a participant without inventing another message.
alt / else / endSeparate alternative outcomes, such as an accepted token and an expired token.
loop / endShow repeated work. Describe the repetition condition in the block label.
activate / deactivateMark a participant’s active interval. Keep activation pairs balanced.

Common questions

How much detail belongs in one diagram?

Start with one scenario and a small set of participants. Split unrelated flows into separate diagrams; a single readable request path is more useful than a complete but crowded system map.

Why is a branch rendered incorrectly?

Check the order of alt, else, and end steps. Each opened control block needs a matching end. Also check that message endpoints refer to participants that exist.

Can I start from an existing PlantUML diagram?

Use the PlantUML converter for supported sequence syntax, then inspect the conversion warnings. Visual styling and every advanced PlantUML construct are not preserved.