Mermaid Sequence Diagram Editor
Design API interactions, message flows, and service communication with Mermaid sequence diagram syntax — live preview, free.
Runs 100% in your browser. Your input and files never leave your device.
Why use our online Mermaid Sequence Diagram Editor?
Design and export Mermaid sequence diagrams instantly — model any message-based system with actors, arrows, and notes.
How to use Mermaid Sequence Diagram Editor
- 1Declare your participants
List participants at the top with "participant Alice" or "actor Bob". Participants appear in the order declared.
- 2Add messages between participants
Use ->> for solid arrows and -->> for dashed (response) arrows. Example: Alice->>Bob: Hello!
- 3Add notes and groupings
Use "Note over Alice: text" for annotations. Use loop, alt, opt, and par blocks to show conditional or parallel flows.
- 4Export the diagram
Download as SVG for embedding in docs or PNG for presentations. The 2× resolution PNG is best for retina displays.
Frequently Asked Questions
What is the difference between ->> and -->> in a sequence diagram?
A solid arrow (->>) represents a synchronous call or request. A dashed arrow (-->>) represents a reply or asynchronous response. This convention follows UML standards.
How do I show a loop in a Mermaid sequence diagram?
Wrap messages in a loop block: loop Every 5 seconds ... end. This renders a visual loop box around the enclosed messages.
Can I show conditional flows in a sequence diagram?
Yes. Use alt/else blocks: alt Successful ... else Failed ... end. This renders branching paths with labeled sections.
How do I add activation boxes to show when a participant is active?
Use activate/deactivate or the + and - shorthand: Alice->>+Bob: Request and Bob-->>-Alice: Response.
Are sequence diagrams supported in GitHub Markdown?
Yes. GitHub renders Mermaid inside ```mermaid code blocks in .md files, including sequence diagrams.
Related Tools
More Developer Tools- Diff CheckerCompare two files for visual differences.Free • In browser
- SQL to ORM ConverterConvert CREATE TABLE SQL to Prisma, Drizzle, SQLAlchemy, Django, TypeORM, Sequelize, GORM, and Ecto model definitions — free, browser-based, no account needed.Free • In browser
- Hash GeneratorGenerate MD5, SHA-1, SHA-256, and SHA-512 hashes from text or files. Supports HMAC authentication codes.Free • In browser
Also useful: Markdown EditorSVG Converter