← All text tools

Automata Simulator

Run a Turing machine from a rule table, test strings on a DFA or NFA you describe, or turn a regular expression into an NFA and DFA with state diagrams.

  • Free
  • No sign-up
  • Works on any device

About Automata Simulator

Three tools from the theory of computation share this page. Write the rules of a Turing machine, one line per state and symbol, and run it on an input tape with a full step trace; the example adds 1 to the binary number 1011 and stops with 1100 after 8 steps. Describe a finite automaton, deterministic or not, with empty moves allowed, and test strings against it while seeing the state sets it passes through and its equivalent DFA. Or type a regular expression like (a|b)*abb and see its Thompson NFA, the subset-construction DFA and a state diagram.

How to use Automata Simulator

  1. Choose Turing machine, finite state machine or regular expression and fill the rules or the expression.
  2. Add the input tape or the strings to test, and set the step limit for a Turing machine.
  3. Read the trace, the accepted and rejected strings or the DFA table, and download the diagram.

Why use this tool?

Also known as

Frequently asked questions

When does my Turing machine stop?

It stops when it enters a state named halt, accept or reject, when no rule matches the current state and symbol, or when the step limit is reached. The result line says which of these happened.

Which regular expression features are supported?

Letters and digits, the dot, character classes like [a-z], alternation with a vertical bar, the star, plus and question mark, grouping brackets and a backslash for literal symbols. Back-references and anchors are not part of regular languages.

Is the DFA minimized?

No. It is the plain subset construction, so it may have more states than the smallest equivalent machine. A dash in the table marks a missing move, which behaves like a dead state.

Is Automata Simulator free?

Yes. Automata Simulator on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Can I put Automata Simulator on my own website?

Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.