Name lifelines clearly
Use stable aliases for code and readable labels for the people, browsers, APIs, queues, and databases in the interaction.
Arrange lifelines and messages visually, preview the Mermaid diagram, and export an image or reusable source without creating an account.
Common interaction patterns
Switch between editing and the live result.
Set stable IDs, display names, order, and actor styling.
Mix messages, notes, control blocks, and preserved syntax.
Unknown Mermaid lines are preserved as raw rows. Unbalanced blocks show line-numbered errors and are not emitted by the visual builder.
Live Mermaid preview
Preparing diagram…
Scrollable sequence diagram preview. Use the arrow keys to pan, Shift with an arrow key to pan further, and Home to return to the top left.
Building your first preview…
The preview updates while you edit participants and rows.
Preparing sequence editor…
Document the conversation between systems
A sequence diagram makes message order, ownership, repetition, and alternative paths visible. This builder keeps the editable Mermaid source beside the result, so the diagram can live with an API specification, architecture note, issue, or pull request.
Use stable aliases for code and readable labels for the people, browsers, APIs, queues, and databases in the interaction.
Use loop, alt, opt, par, break, and critical blocks when control flow matters to the reader.
The generated source stays compact enough to review and update alongside the implementation it explains.
Mermaid sequence syntax
Declare each lifeline once, use arrows for messages, and wrap repeated or conditional behavior in blocks. Open the sequence syntax reference for more examples.
sequenceDiagram
actor User
participant API
User->>API: Submit request
alt Valid input
API-->>User: 200 OK
else Invalid input
API-->>User: 400 Bad Request
end This free sequence diagram generator converts an ordered interaction into a live Mermaid diagram. Start from a working template, then edit actors, participants, messages, arrows, notes, loops, alternatives, parallel paths, and other control-flow blocks. The browser renders the result immediately and keeps the source available for technical documentation.
Sequence diagrams are especially useful when timing and responsibility are more important than static structure. Show a browser calling an API, a service consulting a database, a payment provider returning a webhook, or an on-call engineer coordinating an incident response.
Choose solid or dotted lines, open or filled arrowheads, and activation arrows. The visual editor produces Mermaid syntax such as ->>, -->>, -), and ->>+ while keeping sender and recipient aliases stable.
Add loop, alt, else, opt, par, critical, and break blocks in the same order readers experience the interaction. The editor checks block balance before serialization and preserves advanced Mermaid lines from the code view.
Download SVG for responsive documents, PNG for messages and slides, or PDF for reports. Copy the Mermaid code, fenced Markdown, SVG markup, a PNG image, or a shareable URL. The .mmd and .md downloads keep the diagram editable instead of locking it into a proprietary canvas.
Your actors, messages, and system names are not uploaded to a rendering service. The editor, compressed share payload, draft autosave, and export pipeline run locally in the browser.
Choose a template, add participants, then place messages, notes, loops, alternatives, and optional Mermaid lines in order. The diagram updates as you edit.
A sequence diagram shows how people, services, or components exchange messages over time. It is useful for API calls, authentication, checkout, incident response, and other multi-step interactions.
Yes. Each lifeline can be rendered as a Mermaid actor or participant, with a stable alias and a separate display label.
Yes. Add loop, alt, else, opt, par, critical, and break rows. The editor validates block order and warns when an opening row needs an end.
Yes. It works without an account, subscription, watermark, or server-side rendering.
No. Editing, Mermaid rendering, local draft storage, share-link creation, and export happen in your browser.
Copy Markdown or download the .md file, then paste its fenced Mermaid block into a Mermaid-enabled README on GitHub or GitLab.
Yes. Switch to the Mermaid code tab for direct syntax editing. Supported lines return to the visual builder, while advanced lines are preserved.