Sudoku

Fill the grid so every row, column and 3 x 3 box holds the digits 1 to 9 once.

Time 00:00 Mistakes 0 Hints 0 Best -

How to Play:

  • Select a cell, then use the number buttons or keys 1 to 9. Entering the same digit again clears it.
  • Backspace, Delete, or the Erase button empties the selected cell. Arrow keys move the selection.
  • The Notes button or the N key switches to pencil mode for small candidate digits.
  • Undo also works with Ctrl+Z.
  • Blue digits are yours. A red digit means the same number already appears in its row, column, or box.

Embed Sudoku on your site

Paste the code into the HTML view of your post or page. It works on WordPress, Blogger and most site builders that allow iframes.

Fill the empty cells of a 9 x 9 grid so that each row, column and thick-lined 3 x 3 box contains 1 to 9 exactly once. Every new puzzle is generated on this page, and each removed digit is checked so the answer stays unique. You can always solve it by logic, without guessing.

Difficulty and one solving step

LevelCells to emptyDigits given
Easy36about 45
Medium46about 35
Hard54about 27

If generation cannot reach the target in about 0.9 seconds, it uses the emptiest grid found, so Hard may start with a few more digits than listed. Changing level or starting a new game mid-puzzle warns that the grid will be lost and needs a second click within 3.5 seconds.

Say one empty cell sees 1, 3, 5, 8 in its row, 2, 6, 9 in its column and 4 in its box. The row leaves 2, 4, 6, 7, 9, the column leaves 4, 7, and the box leaves 7. Only 7 remains, so that cell is 7. You can also pick a box and ask where a digit such as 5 can go; if only one cell fits, that is it.

Notes, hints and undo

Type 1 to 9 or use the number pad, and clear a cell with Backspace, Delete, 0 or Erase. In Notes mode (key N) digits are written small, and pressing one again removes it. Placing a real digit wipes that digit from the notes in its row, column and box. Undo works with Ctrl+Z and remembers the last 300 steps. The small count under each number button is how many of that digit are still needed.

A hint fills the selected cell if it is empty or wrong, otherwise any unsolved cell, and that digit becomes fixed. Your digits are blue and turn red when the same digit is already in the row, column or box. Red only means a clash, so a wrong digit with no clash stays blue. Each wrong digit adds one to Mistakes, and the game never ends because of them.

Saved progress

Is my game saved?

Yes. After every digit and every 10 seconds, the grid, notes, time, mistakes and hints are written to toolneat-sudoku-save in localStorage, so you can close the tab and resume later.

How is the best time kept?

Only the shortest solving time per level is saved, in toolneat-sudoku-best. Mistakes and hints do not matter. The clock stops while the tab is hidden.