Free Sudoku Solver with Step-by-Step Explanations
Use this Sudoku solver to enter, paste, or scan a classic 9×9 puzzle. Get a hint, full steps, or the final answer.Enter a classic 9×9 puzzle, paste 81 digits, or upload a clear image. This free online Sudoku solver can show the next logical move, guide you step by step, or reveal the completed grid when you only need the answer.
Free to use · No signup · Works on phone and desktop
Enter your Sudoku
Add the given numbers and leave empty cells blank.
What Is a Sudoku Solver?
A Sudoku solver helps you work through an unfinished number puzzle without having to start over. In a classic Sudoku, the board has 81 cells arranged in nine rows, nine columns, and nine 3×3 boxes. Every row, column, and box must contain each digit from 1 to 9 exactly once. The clues already printed in the puzzle stay fixed; you fill the empty cells using those three rules.
This free online Sudoku solver is useful whether you want the complete answer or just the next move. Enter the numbers you already have, paste a puzzle code, or scan a photo. Then choose a single logical hint, a step-by-step walkthrough, or the solved grid. A hint is particularly helpful when you're close to finishing and would rather understand one missed deduction than reveal everything.
The tool is designed for classic 9×9 Sudoku. It checks puzzle validity separately from explaining human-style solving techniques, so a mathematically solvable puzzle isn't automatically presented as a sequence of deductions that the tool cannot actually justify.
How to Use This Sudoku Solver
You can start with a paper puzzle, a screenshot, or a grid copied from another website. The process is the same: enter the clues, check them, and decide how much help you need.
1. Enter your Sudoku puzzle
Click an empty cell in the grid and type a digit from 1 to 9. Leave unsolved cells blank. If you have an 81-character puzzle string, choose Paste puzzle code and enter the digits row by row, from the top-left cell to the bottom-right. Use 0 for an empty cell. You can also use Load Example to try the Sudoku solver before entering your own puzzle.
2. Check the grid before solving
Look over the starting numbers, especially if they came from an image. One misplaced clue can change the entire puzzle. The solver identifies repeated numbers that conflict within a row, column, or 3×3 box. Correct those cells before asking for a solution. If you scanned a picture, review every recognized digit in the editable grid rather than assuming the photo was read perfectly.
3. Choose a hint, walkthrough, or answer
Select One Hint when you want to keep playing. It reveals a supported next logical move and the evidence behind it. Select Walkthrough to browse the supported reasoning in order. Choose Solve when you only need to see the completed board; the final answer is treated as a spoiler rather than an ordinary hint.
4. Continue solving on your own
Read the highlighted row, column, or box before looking at the number itself. Try to reproduce the deduction on your original puzzle. If another move still isn't obvious, return for a second hint. Using a Sudoku solver this way turns a stuck moment into practice instead of replacing the whole puzzle with an answer key.
A Real Sudoku Solver Example: Find the Next Number
Here is a standard Sudoku puzzle you can try right now. Each 0 is an empty cell. This is the same example available through the page's Load Example button.
Show example puzzle codes
530070000
600195000
098000060
800060003
400803001
700020006
060000280
000419005
000080079If you're importing a single-line puzzle code, paste this 81-character version:
530070000600195000098000060800060003400803001700020006060000280000419005000080079One valid next deduction is R5C5 = 5. R5C5 means the cell in row 5, column 5—the center of the grid. Row 5 already contains 4, 8, 3, and 1, leaving 2, 5, 6, 7, and 9 as possibilities. Column 5 already contains 7, 9, 6, 2, 1, and 8, leaving only 3, 4, and 5. The only digit that survives both checks is 5. The middle 3×3 box also permits it.
This is a Naked Single: one empty cell has just one legal candidate. Notice that you didn't have to guess the rest of the board or know its final solution. You only compared the existing clues and eliminated impossible digits. That's the kind of reasoning a step-by-step Sudoku solver should make visible.
For your next attempt, use Load Example, find the center cell yourself, and ask for a hint only after checking the row and column. If you can explain why the 5 belongs there without looking at the completed grid, the example has done its job.
Sudoku Solving Techniques Explained
An answer alone won't tell you why a number belongs in a cell. This Sudoku solver explains the following supported logical techniques. Some place a digit immediately; others eliminate candidates so that a later placement becomes possible.
Naked Single: Only one digit fits
Check the numbers already used in an empty cell's row, column, and box. If eight digits are ruled out, the ninth must go in that cell. The R5C5 example above is a Naked Single. Beginners often find this the easiest move to verify because the evidence comes directly from surrounding clues.
Hidden Single: Only one location works
A cell can appear to have several candidates while one of those digits has nowhere else to go within its row, column, or box. For example, if 7 can fit in only one empty cell of a particular box, that cell must contain 7—even if its candidate list initially includes other numbers. A Hidden Single is about a unique position for a digit, not necessarily a cell with one candidate.
Locked Candidates: A box restricts another unit
Suppose every possible location for a 6 inside one 3×3 box lies in the same row. The 6 must appear somewhere within that part of the row, so other cells in that row outside the box cannot contain 6. The same idea works with columns. This technique may remove candidates without immediately filling a cell, which is why the highlighted evidence matters.
Naked Pair: Two cells reserve two digits
If exactly two cells in the same row, column, or box each have only the same two candidates—for instance, 2 and 8—those digits must occupy those two cells in some order. You can remove 2 and 8 from the other cells in that unit. You don't yet know which cell gets which digit, but you've narrowed the remaining choices.
These are the techniques currently supported in the guided explanations. An exact solver may still complete a harder valid puzzle after the human-style explanation reaches its limit. If that happens, the tool indicates that it cannot show another supported step instead of disguising a calculation as a logical deduction.
When to Use a Sudoku Solver
You're stuck on a nearly finished puzzle
Sometimes a newspaper Sudoku has only a few blank cells left, but the next move is surprisingly hard to spot. Use One Hint to identify a particular cell or candidate elimination. It is usually more satisfying than copying a complete answer because you can carry on from there.
You want to learn rather than guess
The best use of a Sudoku solver for beginners is to compare your reasoning with a named technique. Try your own next move, read the explanation, then look for a similar pattern elsewhere on the board. Moving from Naked Singles to Hidden Singles and pairs gives you a practical way to improve without memorizing dozens of advanced rules.
Your puzzle is in a book, worksheet, or screenshot
You don't have to redraw every number if you have a clear image. Upload the puzzle, inspect the recognized clues, and correct any digit that was misread. Then use the hint or solution controls. This is helpful for a printed puzzle as well as a Sudoku screenshot saved on your phone.
You need to check whether a puzzle has a valid answer
If a grid has accidentally repeated a clue, no solution, or more than one solution, simply asking for a completed board may be misleading. This Sudoku solver checks for these cases and tells you what went wrong, so you can fix the original input instead of trying to force an answer.
Sudoku Solver From an Image or Photo
To solve Sudoku from a picture, choose Choose Image or Take a Photo near the puzzle input. A screenshot with a straight, fully visible grid is usually easiest to review. For a printed page, place it on a flat surface, photograph it in even light, and keep the entire outside border in the frame.
After the image is read, the detected numbers appear in the editable board. Check similar-looking digits, cropped edges, and faint clues. A Sudoku solver from an image still depends on accurate starting numbers; a clean scan doesn't make a wrongly recognized 3 or 8 correct. Once you've confirmed the givens, you can request one hint, examine the walkthrough, or reveal the final answer just as you would with a manually entered puzzle.
The image input is for recognizing the standard 9×9 grid and its printed digits. It does not interpret handwritten candidate notes or change the rules for Killer Sudoku, Samurai Sudoku, or diagonal variants.
Why Your Sudoku Puzzle May Not Solve
A row, column, or box contains duplicate givens. Two fixed 5s in the same row break the classic Sudoku rules before solving begins. Check whether a number was typed in the wrong cell or misread from a photo.
The clues have no possible solution. A puzzle can avoid obvious duplicates and still be impossible because its clues contradict one another indirectly. Check the original source rather than altering several cells at random.
The grid has multiple solutions. If too few clues remain—or the givens do not uniquely determine the board—more than one completed grid may satisfy the rules. That is different from a contradiction. Review missing clues or compare your input against the original puzzle.
The final answer is available, but logical steps stop. The exact Sudoku solver and the step-by-step explainer serve different purposes. When the puzzle needs an unsupported advanced technique, you may still be able to view its final solution, but the walkthrough will not invent a reason for the next move.
An image imported incorrectly. If a number seems unexpectedly impossible, go back to the editable grid and compare each clue with the photo. A small transcription error often explains why an otherwise familiar puzzle behaves strangely.
Sudoku Solver FAQ
Is this Sudoku solver free to use?
Yes. You can enter a classic 9×9 puzzle, request hints, follow supported step-by-step explanations, and reveal a final answer without creating an account.
Can I use this Sudoku solver without revealing the full answer?
Yes. Choose One Hint rather than Solve. It shows a supported deduction you can apply while keeping the rest of the puzzle for yourself. If you want to understand a sequence of moves, use Walkthrough instead.
Can the Sudoku solver solve a puzzle from a photo?
Yes, for a clear image of a classic 9×9 grid. Upload a screenshot or take a photo, review the recognized digits, and correct any mistakes before solving. Image recognition is an input shortcut, not a guarantee that every clue was detected correctly.
How do I paste a Sudoku puzzle into the solver?
Use Paste puzzle code and enter 81 characters in row order, with digits 1–9 for filled cells and 0 for blanks. For a quick test, paste the 81-character sample in the example section above or choose Load Example.
Can this Sudoku solver explain hard Sudoku puzzles step by step?
It can show the logical techniques it currently supports: Naked Singles, Hidden Singles, Locked Candidates, and Naked Pairs. Some hard puzzles require more advanced deductions. In those cases, the exact solver may find a final answer even when the explanatory walkthrough cannot continue.
What is the difference between a Sudoku hint and a Sudoku solution?
A hint points to the next useful logical move and explains why it works. A solution fills the entire grid. If you're trying to improve at Sudoku, start with a hint; if you're checking an answer key or have finished playing, the final solution may be more useful.
Why does the Sudoku solver say there are multiple solutions?
The clues you entered allow more than one valid completed board. Check that you copied every given number correctly. A well-formed standard puzzle intended for a single answer should have a unique solution, but an incomplete or modified grid may not.
Does this Sudoku solver support Killer Sudoku or other variants?
No. The current tool solves classic 9×9 Sudoku with ordinary row, column, and 3×3 box rules. It does not support Killer Sudoku cages, diagonal constraints, Samurai Sudoku, irregular regions, or handwritten candidate notes.
Is a Sudoku solver the same as a Sudoku generator?
No. A Sudoku solver helps with a puzzle you already have. A generator creates a new puzzle and, often, its answer key. If you'd like a fresh worksheet to print, try the Sudoku Generator instead.
Solve an Existing Sudoku or Make a New One
Learning the rules? Try How to Solve Sudoku for Beginners to practice two explained moves on a real puzzle.
Have a puzzle in front of you? Return to the Sudoku solver at the top of this page to enter it and choose how much help you want. Need a new challenge instead? Use our free Sudoku Generator to create a printable classic 9×9 puzzle with an answer key. Keeping these two tasks separate makes it easier to find exactly what you're looking for: help finishing a puzzle, or a fresh one to solve.
More Sudoku Tools & Guides
Try another puzzle