Toolvito

Calculates on this device. File exports run online.

Sudoku Solver

Type or paste your sudoku and press Solve. You get the solution and whether it is the only one. Choose Solve step by step to see each step with the technique a person would use, or only the next step as a hint. Killer, jigsaw, X, hyper and letter sudoku work too.

Enter your values

Finds the solution and says whether it is the only one. 4 × 4 to 25 × 25, X, hyper, jigsaw and letter sudoku.

Your values

One row per line; . (or 0) for an empty cell. Spaces between symbols are allowed; 81 symbols on one line work too.

More options

For example 3 rows × 2 columns in a 6 × 6 grid instead of 2 × 3.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose the button below them.

Print or download

Task
Print the puzzle and the solution

You get a PDF with the puzzle on one page and the solution (or the grid after the steps) on the next.

More options

With 2, 4 or 6 the grids share a sheet at one scale; the solution starts on a sheet of its own. Not with "A page the size of the grid".

Leave it empty to use "sudoku".

The puzzle is solved in your browser. When you press a button in the box below, the drawings of the puzzle and the solution (and, for a document, the result lines and the tables) are sent to the Toolvito server to make the file. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

How to use the solver

  1. Type the puzzle in the box, one row per line, with a dot (or 0) for each empty cell. You can also paste 81 symbols on one line.
  2. For a jigsaw (irregular) sudoku choose Jigsaw and type a map of the regions: one letter per cell. Tick the diagonals for sudoku X, or the four windows for hyper sudoku. For letters or a wordoku, choose the symbols.
  3. Press Solve. The result says whether the puzzle has one solution, more than one or none, and shows the solution.
  4. In the box below, print the puzzle and the solution, or save them as pictures or a document.

One solution, several or none

A proper sudoku has exactly one solution. The solver tries every possibility (exact cover with dancing links, the method of D. E. Knuth) and stops after the second solution it finds: then it shows both, and the cells where they differ need another given. It also names any givens that clash, and says when a grid has no solution at all.

Every search has a limit of 5 million steps and 4 seconds. Very empty large grids may stop there: the page then says so instead of guessing.

Step by step

The step-by-step solver works like a person: it keeps a list of the symbols each cell can still take and uses, from the simplest, the naked single, the hidden single, locked candidates, the naked pair and the hidden pair. Each step says which cell, which symbol and why.

Some hard puzzles need techniques beyond these. Then the page says that it is stuck and shows the solution found by the search, so you know that the puzzle can be finished.

Killer sudoku

In killer sudoku the grid is cut into cages with sums. Type each cage on its own line: the sum, a colon and its cells, such as 15: A1 A2 B1 (rows A, B, C … from the top, columns 1, 2, 3 … from the left). The symbols of a cage are all different and add up to its sum.

Limits you should know

  • The page reads typed grids only: it does not read a photo of a sudoku.
  • Other variants (samurai, sandwich, thermo, arrow, kropki and similar) are not supported.
  • Calcudoku, KenKen and mathdoku have their own page: the KenKen Solver.

Related tools