About the Sudoku Generator
This Sudoku Generator creates a brand-new puzzle every time, from a tiny 4x4 grid for young children to a demanding 16x16. Pick a size and difficulty, reveal the solution on screen when you want to check, and download a PDF with the puzzle on one page and the answer key on the next. Every puzzle has exactly one solution.
How it works
Generation happens in two stages. First, a complete valid grid is built by backtracking: cells are filled in order with values tried in random order, and whenever a cell has no legal value, the generator steps back and tries something else. Each row, column, and box (2x2, 2x3, 3x3, 3x4, or 4x4 depending on size) ends up containing every value exactly once.
Second, clues are removed from random cells one at a time. After each removal, a solver counts solutions; if there is still exactly one, the cell stays empty, otherwise the value is put back. Removal stops when the puzzle reaches the clue target for the chosen difficulty, for example 38 clues for Easy and 22 for Expert on 9x9. To keep generation quick, each check has a work limit, and a clue is kept whenever uniqueness can't be confirmed in time, so a puzzle may end up with a few more clues than the target.
How to use
- 1
Under Grid size, choose 4x4, 6x6, 9x9 (Classic), 12x12, or 16x16.
- 2
Under Difficulty, pick a level; a new puzzle is generated automatically.
- 3
Click New puzzle for another one at the same settings. Copy link shares the exact puzzle, so a friend or class gets the same grid.
- 4
Use Show solution to reveal the answers on screen, and Hide solution to go back.
- 5
Click Download puzzle + answer key as PDF to print it.
Worked examples
First puzzle for a child
A 6-year-old learning the rules.
Classic daily puzzle
An adult wants a standard sudoku.
Giant puzzle
An experienced solver wants a long challenge.
A to G stand for 10 to 16.
Frequently asked questions
How do larger grids like 16x16 represent numbers above 9?+
They use the letters A through G for the values 10 through 16, the standard convention for sudoku variants larger than the classic 9x9 grid.
Is every generated puzzle guaranteed to have only one solution?+
Yes, for every grid size. A cell is only emptied if the solver confirms the puzzle still has exactly one solution; if that can't be confirmed, the clue stays.
How many clues does each difficulty have?+
On 9x9 the targets are 38 (Easy), 30 (Medium), 25 (Hard), and 22 (Expert). Other sizes have their own targets, such as 10 and 6 for 4x4 Easy and Hard.
Can I see the answer without printing?+
Yes. Click Show solution to fill the grid on screen; the answers appear in a different color from the original clues.
What is the minimum number of clues for a 9x9 sudoku?+
Seventeen. It has been proven that no standard 9x9 sudoku with a unique solution has 16 or fewer clues.