Sudoku Generator and Solver
Generate solvable Sudoku puzzles at easy, medium or hard difficulty, solve any valid board with backtracking, and see row, column and box conflicts highlighted in real time.
FreeOnline Tool
Loading…
Rate this tool
Your rating helps others decide whether this tool is worth using
How to Use
Generate a puzzle by difficulty, or enter a board and solve or check it.
- Choose Easy (45 clues), Medium (35 clues) or Hard (27 clues) from the difficulty menu, then click Generate Puzzle.
- Click a cell to select it, then enter 1–9 with the number pad or keyboard. Use the arrow keys to move, and Backspace, Delete or 0 to clear the current cell.
- Given clues are bold and cannot be edited; manually entered numbers and solver results appear in blue.
- Click Solve to complete the current board with backtracking. Click Check to test for conflicts, completion and whether the board is still solvable.
- Conflicting cells are highlighted in red in real time, and the selected cell's row, column, box and matching digits are shaded.
- Click Clear to start over, or Load Sample Data to load a classic puzzle and solve it automatically.
Features
- Three difficulty levels defined by clue count: Easy 45, Medium 35 and Hard 27.
- Puzzles are carved from a complete valid solution, so they are guaranteed to be solvable but not guaranteed to have a unique solution.
- The solver uses backtracking with the MRV (minimum remaining values) heuristic and handles any structurally valid 9×9 board.
- Checking reports board shape, completion, empty-cell count and conflict coordinates, and also verifies that the current entries remain solvable.
- Live conflict detection covers rows, columns and 3×3 boxes, marking every duplicated cell in red.
- Both an on-screen number pad and keyboard input are supported, with given clues locked.
- A complete valid board shows a success message; a full board with conflicts is flagged for review.
- All computation runs locally in the browser; no board data is uploaded.
Use Cases
Get unstuck on a puzzle
Enter the clues you have filled in and use Solve to complete the remaining cells and inspect a reference solution.
Validate a puzzle you created
Check for row, column or box conflicts and confirm that the board is still solvable before sharing it.
Catch transcription mistakes
Copy a Sudoku from a book or newspaper and let real-time red highlighting reveal mistyped digits.
Study backtracking
Try boards of different difficulty levels to see how backtracking and the MRV heuristic behave on real puzzles.
FAQ
Are generated puzzles guaranteed to have a unique solution?
No. Puzzles are made by removing cells from a complete solution, so they always have at least one solution, but may have more than one. Use Check or an external tool if uniqueness matters.
How are the three difficulty levels defined?
By clue count: Easy keeps 45 clues, Medium keeps 35 and Hard keeps 27. Fewer clues generally require more reasoning or trial and error.
Why can't I edit some numbers?
Those are the given clues from a generated puzzle or the sample, shown in bold and locked so the puzzle conditions are not changed accidentally. Manually entered numbers and solver results can be edited or cleared normally.
Can the solver handle any Sudoku board?
It handles structurally valid 9×9 boards whose cells are empty or contain 1–9 and that have no direct conflicts. If the board already contains conflicts or is logically unsolvable, Solve reports that no solution exists.
How are conflicts detected?
When a digit repeats in the same row, column or 3×3 box, all cells involved in the duplicate are marked red. Selecting a cell also highlights its row, column, box and matching digits.
Is board data uploaded?
No. Generation, solving and checking all happen locally in the browser, and no board data is uploaded.