Define states and transitions in text; render a clean state diagram instantly.
A state diagram (state machine) describes the states an object can be in and the transitions between them. Mermaid Chart renders them from concise text — great for order lifecycles, auth sessions and workflow engines.
Mermaid code
stateDiagram-v2
[*] --> Idle
Idle --> Processing : submit
Processing --> Done : success
Processing --> Failed : error
Failed --> Processing : retry
Done --> [*]
Model order, ticket and approval states.
Document auth states: idle, pending, active, expired.
Describe device or agent state transitions.
Free forever plan — 3 diagrams, all core types, no credit card required.
Start Free