Mastermind Solver Online
Free mastermind solver online. Runs a client-side search over valid states and returns a solution when one exists.
Mastermind Solver Online 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
Under the hood
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 Online 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.