Skip to content
PixelCursor(opens in a new tab)
Computer Science

Turing Machine Simulator

Simulation and visualization of Turing machines

Machine
  • Zeros to ones
  • Binary +1
  • Unary addition
  • Palindrome check
  • Copy a word
  • Busy beaver
Input
Speed
  • Slow · 1 s
  • Medium · 0.5 s
  • Fast · 0.2 s
  • Very fast · 0.05 s
Run

Binary +1Adds one to a binary number, carry included.

Try
  1. 1
  2. 0
  3. 1
States
  1. q0
  2. q1
  3. qaccept
Next rule

In state q0 the head reads 1: it writes 1, moves right and switches to q0.

On the tape101

Your runs

Runs finished0
Tried0of 6
Steps watched0

Let the machine halt and the run counts here, saved on this device only.

Examples

Six machines, from a warm-up to the busy beaver. Pick one, it lands on the tape with its own input.

Program

6 rules, 3 states, no problems.

Machine

States3
Rules6
Start stateq0
Accept statesqaccept
Reject statesnone

Last steps

No steps yet. Press Space or Play.

About this tool

  • A whole computer in one rule table

    Alan Turing described this machine in 1936. Read, write, move one cell: that is enough to compute anything any computer can compute.

  • Rules are the program

    Each rule says: in this state, reading this symbol, write that, move left or right, switch state. Nothing else happens.

  • An endless tape

    The tape grows whenever the head walks off its end. Some programs never stop, and in general no program can predict which ones.