Write state transitions as plain lines and get a Mermaid state diagram, with states nothing reaches and states with no exit both marked.
Describe your state diagram
A few lines of text. Nothing is uploaded and no diagram library is loaded.
From -> To : the event. [*] is the start and end marker, so [*] -> New makes New the initial state and Delivered -> [*] makes Delivered terminal. A state named in a transition is created automatically. Add a description with state Name : what it means, and a title with title:.Write a few lines on the left to get Mermaid that renders.
A transition with no event named is drawn as a bare arrow, which reads as “this happens by itself” — usually there is an event and it was not written down. The structure view marks states with no outgoing transition and states nothing reaches; both are legal Mermaid and both are normally mistakes in the machine rather than in the diagram.
Nothing is drawn on this page and no diagram library is loaded — the output is text, which is what survives being pasted anywhere. GitHub, GitLab, Notion and most documentation site generators render Mermaid from a fenced ```mermaid block directly, so the diagram appears where it is committed rather than here.
Mermaid State Diagram Generator runs entirely on your device — the diagram is generated in your browser and nothing you describe is uploaded.
You’re on the Free plan. Compare plans
A state machine drawn from its transitions makes two mistakes visible that the same machine written as code hides completely. The first is a state with no way out: in code that is a branch nobody wrote, and on the diagram it is a box with no outgoing arrow. An order that can reach payment pending and leave only by a route nobody implemented is a support queue rather than a bug report.
The second is a state nothing reaches. Dead states accumulate as a system changes — the transition that led there was removed and the state stayed — and the only cost of keeping it is that every reader has to work out whether it matters.
A transition with no event named is drawn as a bare arrow, which reads as this happens by itself. Usually there is an event and it was not written down, so the structure view says so rather than rendering an arrow that quietly claims something false.
Anything that arrives there stays. Either the transition out is missing from the machine, or the state is terminal and should be marked with an arrow to [*] so readers know it is intentional.
Because it is either dead code in the machine or evidence a transition was removed by mistake. It is legal Mermaid and renders fine, which is why it survives unnoticed.
Because an unlabelled arrow claims the transition happens spontaneously. Almost always something triggers it, and the name of that trigger is the most useful thing on the diagram.
Mermaid supports them and this generator produces a flat machine. Add the nesting to the generated text by hand if you need it — the inspector on this site will check the result.
Only structurally: reachability and exits, from the transitions you wrote. Whether the machine is correct for your domain is not something a diagram tool can know.
If a tool here saved you some time, you can put something towards the hosting.Buy me a coffee, on Ko-fi, opens in a new tab