Sudoku Solver — Step by Step
Updated
A sudoku solver is a program that takes an unfinished 9×9 grid and returns the completed one. A step-by-step sudoku solver returns something more useful than the answer: the reasoning. It hands back an ordered list of named deductions — Hidden Single places 3 in r4c5, Naked Pair removes 7 from r2c1 — so you can see which move you missed, learn the pattern behind it, and finish the puzzle yourself instead of copying 50 digits off a screen.
This solver runs entirely in your browser. Nothing is uploaded, nothing is stored, and no account is needed. It is the same open-source solving engine that powers hints inside the Suuudokuuu game, so every step it names is a step the app could have shown you mid-game.
Why a narrated solve beats a bare answer
Most sudoku solvers online do exactly one thing: they fill the grid. That answers “what goes here” and nothing else. If you were stuck, you are still stuck the next time the same pattern appears, because the solver never told you what the pattern was. The filled grid is also unfalsifiable to a learner — you cannot check it, you can only trust it.
A narrated solve is checkable. Every step here states the technique, the cells it looked at, and the digit it placed or eliminated, and every step links to a guide explaining that technique on a worked example. Open any step and it replays on a live board, with the pattern cells highlighted and the candidates drawn in, so you can confirm the deduction with your own eyes before you accept it. That is the difference between an answer key and a teacher.
How this solver checks your puzzle
Before anything is narrated, the grid you entered is checked for a unique solution — twice, by two independent algorithms that share no code:
- The bitmask solver is the fast path. It stores each cell’s candidates as bits in a typed array, propagates naked singles until nothing changes, then branches on the cell with the fewest remaining candidates.
- The Dancing Links solver is the cross-check. It restates sudoku as an exact-cover problem and solves it with Donald Knuth’s Algorithm X over a doubly linked matrix — a completely different search from the bitmask one.
Both are asked to count solutions, stopping at two, and the two counts have to agree. Three things can come back. If the count is zero, the grid contradicts itself — a digit is repeated in a row, a column or a box — and the solver says so instead of guessing at what you meant. If the count is two or more, the puzzle is not a proper sudoku: it has multiple valid completions, there is no single answer to narrate, and any solver that quietly returns one of them is hiding the problem from you. Only a count of exactly one gets a walkthrough. If the two solvers ever disagree, that is reported too — it would be a bug in Suuudokuuu, not in your puzzle.
How the step-by-step walkthrough is produced
Once the puzzle is verified, the solving engine is run over it one deduction at a time. It tries the techniques in a fixed order, cheapest first, and stops at the first one that fires — the same order and the same code the game uses when you ask for a hint. That is why the walkthrough reads like a human solve rather than a machine dump: a Full House is preferred over a Hidden Single, a Hidden Single over a Pointing Pair, and a Naked Quad is never invoked while an easier move is still on the board.
One honest limit is worth stating up front. The engine reads candidates off the board on every step instead of carrying your pencil marks forward, so a chain of eliminations that only pays off several moves later cannot be threaded together. On puzzles that need that — the genuinely hardest sudoku puzzles and many 17-clue grids — the narration stops early and says how many cells it could not prove, rather than filling them in from an answer it already has and pretending it reasoned its way there. The verified completed grid is still shown underneath.
How to use the solver
- Enter your puzzleClick a cell and type a digit, or use the on-screen pad. Arrow keys move around the grid and Backspace clears a cell. If you already have the puzzle as text, paste all 81 characters into the box below the grid — digits for the givens, dots or zeros for the blanks.
- Solve step by stepPress Solve step by step. The uniqueness check runs first and reports honestly if the grid has no solution or more than one.
- Read the stepsEach numbered step names the technique that proves it and links to a full guide for that technique. Work down the list until you reach the move you missed.
- Replay a step on the boardOpen any step to see it on a live board: the pattern cells are highlighted, the candidates are drawn in, and the eliminations and the placement are played back in order so you can verify the deduction yourself.
Techniques the solver can explain
Every technique the walkthrough can name has its own guide, with a worked example board generated by this same engine. The technique index is the hub for all of them and lists them in the order the solver tries them; the four tiers below are how that order is grouped.
- Tier 1 — Singles place a digit outright and carry most easy puzzles on their own: Full House, Naked Single and Hidden Single.
- Tier 2 — Intersections work on the overlap between a box and a line and only ever remove candidates: Pointing Pair, Pointing Triple and Box Line Reduction.
- Tier 3 — Subsets reserve a group of digits for a group of cells: Naked Pair, Naked Triple, Naked Quad, Hidden Pair, Hidden Triple and Hidden Quad.
- Tier 4 — Fish, wings and chains reason across several units or along a path of cells: X-Wing, Swordfish, Jellyfish, Finned X-Wing, Finned Swordfish, Sashimi X-Wing, Sashimi Swordfish, XY-Wing, XYZ-Wing, W-Wing, X-Chain, XY-Chain, Simple Coloring and AIC.
Never solved a sudoku before? The how to play guide covers the three rules and your first moves before any of the patterns above become useful.
Sudoku solver FAQ
Can this solver solve any sudoku?
It can complete any sudoku that has exactly one solution — the bitmask and Dancing Links solvers are exhaustive, so the finished grid is always found. The narrated walkthrough is more modest: it covers every step the technique engine can prove from the board alone, and on puzzles that need long chained eliminations it stops early and tells you how many cells it could not justify rather than guessing.
What if my puzzle has two solutions?
The solver says so and refuses to narrate. A puzzle with more than one valid completion is not a proper sudoku: there is no single correct answer, so any step-by-step explanation would be fiction. Usually it means a given was mistyped or left out — add the missing digits and solve again.
Does it show the steps?
Yes. Every step names the technique that proves it, the cells involved and the digit placed or eliminated, and links to a guide for that technique. Opening a step replays it on a live board with the pattern cells highlighted and the candidates shown, so you can check the deduction instead of taking it on trust.
Is the sudoku solver free?
Yes. It is free, open source, ad-free and requires no account. It runs entirely in your browser, so the puzzle you enter never leaves your device.