Sudoku Solver

Sudoku Solver

Enter the clues of any 9×9 sudoku — tap a cell, then a number, or paste the puzzle as 81 digits — and press Solve. Stuck halfway through? Switch to Solve it myself: Hint fills in the next cell and explains why, and Check shows any digit that doesn’t match the solution. Everything runs in your browser.

Clues given30
Empty cells51

The solver and the hints run in your browser; the puzzle is never sent anywhere. It is saved on this device, and Copy link shares it.

Calculated on your device · formulas checked against known results · How we test

How to use the sudoku solver

  1. Enter the puzzle. Tap a cell, then a number on the pad (or type it on a keyboard; the arrow keys move between cells, Backspace or 0 clears a cell). Clues show in bold. To enter a puzzle in one go, paste it as 81 characters — row by row, with 0 or . for empty cells — into the box below the grid, or press Ctrl+V while a cell is selected. Spaces, line breaks and grid lines such as | or - are ignored, so a puzzle copied from most websites or text files works as it is.
  2. Watch for red. As you type, any number that appears twice in a row, column or 3×3 box turns red, so a typo shows up before you solve.
  3. Press Solve. The missing numbers appear in green, and the message says whether the puzzle has exactly one solution, more than one, or none.
  4. Or solve it yourself. Switch to Solve it myself: the clues are locked and the numbers you add are yours (in blue). Hint fills in the next cell that can be found by simple logic and explains the reasoning; Check compares your numbers with the solution and marks wrong ones in red without giving anything else away; Clear my digits starts over with the same clues.

The puzzle is saved on this device, so you can close the page and come back to it. Copy link puts the whole grid — clues and your own numbers — into a link you can send to someone. Nothing is uploaded: the solver runs in your browser and works offline once the page has loaded.

How the solver works

A sudoku has 81 cells in 27 groups — 9 rows, 9 columns and 9 boxes — and each group must contain 1 to 9 exactly once. The solver keeps, for every row, column and box, the set of numbers already used (as a 9-bit mask), so the candidates of any empty cell are found with a couple of bit operations. It then fills the grid by backtracking with constraint propagation:

This finds the answer to any valid 9×9 puzzle in milliseconds. The solver doesn’t stop at the first solution: it keeps searching until it finds a second one or proves there isn’t one. That is how it tells you a puzzle is valid (exactly one solution), ambiguous (more than one, usually because a clue is missing or was mistyped) or impossible (no solution — for example two 5s in one row, or a cell where every number is already used in its row, column or box).

How the hints explain each step

Hints use the two techniques that solve most easy and medium puzzles, and say which one applies:

Hidden singles in boxes come first, because that is how most people scan a grid. When neither technique finds a cell, the puzzle needs harder methods (naked pairs, pointing pairs, X-wings and so on); the hint then says so and reveals the empty cell with the fewest candidates from the solution. If one of your numbers is wrong, the hint points at it first: logic built on a wrong number leads nowhere.

Worked examples

A classic puzzle with 30 clues

This is the example puzzle from Wikipedia’s sudoku article (it is loaded when you first open the page). In text form it reads 53..7....6..195....98....6.8...6...34..8.3..17...2...6.6....28....419..5....8..79.

537
6195
986
863
4831
726
628
4195
879

The first hint is a hidden single in the top-middle box: the 8 can only go in row 1, column 6, because the 8s in row 3, column 3 and row 5, column 4 rule out every other empty cell of that box. Following the hints from there, singles alone fill all 51 empty cells — this is an easy puzzle. The solver needs 52 search steps to prove that the solution is unique:

534678912
672195348
198342567
859761423
426853791
713924856
961537284
287419635
345286179

A puzzle with more than one solution

Remove just one clue — the 8 in row 3, column 3 — and the same puzzle has more than one solution. The solver says so instead of quietly picking one. A puzzle printed with a missing or misread clue is the usual cause; compare the grid with the original.

“The world’s hardest sudoku”

The Finnish mathematician Arto Inkala published this 21-clue puzzle in 2012, and newspapers called it the hardest sudoku ever made: 8..........36......7..9.2...5...7.......457.....1...3...1....68..85...1..9....4... At the start not a single hidden or naked single exists (the hint has to reveal a cell), which is what makes it so hard by hand. The solver still finds its one solution in 24,881 search steps — a few hundredths of a second on a phone.

Sudoku facts worth knowing

Limits

Frequently asked questions

Can it solve any sudoku?

Any classic 9×9 sudoku that has a solution, including the hardest published ones, usually in a few milliseconds. If the puzzle has no solution or more than one, the solver tells you instead of guessing.

How do I check my answers without seeing the solution?

Switch to Solve it myself, fill in what you can, and press Check. Wrong numbers turn red and the message tells you how many cells are left; the rest of the solution stays hidden.

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

A clue is probably missing or was typed into the wrong cell. A proper sudoku has exactly one solution, and any puzzle with fewer than 17 clues always has more than one. Compare the grid with your source, cell by cell.

Why does it say there is no solution when I see no red numbers?

Red marks only show the same number twice in a row, column or box. A puzzle can also be impossible in a less obvious way — for example a cell whose row, column and box together already contain 1 to 9. Usually one clue was mistyped.

Can I enter a puzzle from a photo or newspaper?

Type it in: tap a cell, then a number. If you have the puzzle as text (81 digits, with 0 or a dot for empty cells), paste it into the box under the grid — that is the fastest way.

Embed this calculator on your website

Free for any website or blog. Paste this code where you want the calculator to appear:

All free calculator widgets

Last updated: October 15, 2026

Menu

Categories

Finance Calculators30 calculatorsBusiness & Shopping Calculators9 calculatorsHealth & Fitness Calculators13 calculatorsMath & School Calculators23 calculatorsDate & Time Calculators19 calculatorsHoliday Countdowns17 calculatorsEveryday Tools49 calculatorsMic, Camera & Sound Tools10 calculatorsImage & PDF Tools19 calculators

CalcWorthy

AboutContactPrivacy PolicyTerms of Use

Language

Language
EnglishEnglishالعربيةArabicবাংলাBanglaDeutschGermanEspañolSpanishفارسیPersianFrançaisFrenchעבריתHebrewहिन्दीHindiBahasa IndonesiaIndonesianItalianoItalian日本語Japanese한국어KoreanBahasa MelayuMalayNederlandsDutchPolskiPolishPortuguêsPortugueseРусскийRussianไทยThaiTürkçeTurkishУкраїнськаUkrainianاردوUrduTiếng ViệtVietnamese简体中文Simplified Chinese