# Sudoku Solver - Solve Any Sudoku, Get Hints and Generate New Puzzles

> Free online sudoku solver and generator: solve any 9×9 grid in milliseconds, flag invalid or multi-solution puzzles, get single-based hints and candidates.

- URL: https://qilingtools.com/en/math/sudoku
- Category: Math Tools (https://qilingtools.com/en/math)
- Tags: [Math](https://qilingtools.com/en/tags/math), [Fun & Games](https://qilingtools.com/en/tags/game), [Algorithms](https://qilingtools.com/en/tags/algorithm)
- Last updated: 2026-10-26
- Price: Free, no sign-up
- Privacy: Runs locally in the browser; files are never uploaded

Stuck on a sudoku? Enter the puzzle in the 9×9 grid (or paste an 81-character string) and press Solve to get the answer in milliseconds — even the puzzles billed as the world's hardest. The solver flags repeated digits in rows, columns and boxes and tells you when a puzzle has no solution or more than one. If you would rather not see the whole answer, use Hint: it finds the next cell that can be deduced with a naked single or a hidden single and explains why, while Show candidates pencils in every digit still possible for each empty cell. Check compares your entries with the unique solution and marks mistakes in red. It also works as a sudoku game: generate a fresh puzzle in Easy, Medium, Hard or Expert, every one guaranteed to have exactly one solution, with Easy and Medium solvable using basic techniques only.

## How to use

1. Enter the puzzle: click a cell and type 1–9, use the arrow keys to move, or paste an 81-character string
2. Press Solve for the answer, Hint for one logical step at a time, or Check to verify your entries
3. To play, choose a difficulty and press New puzzle

## Features

- Millisecond backtracking solver with bitmask candidates and minimum-remaining-values
- Detects conflicts, unsolvable and multi-solution puzzles
- Hints explained as naked or hidden singles
- Candidate display plus row, column, box and same-digit highlighting
- Unique-solution puzzle generator in four difficulties
- 81-character import/export using . or 0 for blanks
- Keyboard and on-screen number pad, works well on phones

## FAQ

### Why does it say the puzzle has more than one solution?

A proper sudoku has exactly one solution. With too few clues or a digit missed while typing, several solutions exist; the tool fills in one of them and warns you. Double-check the puzzle, especially easily confused digits such as 1 and 7 or 6 and 8.

### Can it solve the hardest sudokus?

Yes. It combines bitmask candidate tracking with backtracking that always tries the cell with the fewest candidates first, so even puzzles that need heavy trial and error are solved in a few milliseconds — and the search continues far enough to confirm whether the solution is unique.

### How are the difficulty levels defined?

By the number of clues and the techniques required. Easy has about 40 clues and Medium about 32, and both can be finished with naked and hidden singles alone; Hard has about 26 and Expert about 22 and usually need more advanced techniques. Every generated puzzle has a unique solution.

### What is the 81-character format?

The cells written left to right, top to bottom in one string: digits 1–9 for givens and . or 0 for blanks, e.g. 53..7....6..195…. Spaces, line breaks and separators such as | - + are ignored on import, so you can paste straight from a web page or text file.

## Related tools

- [Graphing Calculator](https://qilingtools.com/en/math/graph): Free online function graphing calculator: type sin(x), x^2 or 1/x and see the curve at once, with several functions, parametric and polar curves, PNG export.
- [Scientific Calculator](https://qilingtools.com/en/math/calculator): Free online scientific calculator: type 2*(3+4)^2, sin(pi/6) or log(8,2) and see the answer as you type, with degrees or radians and a history list.
- [Equation Solver](https://qilingtools.com/en/math/equation): Free online equation solver: enter coefficients for linear, quadratic (with discriminant, vertex and complex roots) and cubic equations, plus 2×2 systems.
- [Fraction Calculator](https://qilingtools.com/en/math/fraction): Free online fraction calculator: add, subtract, multiply and divide fractions with automatic reduction, plus fraction ↔ decimal with repeating digits.
- [Percentage Calculator](https://qilingtools.com/en/math/percentage): Free online percentage calculator: X% of Y, X as a percent of Y, increase and decrease, a value after a percentage change and the original behind it.
- [Prime Factorization](https://qilingtools.com/en/math/prime): Free online prime factorization: factor an integer with exponents, list every divisor and their sum, test primality with neighbouring primes, or list a range.
- [GCD and LCM](https://qilingtools.com/en/math/gcd-lcm): Free online GCD and LCM calculator: works with two or more integers, says whether they are coprime, shows each prime factorization and every Euclidean step.
- [Statistics Calculator](https://qilingtools.com/en/math/statistics): Free online statistics calculator: paste a data set for the mean, median, mode, range, quartiles, variance, standard deviation, standard error and outliers.
