NFA and DFA checker: draw, grade and convert, step by step

Free automata checker. Check your NFA to DFA conversion, draw an NFA or DFA for any regular expression or language and get it graded out of 100, or watch any regex become its smallest DFA step by step.

Check an NFA to DFA conversion

Enter the NFA from your question and the DFA you built with the subset construction. The checker rebuilds the DFA, scores your answer out of 100 (start state, states, arrows, accepting states and language) and shows the first step where your answer went wrong.

Draw an NFA or DFA for a regex or a language

Type a regular expression such as (a+b)*ab, or pick a language in words: strings that end with, start with, contain or do not contain a string, exactly, at least or at most n a's, an even number of a's, a length that is a multiple of k, a letter n places from the end, and more. Draw your NFA (λ-moves allowed) or DFA and get it graded. Your machine is compared with the language on every string, and you see the shortest string it gets wrong.

Explore any regular expression

Type any regular expression over a and b. The checker numbers its letters and builds an NFA with one state per letter, converts it to a DFA with the subset construction, then merges states into the smallest DFA, one step at a time. You can test any string on it.