Sudoku

Play freshly generated Sudoku with exactly one solution at four difficulty levels. Mistakes show in red, progress auto-saves, and puzzles export to PDF.

The interactive tool loads here when JavaScript runs.

About this tool

What is Sudoku?

Fill the 9 by 9 grid so that every row, every column and every 3 by 3 box contains the digits 1 to 9 exactly once. Grey cells are the givens and cannot be changed. Click a cell and type a digit, or use the number pad under the board.

Each New Game is generated in your browser: first a complete valid grid, then cells are removed one at a time, and a removal is kept only if a solver confirms the puzzle still has exactly one solution. Easy aims for about 40 givens, Medium 32, Hard 28 and Expert 24. If no further cell can be removed without creating a second solution, the puzzle keeps a few extra givens. Fewer givens usually means harder, but difficulty really depends on which solving techniques a puzzle needs, and the generator does not grade that.

Wrong digits turn red immediately, Show Solution reveals the answer, and Export Puzzle or Export Solution saves a printable PDF. The game and timer auto-save in your browser, so you can close the tab and continue later.

  • Generated puzzles with exactly one solution, checked by a solver
  • Four difficulty levels from about 40 to about 24 givens
  • Instant red error highlighting and Show Solution
  • PDF export of the puzzle or its solution
  • Auto-save, pausable timer, keyboard and number-pad entry
Read the guide: Classic Browser Games: Rules and Strategies That Actually Work

Updated

How to use Sudoku

  1. Pick Easy, Medium, Hard or Expert under Difficulty and click New Game.
  2. Click an empty cell, then type 1 to 9 or press a number on the pad. Backspace, Delete, 0 or Clear empties it.
  3. Move between cells with the arrow keys; the page does not scroll while a cell is selected.
  4. Red digits conflict with the solution. Fix them, or use Show Solution if you are stuck.
  5. Use the timer's pause, resume and reset buttons as needed, and Export Puzzle to print a copy.

Background and insight

The puzzle first appeared in Dell Pencil Puzzles and Word Games in 1979 under the name Number Place, usually credited to Howard Garns. The Japanese publisher Nikoli introduced it in 1984 and gave it the name Sudoku, short for a phrase meaning "the digits must remain single". It spread worldwide after The Times in London began printing it in 2004.

A proper Sudoku has exactly one solution, and that matters for play: logical techniques such as naked singles and pairs assume uniqueness. Random cell removal without a check often produces puzzles with two or more solutions, where a perfectly valid grid can be rejected. In 2012 Gary McGuire and colleagues showed by exhaustive search that 17 is the minimum number of givens for a unique 9 by 9 puzzle; no 16-clue Sudoku exists.

Common use cases

  • Daily logic practice

    A medium puzzle is a 10 to 20 minute exercise in careful, systematic reasoning.

  • Printing for offline play

    Export Puzzle and Export Solution create A4 PDFs for a commute or a classroom.

  • Learning techniques

    Easy grids can be solved with singles alone; harder ones need pairs and pointing techniques.

  • Pick up later

    Auto-save lets you stop mid-puzzle and continue on the same device.

Tips and limitations

  • Start with scanning: for each digit, look along the rows and columns of a box to find the only cell where it can go.
  • Then look for naked singles, cells where eight digits are already ruled out by their row, column and box.
  • Red highlighting compares against the stored solution, so it reveals mistakes instantly. Ignore it if you want an honest solve.
  • Changing Difficulty takes effect on the next New Game; the current puzzle stays as it is.
  • Time spent away from the page is not counted when a saved game is restored.

Sources and further reading

  1. There Is No 16-Clue Sudoku: Solving the Sudoku Minimum Number of Clues Problem via Hitting Set Enumeration, Experimental Mathematics. McGuire and colleagues: 17 is the minimum
  2. Sudoku, Nikoli. The publisher that named the puzzle

Frequently asked questions

Do these Sudoku puzzles have only one solution?

Yes. While generating, the game removes one given at a time and runs a solver after each removal; if the puzzle would have two solutions, the given is put back. Every puzzle you play therefore has exactly one valid answer, the one Show Solution reveals.

How many clues does each Sudoku difficulty have?

Easy targets about 40 givens, Medium 32, Hard 28 and Expert 24. The generator stops early if removing any more cells would allow a second solution, so an Expert puzzle sometimes has 25 or 26. The fewest clues any unique Sudoku can have is 17.

How do I print a Sudoku puzzle?

Click Export Puzzle to download an A4 PDF with the empty grid and its givens, or Export Solution for the completed grid. Both are generated in your browser with no upload. Print the PDF from any viewer.

Why are some of my Sudoku numbers red?

A red digit does not match the puzzle's unique solution, even if it does not clash with anything visible yet. Clear it and try another digit. Red marks only cells you filled in; the grey givens are always correct.

Is my Sudoku progress saved automatically?

Yes. The grid, your entries, the solution, the difficulty and the timer are saved to local storage as you play. Reopen the page in the same browser to continue. A new game replaces the saved one.

Can I take notes or pencil marks in this Sudoku?

No, each cell holds a single digit. Keep candidate lists on paper, or export the puzzle as a PDF and solve it with a pencil.

Is there an in-depth guide to Sudoku?

Yes. “Classic Browser Games: Rules and Strategies That Actually Work” covers the background, how it works, common pitfalls and worked examples. Read the full guide.