Theory of Computation

Open-source · Browser-based · No install

Simulate automata
right in your browser

An interactive canvas for DFA, NFA, PDA, Turing machines, and more — built for students, educators, and curious minds.

What you can simulate

DFA / NFA

Finite Automata

Place states, draw transitions, and test strings on deterministic and nondeterministic finite automata. Convert NFA to DFA with one click.

PDA / NDPA

Pushdown Automata

Model stack-based computation with full stack alphabet support using input,pop/push notation. Deterministic and nondeterministic variants.

Single & multi-tape

Turing Machines

Build Turing machines with accept, reject, and normal states. Multi-tape support with semicolon-separated transition segments.

Mealy / Moore

Sequential Machines

Design output-producing machines. Mealy outputs on transitions; Moore outputs on states. Both share the FA canvas workflow.

Thompson construction

Regex → NFA

Type a regular expression and watch it convert to an NFA via Thompson's construction, then optionally determinize to a DFA.

Advanced conversions

GNFA & CFG

Generate a Generalized NFA from a saved FA to derive a regular expression, or extract a Context-Free Grammar skeleton.

How it works

01

Build on the canvas

Place states and draw transitions directly on an infinite canvas. Pan, zoom, and arrange automata side by side.

02

Simulate strings

Select a saved automaton, enter an input string, and watch transitions highlight in real time as the machine runs.

03

Convert & export

Convert NFA→DFA, build a GNFA, generate a regex, or export your workspace as JSON to share or reload later.

Ready to build your first automaton?

No installation. No account. Just open and start drawing.

Open Simulator →