Mermaid sequence diagram online editor
Map requests, responses, and asynchronous events between services. Create the diagram in Mermaid Studio, preview it instantly, and export it when it is ready to share.
WHAT IT IS FOR
Make the important relationships clear
Show how users, services, and external systems exchange requests, responses, and asynchronous events over time.
- Document REST and event-driven APIs
- Explain authentication and payment flows
- Review service boundaries with a team
MERMAID EXAMPLE
Start with a working example
Copy the structure, replace the labels with your own domain, and continue in the full editor.
sequenceDiagram
actor User as User
participant Web as Web app
participant API as API
User->>Web: Open project
Web->>API: GET /projects/:id
API-->>Web: Mermaid Code
Web-->>User: Render diagramHOW TO START
Create your diagram in four steps
- 1List the actors and systems involved.
- 2Add messages in the order they happen.
- 3Use activation, notes, or response arrows to clarify timing.
- 4Check the flow from the first request to the final response.
WRITING TIPS
Keep the diagram useful
Declare each participant explicitly.
Use solid and dotted arrows to distinguish requests and responses.
FAQ
Frequently asked questions
When should I use a sequence diagram?+
Use one when timing and message order matter, such as an API request, login flow, checkout, or service-to-service interaction.
Does Mermaid support asynchronous messages?+
Yes. Mermaid sequence syntax supports different arrow styles so you can distinguish requests, responses, and asynchronous events.
RELATED DIAGRAMS
Explore another Mermaid diagram
Mermaid flowchart
Visualize processes, decisions, and system flows with connected nodes.
Read the guideMermaid class diagram
Design domain objects, properties, methods, inheritance, and relationships.
Read the guideMermaid ER diagram
Document database entities, fields, relationships, and cardinality.
Read the guideMermaid state diagram
Show how an object or workflow changes state in response to events.
Read the guideMermaid mindmap
Organize ideas and subtopics hierarchically around a central theme.
Read the guideMermaid Gantt chart
Plan projects with tasks, milestones, dependencies, and dates.
Read the guideReady to make a Sequence?
Open the editor with a working example and adapt it to your project.
Start in Mermaid Studio