Formal Languages · Automata Theory · Interactive Simulation

Turing Machine Simulator

Load a built-in machine or define your own, then watch the tape evolve step by step with a live state view, transition history, and animated head movement.

Idle
0steps
0head index
450 ms

Tape Visualization

A 15-cell window follows the active head over an effectively infinite tape. Multi-tape machines render their tapes in stacked lanes.

Blank symbol: B Current symbol: a

Current Machine

Machine description will appear here.

States

Active state updates in real time. Accept and reject states are emphasized.

Currentq0

Transition Graph

A larger state diagram with clearer spacing, labels, and transition arrows.

Edges are labeled using the active machine format. Active states glow cyan.

Transition Log

Every step is recorded using the transition semantics of the selected machine type. NTM branches are logged separately.

    Custom Machine Editor

    Define a Turing Machine from scratch, add transition rules dynamically, then load it into the simulator.

    Transition Table

    Format: (currentState, readSymbol) → (newState, writeSymbol, direction)

    Current State Read Symbol New State Write Symbol Direction Remove