Regular Expression to DFA Converter
Input
Regular Expression:
Use standard regex syntax: * for Kleene star, | for union, () for grouping
Alphabet (comma separated):
Convert to DFA
How It Works
The conversion process follows these steps:
Parse the regular expression and convert to postfix notation
Apply Thompson's Construction to build an NFA
Use Subset Construction to convert NFA to DFA
Optionally minimize the DFA
Results
Postfix Notation
Enter a regular expression and click "Convert to DFA"
NFA Transition Table
NFA table will appear here
DFA Transition Table
DFA table will appear here
Minimized DFA
Minimized DFA table will appear here
Minimized DFA Diagram
Minimized DFA diagram will appear here