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

  1. 1
    Declare your participants

    List participants at the top with "participant Alice" or "actor Bob". Participants appear in the order declared.

  2. 2
    Add messages between participants

    Use ->> for solid arrows and -->> for dashed (response) arrows. Example: Alice->>Bob: Hello!

  3. 3
    Add notes and groupings

    Use "Note over Alice: text" for annotations. Use loop, alt, opt, and par blocks to show conditional or parallel flows.

  4. 4
    Export 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.

Also useful: Markdown EditorSVG Converter