ChatDiagram
Tools/Free state machine diagram tool

Free state machine diagram tool.

Use the state machine diagram tool to map how a system responds to events. Describe its states, transitions, guard conditions and nested modes, and get a clear state machine diagram.

State DiagramEnter to send

Free account, no card · Export SVG, PNG or PDF

See it work

State machine diagram tool examples.

Same tool, four requests. Every drawing below is a real render.

What you type
Draw a cutthroat pool state diagram with both players active, turns changing on misses or fouls, win states when an opponent's group is cleared, and self-loops after a win.
Then tryAdd a break state before player 1 starts.Change the win condition to require eight balls.
State diagram: Cutthroat pool game
State diagram · OMG UML 2.5.1 §14 + Harel (1987) statechart · schematex-state

Rather start from a finished drawing? Browse 40 state diagram templates →

The drawing

What a state machine diagram is.

A state machine diagram models the states of a system and the events that move it between those states. It can show guards, actions and composite states when one mode contains its own internal lifecycle.

It is useful when the system's response depends on where it is now: a game, device, protocol or application session. The diagram gives the team one place to test normal paths, invalid events and terminal states.

Standard
OMG UML 2.5.1 §14 + Harel (1987) statechart
Engine
schematex-state
Editable
Double-click text, drag nodes
Export
SVG · PNG · PDF
State diagram: What a state machine diagram is
Who uses it

Who uses state machine diagrams.

State diagram: Game developersGame developers

Menus, play, pause and game-over modes mapped before controls are implemented.

State diagram: Interactive application teamsInteractive application teams

Character actions and interruptions such as movement, attacks, damage and recovery.

State diagram: Systems designersSystems designers

Session states with matchmaking, readiness checks and nested in-game phases.

How it works

How to make a state machine diagram in three steps.

01

Describe it

One paragraph is enough to start.

“Draw a cutthroat pool state diagram with both players active, turns changing on misses or fouls, win states when an opponent's group is cleared, and self-loops after a win.”
02

See the drawing

Drawn by the right engine.

State diagram: Cutthroat pool game
03

Say what changes

Every edit keeps a version.

Add a break state before player 1 starts.
V2 · DRAWN FROM V1, NOTHING RETYPED
FAQ

Common questions

What is a state machine diagram?

A state machine diagram shows the possible states of a system and the events or conditions that cause movement between them. It is often used as a UML behavioural diagram.

What is the difference between a state machine and a flowchart?

A flowchart describes a sequence of work or decisions. A state machine describes how one system behaves differently depending on its current state and an incoming event.

What are guards and actions on a transition?

A guard is a condition that must be true before a transition can occur. An action is work performed as the transition happens, such as saving data or notifying another system.

What is a composite state?

A composite state contains smaller states that describe its internal behaviour. It keeps a large state machine readable by grouping related modes under one higher-level state.

How do I make a state machine diagram?

Name the starting state, the possible modes, the events that move between them and any terminal or error states. Add guards and actions only where they change the behaviour.

Related tools

Other drawings for the same work.

Draw your first state machine now.

Free account, no card. Describe the system and see the diagram in under a minute.

Open the editor