Sudoku Generator
Pick a size and a level. Easy leaves the most clues, Hard the fewest, and a clue stays out only while the puzzle still has one solution. Copy, print or save the puzzles, with the answers on a page of their own when you want them. The same seed always rebuilds the same set. Choose 4×4, 9×9 or 16×16, then Easy, Medium or Hard, and how many puzzles to make. Each one is new and has a single solution. Copy, print or save the puzzles. With Show solution on, the answers are shown too, and come along on a page of their own. The address is a link to this set: the same seed always rebuilds it.
How it works
- Choose 4×4, 9×9 or 16×16, then Easy, Medium or Hard, and how many puzzles.
- Turn on Show solution to see the answers, and to add them on a page of their own when you copy, print or save.
- Copy the grids, save an image or PDF, or keep the link. The same seed prints the same puzzles.
One solution
The generator fills a legal grid, then removes clues in pairs and one by one. If a second solution appears, the clue goes back. A 9×9 puzzle aims for 40 clues on Easy, 32 on Medium and 27 on Hard.
Levels by the steps they need
An Easy puzzle can be solved with naked singles: a cell where only one digit fits. A Medium one also needs hidden singles: the one place left for a digit in a row, column or box. A 9×9 Hard puzzle needs more than those two steps. A puzzle that does not match its level is made again.
Three sizes
4×4 uses the digits 1 to 4. 9×9 uses 1 to 9. 16×16 uses 1 to 9 and then A to G. A 16×16 Hard puzzle aims for 118 clues, a Medium one for 135 and an Easy one for 168.
Frequently asked questions
Does every puzzle have one solution?
Yes. A clue is removed only when the puzzle still has exactly one way to finish. If a second solution appears, the clue is put back.
What is the minimum number of clues for a sudoku?
17. In 2012 Gary McGuire's team showed by an exhaustive computer search that no 9×9 puzzle with 16 clues has a single solution. The generator stays well above that: a 9×9 puzzle aims for 40 clues on Easy, 32 on Medium and 27 on Hard.
How do I print the same puzzles again?
Keep the link, or use the same seed with the same size, level and number of puzzles. Save as JSON stores those settings.
Can I print the answers?
Yes. Turn on Show solution: the printout, the copied text and the saved image then end with the answers, on a page of their own when printed. With it off, only the puzzles are printed.
Is it free?
Yes. The puzzles are made in your browser. Nothing is uploaded.
Ready to try it?
Open PictorX in your browser — no install, no credit card required to start.
Go to Editor