Write messages between participants and get a Mermaid sequence diagram, with lane order controlled and activation markers applied correctly.
Describe your sequence diagram
A few lines of text. Nothing is uploaded and no diagram library is loaded.
Caller ->> Receiver : what it asks for. ->> is a solid arrow and -->> a dashed reply. Declare a lane with participant or actor to fix its order or give it a display name with as; otherwise lanes appear in the order first mentioned. + after the arrow activates the receiver and - deactivates the sender. note Name : text attaches a note to the message above it, and autonumber numbers every message.Write a few lines on the left to get Mermaid that renders.
Mermaid draws lanes in the order they are first mentioned, which is rarely the order you want — declaring them up front is the only way to control it, and the structure view above shows the order you will get. An activation opened and never closed renders without an error, so the counts above are worth a glance: activations and deactivations should normally balance.
Nothing is drawn on this page and no diagram library is loaded — the output is text, which is what survives being pasted anywhere. GitHub, GitLab, Notion and most documentation site generators render Mermaid from a fenced ```mermaid block directly, so the diagram appears where it is committed rather than here.
Mermaid Sequence Diagram Generator runs entirely on your device — the diagram is generated in your browser and nothing you describe is uploaded.
You’re on the Free plan. Compare plans
Activation is the thing this gets right and hand-writing gets wrong. In Mermaid's shorthand the sign goes after the arrow and the two signs are not symmetrical: plus activates the message's target, and minus deactivates its sender. So a request and its reply are written with plus on the outbound message and minus on the inbound one — both referring to the same lifeline, from opposite ends of the exchange.
Getting it backwards produces lifelines that open and never close, which Mermaid renders without complaining. The diagram simply stops meaning what it says, and nothing reports it, which is why the asymmetry is preserved here rather than hidden behind friendlier syntax.
Mermaid draws lanes in the order they are first mentioned, which is rarely the order you want. Declaring participants up front is the only way to control it, and the structure view shows the order you will actually get before you paste the diagram anywhere.
The target of the message it is on. Minus deactivates the sender of its message. So in a request-and-reply pair both signs refer to the same participant — the one doing the work — approached from either side.
Mermaid renders it anyway, with a lifeline that never closes. The diagram looks plausible and claims that a participant is still working, which is why the counts are shown above the output.
Because otherwise lanes appear in the order first mentioned, which usually puts the service that replies first on the left. Declaring them is the only control over layout a sequence diagram offers.
Mermaid supports that, and this generator attaches a note to one message so its position is predictable. For a spanning note, add it to the generated text by hand.
No. The output is Mermaid text, checked by the same inspector as the standalone tool, and it renders wherever you paste it.
If a tool here saved you some time, you can put something towards the hosting.Buy me a coffee, on Ko-fi, opens in a new tab