Sudoku Generator & Solver screenshot

Sudoku Generator & Solver

Generate a uniquely solvable sudoku at four sizes and three difficulties, or paste your own grid and have the page solve it.

Privacy First
0 Runs
Updated 2026-11-22
Runs in your tab
No upload
Proven answer
Print and text download

What this page makes

Generates a sudoku whose answer has been proved unique by an exhaustive solver, at 4×4, 6×6 or 9×9, and solves a grid you paste as well.

How to use it

Choose the grid size and difficulty, leave the seed blank for a fresh puzzle or type one to reproduce a puzzle you liked, then press Generate. To solve instead, paste 81 characters for a 9×9 grid — digits for the givens and . or 0 for blanks — and press Generate with the seed field irrelevant.

Worked example: 9×9, medium difficulty, seed demo becomes a grid with 32 clues, one proved solution, and the solver's answer under the board.

What it proves

A completed grid is built from a shuffled cyclic pattern, then cells are removed one at a time; a removal is kept only when the solver still counts exactly one solution. The solver uses bitmask candidates, naked-single propagation and a minimum-candidates branch, and stops at a stated node cap instead of guessing.

What it refuses

A pasted grid with a repeated digit, with no completion, or with more than one completion is refused with the reason; the page never picks one answer from several.

Where it runs

The puzzle is generated and solved in this tab: there is no upload, no network request, no stored seed and no model, so nothing you type leaves your device. The same seed and options rebuild the same puzzle exactly.

The rest of the family

The other puzzle generators are listed under Tabletop & Game Tools: killer sudoku, kakuro, KenKen, futoshiki, nonograms, slitherlink, Hashi, word search, crossword, magic squares and buzzword bingo.

Generates a sudoku whose answer has been proved unique by an exhaustive solver, at 4×4, 6×6 or 9×9, and solves a grid you paste as well.

A completed grid is built from a shuffled cyclic pattern, then cells are removed one at a time; a removal is kept only when the solver still counts exactly one solution. The solver uses bitmask candidates, naked-single propagation and a minimum-candidates branch, and stops at a stated node cap instead of guessing. Every puzzle is generated, solved or checked in this tab: there is no upload, no network request, no stored seed and no model, so nothing you type leaves your device.

Worked example: 9×9, medium difficulty, seed demo becomes a grid with 32 clues, one proved solution, and the solver's answer under the board.

Before the puzzle is shown, the same solver is run over it: the answer, the solution count and the node cap are printed under the board, so the proof is checkable rather than promised.

How to use the sudoku generator & solver

Choose the grid size and difficulty, leave the seed blank for a fresh puzzle or type one to reproduce a puzzle you liked, then press Generate. To solve instead, paste 81 characters for a 9×9 grid — digits for the givens and . or 0 for blanks — and press Generate with the seed field irrelevant.

Every puzzle is generated, solved or checked in this tab: there is no upload, no network request, no stored seed and no model, so nothing you type leaves your device.

  • Grid size — one of 4, 6, 9
  • Difficulty — one of easy, medium, hard
  • Seed (blank draws one) — typed text
  • Or solve your own (9×9 digits, . for blanks) — one entry or one value per line

What the page proves

Generates a sudoku whose answer has been proved unique by an exhaustive solver, at 4×4, 6×6 or 9×9, and solves a grid you paste as well.

A completed grid is built from a shuffled cyclic pattern, then cells are removed one at a time; a removal is kept only when the solver still counts exactly one solution. The solver uses bitmask candidates, naked-single propagation and a minimum-candidates branch, and stops at a stated node cap instead of guessing.

  • Domain: 4×4, 6×6 and 9×9 sudoku grids; clue counts follow the difficulty target and the achieved count is printed.
  • The seed is printed with the puzzle and rebuilds it exactly: the same seed and options always produce the same grid.
  • A generation that cannot prove its answer inside the stated node cap is refused with the seed kept, rather than printed with an unchecked answer.

What it refuses, and what it leaves out

A pasted grid with a repeated digit, with no completion, or with more than one completion is refused with the reason; the page never picks one answer from several.

  • Not the right page for: a puzzle you want to keep hidden from the answer key until you print
  • Not the right page for: variant sudoku with diagonal or irregular regions

What to Expect

Best for

  • a printable sudoku with a checked answer
  • reproducing one puzzle from its seed
  • solving a grid from a newspaper

Not ideal for

  • a puzzle you want to keep hidden from the answer key until you print
  • variant sudoku with diagonal or irregular regions

What this tool keeps

  • the exact clues that were removed
  • the proved solution count
  • the seed that rebuilds the puzzle

What may need cleanup

  • printing before opening the answer key
  • choosing 6×6 when a 9×9 grid is too wide for the page

Common errors

  • a pasted grid must have exactly 81 cells at 9×9
  • a grid with two completions is refused, not solved

Example use cases

  • a classroom worksheet
  • a commute puzzle
  • checking a newspaper answer

Sample input

9×9, medium difficulty, seed demo

Sample output

a grid with 32 clues, one proved solution, and the solver's answer under the board

Who this is for

  • Puzzle players
  • Teachers
  • Parents printing a grid

Frequently asked questions

Is my data sent anywhere?

Every puzzle is generated, solved or checked in this tab: there is no upload, no network request, no stored seed and no model, so nothing you type leaves your device.

What can I download or print?

Print shows the puzzle and, if you open it, the answer key. Download writes a plain text file with the seed, the facts the page proved and the answer key; both are produced in this tab and neither is uploaded.

Why does the page print a seed?

So a puzzle can be rebuilt exactly. The same seed and the same options give the same puzzle on any machine, because the only randomness is a hash of the seed. Leave the field blank for a fresh one; the seed that was used is written back into the field.

Can I trust that the puzzle has one answer?

Yes, in the sense the page can prove: the solver searched for a second solution under the printed node cap and found none. The cap and the node count are printed with the puzzle, so the claim has a limit you can read.

Why does the clue count differ from the difficulty target?

Removing a clue is kept only while the grid stays unique. On some seeds the page cannot reach the target without breaking that, so it stops and prints the number of clues it actually has rather than calling it something it is not.

Does the solver guess?

It branches, which is a systematic form of trying candidates, but every branch is checked against the row, column and box masks and the search is bounded. When the cap is reached the page says so instead of returning an unchecked grid.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.