You are currently using the legacy version 4.7.1: Use latest version
Device not supported, use firefox or chrome or safari or ie 10+
Device not supported, use firefox or chrome or safari or ie 10+
Current Version: 4.7.1
© SequenceDiagram.org

INSTRUCTIONS

Large Example
  • Large example including most of the features
sequence diagram example
Title
  • The title is displayed at the top of the diagram
  • The title is also used as the file name when theicons are clicked
sequence diagram title example
Participants
  • New particpants may be added by clicking the icon
  • Change the alias of a participant by double clicking it
  • A long displayed name can be written on form:
    • participant "some very\nlong name" as Alice
  • Delete a participant by clicking it and using the delete key
sequence diagram participant example sequence diagram actor example sequence diagram boundary example sequence diagram control example sequence diagram database example sequence diagram entity example sequence diagram actor with multi line example sequence diagram participant with multi line example
Messages
  • Messages are created by clicking and dragging in the diagram
    • Hold Shift before clicking for dashed line
    • Hold Ctrl before clicking for open arrow
    • Hold Shift+Ctrl before clicking for open arrow with dashed line
  • Edit the text of a message by double clicking it
  • Change the start and end participants of the message by clicking and dragging the start or end of the message
  • Change position of the message by clicking and dragging the middle of the message
  • Delete the message by clicking it and pressing the delete key
  • New line is create using \n
sequence diagram request response example sequence diagram async request response example sequence diagram self referencing message example
Notes and Boxes
  • Notes and boxes are created by right clicking in the diagram and selecting the wanted note / box entry from the menu
  • Edit the text of a note or box by double clicking it
  • Change the start and end participants of the "note or box over several participants" by clicking and dragging the start or end of the note or box
  • Change position of the note or box by clicking and dragging the middle of the note or box
    • Note: It is the bottom of the shapes that counts as the y position when dragging
  • Delete the note or box by clicking it and pressing the delete key
  • New line is create using \n
sequence diagram notes over example sequence diagram notes on sides example sequence diagram box over example sequence diagram boxes on sides example sequence diagram angular box over example sequence diagram angular box on sides example sequence diagram round box over example sequence diagram round box on sides example
Dividers
  • Dividers are created by right clicking in the diagram and selecting the divider entry from the menu
  • Edit the text of a divider by double clicking it
  • Change position of the divider by clicking and dragging it
  • Delete the divider by clicking it and pressing the delete key
sequence diagram divider example
Activations
  • Activations are created by right clicking in the diagram and selecting the activation entry from the menu
    • activate participantName: Activates the participant at the previous entry's y position
    • deactivate participantName: Deactivates the participant at the previous entry's y position. If no entry has been added since the activation the activity is deactivated directly, use deactivateafter or space if you want an empty gap
    • deactivateafter participantName: Deactivates the participant right below the previous entry's y position
  • Activations cannot be selected, moved, or edited using the mouse
sequence diagram activation example sequence diagram activation with self reference example
Spaces
  • Spaces are created by right clicking in the diagram and selecting the space entry from the menu
  • Change position of the space by clicking and dragging it
  • Delete the space by clicking it and pressing the delete key
sequence diagram space example
Fragments
  • Fragments are created by right clicking in the diagram and selecting the wanted fragment type from the menu
    • Since many possible fragments exists, only the most common are included in the menu, complete list: alt, opt, loop, par, break, critical, ref, seq, strict, neg, ignore, consider, assert, region
  • Edit the text of a fragment by double clicking the top of the fragment or its else part
  • Change inclusion of entries by clicking and dragging top, bottom, or else part of the fragment
  • You can also create new items directly inside the fragment
  • Delete the whole fragment (but keep the contents) by clicking the top or bottom of the fragment and pressing the delete key
  • Delete only the else (else is only supported inside the alt fragment) part by clicking the else divider and pressing delete key
sequence diagram opt fragment example sequence diagram alt fragment example sequence diagram loop fragment example sequence diagram parallel fragment example
Text Styling
  • Text in all entries can be styled
  • Bold text: **some bold text**
  • Italic text: //some italic text//
  • Small text: --some small text--
  • Big text: ++some big text++
  • Big and bold: ++**some big and bold text**++
  • Italic and small: //--italic and small--//
  • Use \ to escape wanted */-+ chars, examples: c\+\+ http:\/\/www.example.org
