Free state machine diagram maker
A UML state machine diagram shows the states an object can be in, the events and transitions that move it from one state to another, and what happens along the way.
Write it as short text or describe it to Tingraph AI. Tingraph lays it out, and the result is a canvas you finish by hand.
When to use a state machine diagram
Describe the states an object passes through in its lifetime, the events that move it between them, and what runs on the way.
UML states and the transitions between them, labelled event [guard] / action, with entry, do and exit activities.
What goes on a state machine diagram
- Initial and final
- States & activities
- Choice
- Fork and join
How to make a state machine diagram
- STEP 1
Write it, or ask AI
Open the state machine diagram editor on a working example and change it, or describe what you need to Tingraph AI. This is the source behind the example:
state "Door" { initial S0 state CLOSED "Closed" state OPEN "Open" { entry "lightOn()" } state LOCKED "Locked" S0 -> CLOSED CLOSED -> OPEN "open" OPEN -> CLOSED "close" CLOSED -> LOCKED "lock [key ok]" LOCKED -> CLOSED "unlock" } - STEP 2
Generate
Press Generate. Tingraph checks the source, lays out the state machine diagram and draws it on the sheet. A mistake comes back with its line number and what was expected there.
- STEP 3
Finish it by hand
- Move and rename states on the sheet; transition labels move with their lines.
- Draw a transition from the rail, including one from a state back to itself.
Tip. Label transitions event [guard] / action. Use a choice to branch on guards, and fork and join for regions that run at the same time.
State machine diagram maker: questions
What is a state machine diagram?
A UML state machine diagram shows the states an object can be in, the events and transitions that move it from one state to another, and what happens along the way.
When should I use a state machine diagram?
Describe the states an object passes through in its lifetime, the events that move it between them, and what runs on the way.
What can a state machine diagram hold in Tingraph?
UML states and the transitions between them, labelled event [guard] / action, with entry, do and exit activities. The state machine diagram editor's palette holds: Initial and final, States & activities, Choice, Fork and join.
Can Tingraph AI make a state machine diagram for me?
Yes, with a free account. Open the state machine diagram editor, open Tingraph AI and describe what the state machine diagram should show. It writes the source in this notation, checks that it draws, and you press Generate when it looks right. You can attach a picture or a PDF for it to work from.
Can I edit the state machine diagram after it is generated?
Yes. Move and rename states on the sheet; transition labels move with their lines. Draw a transition from the rail, including one from a state back to itself.
Is the state machine diagram maker free?
Yes, to start. Without an account you can open the editor, edit the example by hand and export it. A free account adds 10 generations a day, a daily Tingraph AI allowance and 2 saved diagrams; Premium, at US$5 for 30 days, adds unlimited generations, more AI, 100 saved diagrams and every export option.
Can I export the state machine diagram for a paper or slides?
Yes. Formal black-on-white is the default. Free exports PNG and JPG at up to 2x; Premium adds SVG and PDF, up to 12x, and a transparent background.
Make your state machine diagram now.
Open the state machine diagram editor