Sequence Diagram Builder

Create standalone SVG sequence diagrams from ordered messages, participant lifelines, replies and alternatives.

On-device No sign-up Free to use

Draw sequence diagram controls

?

Ordered message/reply events name from, to and label. alt/else/end describe alternatives. Self messages are supported; up to 12 participants and 100 events.

Processed in your browser. Your inputs stay on this device.

Showing an example. Edit to see your own.

Result

Showing an example.

Build ordered message diagrams with replies and alternative frames.

Browser and Server lifelines show Request, then an Allowed alternative with a dashed 200 OK reply and a Denied branch with a dashed 403 Forbidden reply. Three messages appear in sequence-diagram.svg.

Loading the tool. Your result will appear here.

https://usefreetools.net/sequence-diagram-builder · 20 November 2026

Was this helpful?

How to use Sequence Diagram Builder

  1. Enter participants in left-to-right order and add ordered message or reply events.
  2. Use alt, optional else and end events to enclose alternative branches.
  3. Run the diagram and inspect labels, arrow directions and participant lifelines.
  4. Download the standalone SVG and JSON model for later editing.

Example: Sequence Diagram Builder

Build ordered message diagrams with replies and alternative frames.

You add
Sequence model JSON: {"participants":["Browser","Server"],"events":[{"type":"message","from":"Browser","to":"Server","label":"Request"},{"type":"alt","label":"Allowed"},{"type":"reply","from":"Server","to":"Browser","label":"200 OK"},{"type":"else","label":"Denied"},{"type":"reply","from":"Server","to":"Browser","label":"403 Forbidden"},{"type":"end"}]}
You get
Browser and Server lifelines show Request, then an Allowed alternative with a dashed 200 OK reply and a Denied branch with a dashed 403 Forbidden reply. Three messages appear in sequence-diagram.svg.

Supported inputs and limits

  • JSON up to 2 MiB, 30,000 values and 40 nesting levels.
  • Use 1–12 distinct participants, names up to 32 characters, and 1–100 events.
  • Labels are limited to 120 characters.
  • Alternative frames may nest four levels and have one else per frame; each must close with end.
  • Diagram height is capped at 10,000 pixels.
More details

Supports ordered messages, replies and self messages, not timing simulation, activation bars, automatic code extraction or evaluated conditions.

SVG contains escaped local text and no external resources.

JSON numeric literals are limited to 128 characters and must retain their decimal value through browser Number conversion; integers outside the safe integer range and unsupported precision are refused.

SVG labels must use XML 1.0 characters; unsupported controls and lone surrogates are refused rather than removed.

Where your input is processed

This tool does not upload your inputs. See the limits for anything saved on your device.

Questions about Sequence Diagram Builder

How are replies distinguished from requests?

Reply events use dashed arrows. Message events use solid arrows; both follow the supplied event order and participant names.

Can the diagram contain conditional branches?

An alt event opens a labelled frame, else marks its alternate branch, and end closes it. The labels describe entered conditions; the tool does not execute them.

Can I reopen and edit the diagram later?

Keep the exported JSON model and paste it back to change participants or events. The standalone SVG can also be opened in a browser or vector editor.

Page updated · Project managed by Tony Hines · Report a problem with Sequence Diagram Builder