Skip to content
Sudoku generators

Sudoku generator with a uniqueness check on every puzzle

This sudoku generator builds a fresh puzzle in your browser and proves it has exactly one solution. Choose a 4 x 4, 6 x 6 or 9 x 9 grid and a level from Easy to Expert. The preview redraws on every change. Then download a 300 DPI PNG and a two page PDF with the answer key.

By The Mazeloom team (Product and testing). Last updated .

live tool
● live sudokuseed mazeloom
32 clues · one solution · no guessing needed
Grid and level
Easy has about 40 clues, expert about 23. Easy and medium never need guessing.
Page

How to make a puzzle with the sudoku generator, step by step

  1. First, pick a grid size: 4 x 4, 6 x 6 or 9 x 9.
  2. Then choose a level: Easy, Medium, Hard or Expert.
  3. Next, tick Symmetric clue pattern or Large print digits if you want them.
  4. After that, press New sudoku until you like the grid, and turn on Show the answer to check it.
  5. Finally, add a title, pick US Letter or A4, and press Download PNG + PDF.

The live preview is always free, and you get one free PNG and PDF export a day. See the pricing page for Pro, $19 once, with clean files and a commercial license, or read how we test every puzzle.

How the sudoku generator builds a puzzle

Every puzzle starts from a seed, which is a short code shown above the preview. First, the generator uses that seed to fill a complete, valid grid. Each row, column and box holds every digit once. At this point the grid is the answer key.

Then the work of making a puzzle begins. The generator removes one clue at a time. After each removal, a solver runs on what is left. If the grid still has one solution, the clue stays out. However, if the removal opens a second solution, the clue goes back in.

This repeats until the clue count reaches the target for your level, or until no more clues can go. For a 9 x 9 grid the targets are about 40 for Easy, 32 for Medium, 27 for Hard and 23 for Expert. As a result, the clue count you see can sit a little above the target on some seeds.

Why one solution matters

A proper sudoku has one answer, and only one. That rule is what makes the puzzle fair. If two grids both fit the clues, a solver can reach the end and still be marked wrong. So the uniqueness check is the most important step in the whole process.

Levels also follow a clear rule. Easy and Medium puzzles are always solvable with singles only. In other words, every move is a naked single or a hidden single, so there is no guessing and no trial and error. Hard and Expert keep the one solution rule, but they may need more advanced steps.

For example, our test run below used seed sample-sudoku-generator on a 9 x 9 Medium grid. It kept 32 clues, the solver found exactly 1 solution, and no guessing was needed.

Sizes, levels and options in the generator

The 9 x 9 grid is the classic newspaper size. The 6 x 6 grid uses digits 1 to 6 in boxes of 2 rows by 3 columns, so it suits young solvers. Finally, a 4 x 4 grid uses digits 1 to 4 in 2 x 2 boxes, which makes a gentle first puzzle.

Next, two options change the look. Symmetric clue pattern places the clues so the grid looks the same after a 180 degree turn. Large print digits make the numbers bigger for tired eyes. In addition, the seed field lets you type your own code, and the same seed always makes the same puzzle.

If you need many puzzles, switch to the Puzzle book tab. There you can build a PDF of 1 to 100 sudoku with an answer key at the back.

What this sudoku generator does not do

It makes classic number sudoku only. So there is no killer sudoku, no word sudoku, no samurai or 16 x 16 grid, and no diagonal X sudoku. It also does not draw pencil marks, and you cannot solve the puzzle online with a timer.

The level labels are honest, but simple. The tool promises that Easy and Medium need no guessing. It does not rate puzzles by named techniques such as X-Wing. Therefore, if you need that kind of grading, test a few Hard grids yourself first.

Sudoku generator settings at a glance

Sudoku generator settings at a glance
SettingOptions
Grid size4 x 4 (digits 1 to 4), 6 x 6 (digits 1 to 6), 9 x 9
LevelEasy, Medium, Hard, Expert
Clue targets on 9 x 9About 40, 32, 27 and 23
UniquenessSolver checks for exactly one solution after each removal
OptionsSymmetric clue pattern, large print digits, seed, PDF title
PaperUS Letter or A4
Downloads300 DPI PNG, answer PNG, two page PDF (SVG with Pro)
built and checked

Sudoku generator tested with a real run

We built this sudoku with the same code the tool on this page uses, with this page's settings and a fixed seed. So the image and the numbers below come from that run, not from a mockup.

PNG + PDF with answer key: real output from the sudoku generator test
PNG + PDF with answer key, exactly as the tool builds it
Test input
9 x 9 medium sudoku, seed sample-sudoku-generator
Output
PNG + PDF with answer key
Clues
32
Solutions
1
No guessing
yes
Level
medium
PDF size
14 KB
Build time
62 ms

How we check sudoku: a solver confirms that each puzzle has exactly one solution, and we open each PDF to check the grid, the answer key and the print size. More on the about page.

questions

Sudoku generator FAQ

Does every puzzle have only one solution?

Yes. After each clue is removed, a solver checks the grid. A clue that would allow a second solution goes back in.

Is the sudoku generator free?

Yes. The live preview is free, and you get 1 export a day with a small credit line and no account.

Will I need to guess on Easy or Medium?

No. Easy and Medium puzzles can always be solved with naked and hidden singles. Hard and Expert may need advanced steps.

Can I make the same puzzle again later?

Yes. Write down the seed and your settings. The same seed always rebuilds the same grid.

What does Pro add?

Pro costs $19 once and gives unlimited clean exports with no credit line, SVG files and a commercial license.

Sources and references