EN
PortuguêsEnglishEspañol
All tools
Documents 100% free

State diagram maker (state machine)

Add the states, drag them into place and connect them with Connect blocks. Click a transition to type the event.

How to use

Thank you so much for helping!

Every donation helps pay for the servers and keeps the tools free for everyone. Pick or type an amount:

Secure payment by Stripe. Opens in a new tab.

Back to Documents

The states, and what moves from one to the next

Available in: PortuguêsEspañolEnglish

Advertisement

State diagram maker (state machine): what it is for

Type the transitions between states, one per line, with the event that causes the change after the colon. The initial and final states are marked with [*], and names with spaces are declared once with state.

The drawing shows the path of an order, a ticket or a screen and helps you spot forgotten cases. Download it as PNG or SVG.

How to use

  1. Type the transitions between states.
  2. Add the event for each transition.
  3. Download the diagram as PNG or SVG.

When to use it

  • Online store order status.
  • Document approval flow.
  • Systems modeling coursework.

Frequently asked questions

How do I write a transition?

State1 --> State2 : event. [*] marks the start (when it comes before the arrow) and the end (when it comes after). For a name with spaces, declare it first: state "Being packed" as packing, and use packing in the arrows.

What is a state diagram?

It is a drawing of the states something goes through, like an order, a support ticket or a screen, and of the events that lead from one state to another. It helps you not forget cases, such as canceling an order that has already shipped.

Can I group states?

Yes. Use state Name { ... } with the inner transitions inside the braces for a composite state. For a choice, declare state decision <<choice>> and leave it with one arrow for each path.

Is it really free?

Yes, 100% free. No sign-up, no subscription and no usage limits. All Tools123 tools are free and run right in your browser.

Similar tools

The tools are provided as is, without warranty. We are not responsible for the results or for how they are used.