TOOLTIKI Lovable tool, really free
Fun Puzzles

Sudoku solver

Solved in your browser · nothing is uploaded

Local · most-constrained-cell search
Advertisement
320 × 100

Solves any sudoku and tells you whether the puzzle is properly set. A published sudoku has exactly one solution by definition, so finding two means a clue has been mistyped.

How to use the sudoku solver

1 Type the given digits into the grid, leaving blanks empty.
2 Press solve.
3 Check the solution count — a proper puzzle has exactly one.

The solver is a backtracking search that always fills the most constrained cell first — the empty cell with the fewest legal digits. That single heuristic is the difference between instant and unusable: going left to right instead can take seconds on a hard grid, while choosing the tightest cell first solves a minimal 17-clue puzzle in well under a millisecond, because each choice eliminates most of the remaining tree.

The uniqueness check is the more useful output. A sudoku is defined as having exactly one solution, and it is a property of the puzzle rather than of the solver. If two solutions exist, the grid as typed is not a valid sudoku — in practice that almost always means a digit was misread from the newspaper. The search stops after finding a second solution, which is enough to answer the question without enumerating what can be millions of solutions for a nearly-empty grid.

Seventeen is the proven minimum number of clues for a unique solution. That was an open question for decades and was settled in 2012 by exhaustive computer search — there is no 16-clue sudoku with a single solution, and there never will be.

The grid is made of real input fields rather than drawn on a canvas, so it works with a keyboard and with a screen reader. A canvas grid looks tidier and is unusable for both.

Questions

The grid as typed is not a valid sudoku. A published puzzle has exactly one solution, so a clue has almost certainly been mistyped.

There is no 16-clue sudoku (McGuire, Tugemann, Civario, 2012)Sudoku and constraint satisfaction
Advertisement
300 × 250
Was this tool any good?
INTERNAL SIGNAL ONLY · WE USE IT TO FIND TOOLS WORTH REBUILDING