NFA to DFA Converter
Department of Computer Science & Engineering | Automata Theory and Formal Languages
Define NFA
Sample Automata
Load pre-defined examples to explore different automata concepts
Click "Load" on any example to populate the NFA with pre-defined states, symbols, and transitions. This will replace your current automaton.
States
Input Symbols
Transitions
Current Transitions
Convert Regular Expression to NFA
Enter a regular expression to convert it to an NFA using Thompson's construction
Supported syntax:
a- Single characterab- Concatenationa|b- Alternation (OR)a*- Kleene star (zero or more)a+- One or morea?- Optional (zero or one)(ab)- Grouping
Common Regex Patterns
Select a regex pattern to use as an example
NFA Visualization
Add states to see the NFA graph
NFA Legend
Color coding for states and transitions
States
Regular State
Start State
Final State
Start & Final State
Transitions
Regular Transition
Self-Loop
a, b
Multiple SymbolsBadges
From
From StateTo
To Statea → bTransition Symbol
DFA Visualization
Convert an NFA to see the DFA graph
Minimized DFA Visualization
Convert an NFA to see the DFA graph
Conversion Steps
Click "Convert to DFA" to see the step-by-step conversion process.