sequence diagram text styling example
Colors
  • Color is supported for most of the entries and use the HTML color names or hex
  • W3C provides a good list of color names: W3C color names
  • Examples: #ff00ff, #lightblue
sequence diagram color participants example sequence diagram color divider example sequence diagram color boxes and notes example sequence diagram color messages example sequence diagram color activations example
Fonts
  • The font can be specified using the fontFamily keyword and the css name of the font
  • Specific font: fontFamily My Font Name
  • Browser selected sans-serif font: fontFamily sans-serif
  • Browser selected mono spaced font: fontFamily mono
sequence diagram font example
Automatic Numbering
  • The autonumber statement gives automatic number of subsequent messages
  • The autonumber off statement stops the numbering
  • Automatic numbering can be started at a specified number, example: autonumber 10
sequence diagram automatic number example
Linear Messages
  • The linear statement makes subsequent messages of the same type linear
  • The linear off statement stops linear
sequence diagram linear messages example
Parallel
  • The parallel statement simply puts subsequent entries at the same y position
  • The parallel off statement stops parallel
  • It is different from linear since it doesn't do any intelligent matching for different types of entries
sequence diagram parallel example
Participant Spacing
  • Participant spacing allows control of spacing between the participants
  • The participantspacing equal statement makes the spacing between all participants equal
  • The participantspacing 50 statement makes the spacing between all participants at least 50
sequence diagram participant spacing example
Entry Spacing
  • Entry spacing allows control of spacing between the entries
  • Click anywhere on the diagram and press the + or - key to change spacing between all entries
  • Add entryspacing statements to change in different places of the diagram
sequence diagram entry spacing example

Click images to append the examples to the diagram, hover over images to see the example script

Right click and copy image or Save as...

ABOUT

SequenceDiagram.org is a completely free online tool for creating sequence diagrams. The graphic design is created by yusi.se.

All processing of parsing and painting the diagram is done using javascript client side in the user's web browser. This not only makes it snappy to work with, but it also means that your secrets are safe. Since no backend server is used it is also possible to use the web application offline.

There are many sequence diagram tools out there but this is the only one which allows you to:

In other words bringing the best from both worlds. This makes it very easy to work with large diagram where other similar tools struggle. It also doesn't have any ads or unnecessary distracting elements. (Even the top bar can be hidden to maximize the working area)

The source script of the diagrams can be save as text files directly to your hard drive or in the browsers local storage. There are also single click buttons to save the diagram in HQ png or LQ jpeg format. The size of the image depends on the current zoom level.

If you want to share a diagram with others there is a URL share button available. It creates a link containing all the data of the diagram and can be sent to others so that they can view your diagram or keep working where you left off.

The tool is developed and maintained by people who create a lot of sequence diagrams in their daily work and from efficiency point of view weren't 100% satisfied with the existing tools.

If you have any question/comments/suggestions/bugs please contact info@sequencediagram.org

FAQ

Are diagrams stored in any way or sent to any server by SequenceDiagram.org?

If you use the share URL button and someone clicks on your link, the data in the URL will be visible in the http access logs. Otherwise no, since all parsing and drawing of diagrams is executed solely on the client side in your browser.


Are diagrams/scripts created using SequenceDiagram.org covered by any license?

No license is imposed by SequenceDiagram.org itself. However, like with all images containing text, the font you chose to use might, depending on how you plan to use the image. The default font used in diagrams is the default sans-serif font selected by your browser. You can specify a different font using the fontFamily keyword, see help for more information.


Can I run the SequenceDiagram.org tool in my companies private network?

Yes, by donating 200$ you are licensed to run the Sequencediagram.org tool inside your company's network (site license). You will also receive any new published versions of the software for the duration of 1 year from the donation date. The software is delivered in two formats:

Donations are used to support SequenceDiagram.org costs such as web hosting costs / domain costs / license costs for software used by developers (IDEs etc)


Is the code base of SequenceDiagram.org itself open source?

No, the code base is not available under any open source license.


What libraries are used by SequenceDiagram.org?

Titled link to select and copy: sequence diagram link

 

 

Copy the above Titled link or Raw URL and share it