Free diagram maker
Sequence diagram tool
A sequence diagram shows the order things happen in when several parts of a system talk to each other. Participants sit along the top, time runs down the page, and every message is an arrow from one lifeline to another.
Free, no account, and nothing you draw is uploaded.
Published . By the DiagramDesk team.
It is the fastest way to settle an argument about what calls what, and the fastest way to spot a round trip nobody needed.
Where a sequence diagram helps
- Designing an API interaction before you build it
- Explaining an authentication or payment flow
- Debugging by drawing what you believe happens, then checking it
- Documenting an integration between two systems
Drawing the lifelines and messages
- Open the template, which has a browser, an API and a database with messages between them.
- Rename each participant box along the top.
- Add a participant by copying a box and dragging a dashed lifeline down from it.
- Draw a message as a straight connector from one lifeline to another and label it.
- Use a dashed connector for a return, which is the convention readers expect.
- Keep messages in strict top-to-bottom order, because that is the whole point of the diagram.
Conventions worth following
- Time only goes down
- Never draw a message going upwards. If you need to, the participants are in the wrong order.
- Solid out, dashed back
- A solid arrow is a call, a dashed one is the response. Readers rely on this without thinking about it.
- Name the message, not the intention
- GET /orders tells a reader more than “fetch the data”.
- A self-call loops back
- Draw a short connector from a lifeline to itself for work a participant does on its own.
A worked example: signing in
Four lifelines, left to right: the User, the Browser, the Server and the Database. The user submits a form; the browser sends the email and password to the server; the server asks the database for the account; the database returns it; the server checks the password and sends back a session; the browser shows the dashboard.
Drawn as a sequence, the order of those six messages is obvious, and so is the question the diagram forces: what happens when the password is wrong? Adding that as an alternative fragment, a boxed section labelled with the condition, is usually where a team discovers the part of the flow nobody had specified.
Ready to draw yours?
The example above opens in the editor, so you can edit rather than start cold.
Sequence diagram questions
Can I write it as text and have it drawn?
No. This editor is a canvas, so the diagram is drawn directly. Everything is dragged rather than typed in a syntax.
How do I show an activation bar?
Place a narrow rectangle over the lifeline for the period the participant is busy. Send it backward so the messages stay on top.
Can I show loops and conditions?
Draw a rectangle around the messages involved and put alt, opt or loop in the top-left corner, which is the UML convention.
Why are the lifelines separate from the boxes?
So you can lengthen a lifeline without resizing the participant, and add messages below without everything moving.