No tool matches “”

Try a format (“webp”, “mp3”) or a verb (“merge”, “compress”).

Loading index

↵to open

Diagram Tools · Updated November 12, 2026 · Reviewed by FormatFlow Editorial

State Diagram Maker

You can map states and transitions in your browser on the shared visual workbench, mark initial and final states, validate the diagram, and import or export Mermaid stateDiagram-v2 source.

Runs in your browserFree · No sign-up · No watermark
STATES & TRANSITIONS → STATE DIAGRAMRuns in your browser
Loading the tool…

Everything runs locally in this tab. No file is uploaded while the tool loads.

This tool runs in your tab. Nothing is uploaded and no copy is stored.

How files are handled

Key facts

Category
Diagram Tools
Processing
In your browser — nothing is uploaded
Input formats
States and transitions
Output format
SVG, PNG, Mermaid or JSON project
Maximum size
Bound by the memory available to your browser tab
Requirements
A modern browser with JavaScript, SVG and canvas support · Unique state names and a source and target for every transition, with one initial state for a valid machine
Price
Free, no account, no watermark
Last updated
Nov 12, 2026

SummaryState Diagram Maker is a free online diagram tools tool. You can map states and transitions in your browser on the shared visual workbench, mark initial and final states, validate the diagram, and import or export Mermaid stateDiagram-v2 source. A state diagram makes the allowed states of a system and the events that move between them explicit. This editor keeps states and transitions in side panels, marks initial and final states, lays the diagram out on a grid, and flags structural problems such as missing initial states or transitions leaving a final state. It runs in your browser — nothing is uploaded. It accepts States and transitions and produces SVG, PNG, Mermaid or JSON project. The maximum size is bound by the memory available to your browser tab. Validation checks are structural and advisory; they do not prove reachability, termination, determinism or formal correctness.

At a glance

Works with
STATES & TRANSITIONS → STATE DIAGRAM
Processing
In your browser
Price
Free, no account
Updated
November 12, 2026
All Diagram Tools

About State Diagram Maker

A state diagram makes the allowed states of a system and the events that move between them explicit. This editor keeps states and transitions in side panels, marks initial and final states, lays the diagram out on a grid, and flags structural problems such as missing initial states or transitions leaving a final state.

The shared visual workbench supplies drag, pan, zoom, undo/redo, JSON save/open and SVG/PNG/PDF export. A Mermaid dialog imports and exports `stateDiagram-v2` source, so the state machine can move into a wiki, repository or documentation pipeline where the model is text.

What this tool does

The details that matter when you use State Diagram Maker for real work.
  • Initial, state and final types

    Every node has a state type; the initial and final states use circles, regular states use rounded cards, and changing the initial state clears the previous initial marker.

  • Labeled transitions

    Add transitions with a source, target and optional event label. Missing endpoints are rejected, while self-loops and transitions from final states are flagged for review.

  • State validation

    The editor warns when there is zero or more than one initial state and when a final state has outgoing transitions, without silently editing the model.

  • Mermaid stateDiagram-v2 exchange

    Import and export [*] start/end transitions, state aliases and labeled transitions through the workbench Mermaid dialog.

  • Automatic grid layout

    Initial states come first, then regular states and finals, arranged in a grid; drag individual states to refine a presentation.

  • Shared workbench export

    Export the visual model as SVG, PNG or PDF and save project JSON for exact positions and state types; all processing stays in the browser.

How to use State Diagram Maker

No account, no installation — the whole job happens in this browser tab.
  1. 01

    Add states and set types

    Add states with the Add state button, then choose Initial, State or Final for each. The editor keeps one initial state by demoting the previous one when needed.

  2. 02

    Add transitions

    For each transition choose a source and target and record the event label. Transitions that start or end at a missing state are refused.

  3. 03

    Review validation warnings

    Check for a missing or duplicated initial state, transitions leaving a final state, and accidental self-loops; fix the model before exporting it.

  4. 04

    Use the Mermaid dialog

    Open the toolbar Mermaid button to copy or download the stateDiagram-v2 source, or paste a compatible source and import it back into the canvas.

  5. 05

    Export or save JSON

    Use the workbench toolbar for SVG, PNG or PDF, and save project JSON when exact state positions and metadata need to be reopened later.

How this tool works

Works with
STATES & TRANSITIONS → STATE DIAGRAM
Processing
Client-side, in your browser. Nothing is uploaded.
Requirements
A modern browser with JavaScript, SVG and canvas support · Unique state names and a source and target for every transition, with one initial state for a valid machine

Limitations worth knowing

  • Validation checks are structural and advisory; they do not prove reachability, termination, determinism or formal correctness.
  • The model supports simple states only: no composite or hierarchical states, parallel regions, entry/exit actions or guarded transitions.
  • The editor is limited to 100 states and 300 transitions, and the grid layout does not automatically avoid edge crossings.
  • Mermaid import covers a deliberately simple subset; malformed files, composite states and advanced directives are rejected, and Mermaid does not preserve exact positions.

Privacy and file handling

State names, state types and transition labels are processed in this browser tab. SVG, PNG, PDF, project JSON and Mermaid source are generated on your device, and the model is never uploaded or stored on a server unless you choose to share the downloaded files.

Read the full privacy policy

State Diagram Maker FAQ

Short, direct answers to the questions people ask before using this tool.
Which Mermaid state syntax is supported?
The importer understands stateDiagram-v2, state "Label" as ID declarations, [*] --> State initial transitions, State --> [*] final transitions and State --> State : event transitions. Composite states, note blocks and unsupported styling are rejected or skipped with a clear line error.
Why should there be exactly one initial state?
A state machine needs a defined starting point. The editor allows you to build and view a diagram with zero or several initial states, but warns because tools and readers will not know where the machine begins; the Mermaid export writes a single [*] start transition.
What is wrong with a transition leaving a final state?
Final states are terminal in most state machines, so an outgoing transition usually means the model is inconsistent or the state should not be marked final. The editor flags it as a warning rather than deleting data, so you can decide whether it is intentional.
Are self-loops allowed?
Yes, self-transitions are valid state-machine notation for events that keep the machine in the same state. The validator adds an informational warning so an accidental loop is easy to spot rather than blocking the diagram.
What does the Mermaid export preserve?
It preserves state labels, one [*] start transition, labeled transitions between states and [*] end transitions for final states. Exact canvas positions and project metadata are only preserved by project JSON; Mermaid uses automatic layout.
Can I import a state diagram from an existing .mmd file?
Yes, through the workbench Mermaid dialog: paste the stateDiagram-v2 source and choose Import source. The source must contain exactly one [*] --> State initial transition, and unsupported composite states or malformed lines produce a line-specific error.
How many states and transitions can I add?
The editor supports up to 100 states and 300 transitions. The grid layout keeps moderate diagrams readable; very large state machines are better split by feature area or exported to Mermaid for source-based review.
Is the model executable or formally verified?
No. This is a documentation and communication tool. It validates basic structure and produces Mermaid source, but it does not execute transitions, check reachability, prove termination or verify against a formal state-machine specification.

Background reading

Format guides that explain the trade-offs behind State Diagram Maker.