Sudoku solver
Paste a nine-line grid (or type it on the board) and solve it: backtracking with a solution-count limit of two decides unique, multiple or unsolvable, duplicate clues are reported as conflicts, and “One deduction” explains every step as a naked or hidden single while estimating the difficulty. To play a puzzle, use the Sudoku tool instead.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Sudoku solver board
Click cells and type digits to enter a grid, or paste nine lines into “Paste a grid”; solving and deduction both run on real backtracking.
- Givens
- 0
- Filled
- 0 / 81
- Conflicts
- 0
- Solutions
- 2
- Deducible cells
- 0
- Difficulty estimate
- Very hard (guessing required)
Arrow keys / W A S D move the cursor, 1-9 enters a digit, Backspace / 0 clears
Reasoning steps
0 step(s) so far
No deduction recorded yet
......... ......... ......... ......... ......... ......... ......... ......... .........
What this tool does
- Paste a sudoku from anywhere and solve it in one click, confirming whether it is uniquely solvable, ambiguous or unsolvable.
- Stuck while solving by hand? Use “One deduction”: every step says whether it is a naked single or a hidden single, so the reason is spelled out.
- Copied a grid with a typo? It reports the conflicting coordinates (R1C1 style) instead of inventing an answer.
Example
Input
530070000 600195000 098000060 800060003 400803001 700020006 060000280 000419005 000080079
Output
Givens: 30 Conflicts: none Conflict count: 0 Status: unique solution Solution: 5 3 4 | 6 7 8 | 9 1 2 6 7 2 | 1 9 5 | 3 4 8 1 9 8 | 3 4 2 | 5 6 7 ------+-------+------ 8 5 9 | 7 6 1 | 4 2 3 4 2 6 | 8 5 3 | 7 9 1 7 1 3 | 9 2 4 | 8 5 6 ------+-------+------ 9 6 1 | 5 3 7 | 2 8 4 2 8 7 | 4 1 9 | 6 3 5 3 4 5 | 2 8 6 | 1 7 9
The same grid always gives the same verdict and answer: the solver walks cells depth-first with a solution-count limit of two rather than guessing heuristically.
Frequently asked questions
How are unique / multiple / unsolvable decided?
A backtracking solver runs with a solution-count limit of two: zero solutions means unsolvable, one means unique, and counting a second solution stops immediately and reports multiple. So “multiple” is a proof, not a guess.
What does “One deduction” actually deduce?
Two techniques a human can follow: a naked single (a cell with only one possible digit) and a hidden single (a digit that fits in only one cell of a row, column or box). Every step states its reason, and when neither technique applies it says plainly that guessing is required instead of pretending to continue.
How is the difficulty estimate computed?
From the number of clues plus how many cells the two techniques above can fill: few clues or a grid that needs guessing counts as very hard, while a grid that can be deduced all the way with plenty of clues counts as easy. It is a classification over a real deduction run, not a random label.
How is this different from the Sudoku tool?
This tool solves: paste a grid, get the verdict and the answer, and step through explained deductions. To generate a puzzle from a seed and play it with conflicts and a timer, use the Sudoku tool.
Keywords:sudoku solver