lazycatthemes
Mastermind Solver

Mastermind Solver

Free mastermind solver. Runs a client-side search over valid states and returns a solution when one exists.

Mastermind Solver tool

Each peg is a digit 1–6. Enter your guess, then how many pegs were black (right color, right spot) and white (right color, wrong spot).

256 possible codes remaining

Suggested next guess: 6654

33333334333533363343334433453346335333543355335633633364336533663433343434353436344334443445344634533454345534563463346434653466353335343535353635433544354535463553355435553556356335643565356636333634363536363643364436453646365336543655365636633664366536664333433443354336434343444345434643534354435543564363436443654366443344344435443644434444444544464453445444554456446344644465446645334534453545364543454445454546455345544555455645634564456545664633463446354636464346444645464646534654465546564663466446654666533353345335533653435344534553465353535453555356536353645365536654335434543554365443544454455446545354545455545654635464546554665533553455355536554355445545554655535554555555565563556455655566563356345635563656435644564556465653565456555656566356645665566663336334633563366343634463456346

How the Mastermind Solver works

Enter the board or starting state and it runs a search over the valid moves, returning either a solution or a clear message that none exists.

Nothing is uploaded: the state lives in the page and the search runs in the same tab.

Limits

Harder or unusual layouts fall outside what this search covers, and the tool says so rather than returning a half-finished board.

Frequently asked questions

Is the Mastermind Solver free?

Yes. No signup, no paywall, nothing to install.

Where does the solving happen?

In your browser. The board state never leaves the page, and the search uses the same 359,039-word dictionary where words are involved.

What if it cannot find a solution?

It tells you. Exhausting the search space is a real answer, not a failure to be hidden.