Code tool

Sudoku Generator

Choose a target of 40–60 clues. The generator shuffles a valid grid and removes clues only when a bounded search confirms exactly one solution.

In-browser processingNo account requiredPrivacy details ↗

One 9×9 puzzle with a unique solution. Actual clues may exceed the target. Clue count is not a difficulty rating.

A QUICK WALKTHROUGH

How to use this tool

  1. Choose a target clue count from 40 to 60.
  2. Generate a puzzle and see the actual clue count.
  3. Reveal the answer, copy both grids as text, or download separate SVG files.

Unique solution with bounded work

A clue is removed only after the solver exhaustively confirms one solution. Each removal attempt has a search limit; uncertain removals are discarded. The actual clue count may exceed the target.

Printable local output

Generate one puzzle at a time. Download the puzzle and answer separately as SVG or copy both as TXT. Generation uses shuffled valid grids; clue count is not a difficulty rating. No input or output is uploaded or stored.

GOOD TO KNOW

Common questions

Does every puzzle have one solution?

Yes. Only clue removals confirmed to preserve exactly one solution are retained.

Can I choose a difficulty level?

No. You choose a target clue count; this does not measure solving difficulty. Grid size is fixed at 9×9.