Sudoku solver

Type or paste a sudoku and get the solution in a blink. The solver also spots mistyped digits and tells you when a grid has no answer or more than one.

0 clues

Tip: type digits, use the arrow keys to move, Backspace to delete. You can also paste a puzzle with Ctrl+V.

How to use it

  1. Enter the puzzle

    Tap a cell and type the givens, or paste the whole grid as text. Leave blanks empty.

  2. Press Solve

    The missing digits appear in blue. Clashes, unsolvable grids and double solutions are explained.

  3. Play, learn or share

    Play the puzzle yourself, open it step by step, or copy a link that loads the same grid.

How the sudoku solver works

The solver first checks your grid for clashes: the same digit twice in a row, a column or a 3×3 box. Clashing cells turn red so a typo is easy to find. If the grid is clean, it searches for solutions with a fast backtracking algorithm that always tries the cell with the fewest options first. Most puzzles, including the hardest sudoku ever made, are solved in a few milliseconds.

It does not stop at the first answer. It keeps looking for a second one, because a proper sudoku has exactly one solution. If it finds two, it shows you both and outlines the cells where they differ, which usually points straight at a missing clue. If it finds none, it tells you the grid cannot be finished even though nothing repeats.

Paste a puzzle in any format

You do not need to type 81 cells by hand. Paste a string such as 530070000600195000... where 0 or a dot means blank, or copy a grid from a forum post or a document with spaces, lines and borders. The solver keeps the digits and ignores the rest. Arrow keys move around the grid, Backspace clears a cell, and on a phone the number pad sits right under the board.

Solve it, or learn from it

Seeing the answer is useful to check your work or settle an argument, but it skips the fun part. To learn the logic instead, send the grid to the step-by-step solver, which explains each move with the technique behind it, from hidden singles to the X-Wing. Or press Play to solve it yourself with notes and hints.

Want a new puzzle afterwards? Try today's daily sudoku, or pick a level from easy to evil.

Sudoku solver FAQ

Can the solver solve every sudoku?

Yes, every standard 9×9 sudoku that has a solution, including the hardest known puzzles. If a grid has no solution or several, the solver says so instead of guessing.

Why does it say my sudoku has more than one solution?

A clue is missing or was entered as blank. The solver shows two valid answers and outlines the cells where they differ, so compare those cells with your source.

Why does it say there is no solution?

Either two digits clash (they are marked in red) or the digits block each other further down the line. In both cases a digit was most likely mistyped.

Is my puzzle sent to a server?

No. The solver runs entirely in your browser and keeps working offline once the page has loaded.

Can I share a puzzle?

Yes. Copy the link under the grid: it contains the puzzle, so whoever opens it sees the same grid ready to solve.

Keep going

Play sudoku