Home › Fun & Games › Sudoku Solver

Sudoku Solver

Type or paste the numbers from your puzzle and press Solve for the full answer in milliseconds. Prefer to solve it yourself? Ask for the next step and the solver explains which technique finds it.

Last updated:

Advertisement
Advertisement

How to use the Sudoku Solver

  1. Enter the puzzle: click a cell and type its number. Use the arrow keys to move and Backspace to clear. Or paste an 81-character line (use 0 or . for blanks) and press Load.
  2. Press Solve to fill in the complete solution. Your clues stay black; solved digits appear in blue.
  3. Want only a nudge? Press Hint: the solver highlights one cell and explains why its number is forced. Press Apply hint to place it.
  4. Check uniqueness to see whether the puzzle has exactly one solution, none, or several.
  5. Show all steps lists the whole logical solving path, and Show candidates adds pencil marks to every empty cell.

Sudoku solving techniques used by the hints

The hint button works the way a person solves on paper: it lists the candidates (digits still possible) for every empty cell, then looks for the simplest technique that places a digit. Cells are named by row and column, so R3C5 is row 3, column 5. Boxes are numbered 1–9 from top left to bottom right.

TechniqueWhat it means
Naked singleA cell has only one candidate left because the other eight digits already appear in its row, column or box.
Hidden singleWithin a row, column or box, a digit fits in only one cell, even if that cell has other candidates.
PointingInside a box, all candidates for a digit lie in one row or column. That digit can be removed from the rest of that row or column outside the box.
Claiming (box/line reduction)Inside a row or column, all candidates for a digit lie in one box. That digit can be removed from the other cells of the box.
Naked pair / tripleTwo cells in a unit share the same two candidates (or three cells share three). Those digits must go in those cells, so they are removed from the other cells of the unit.
AdvancedWhen none of the above helps, the puzzle needs harder techniques such as X-Wing, Swordfish or chains. The hint then reveals the correct digit for the cell with the fewest candidates.

How to enter a puzzle quickly

  • Type row by row: click the top-left cell, type a digit or press Space/0 for an empty cell, then use the right arrow. The arrows wrap at the edges.
  • Paste a line: many puzzle sites and books use an 81-character format such as 53..7....6..195.... Paste it into the box and press Load puzzle, or paste straight onto the grid.
  • Share a puzzle: add ?p= followed by the 81 characters to this page's address to open it with that puzzle loaded.
  • Double-check clues: if the solver reports no solution, a single mistyped digit is the usual cause. The red highlight only catches duplicates in the same row, column or box.

Mathematically, a valid Sudoku needs at least 17 clues to have a unique solution; this was proved by an exhaustive computer search in 2012. Most newspaper puzzles give between 22 and 36 clues.

Frequently asked questions

How does the Sudoku solver work?

It uses backtracking search with bitmask candidate tracking: it always fills the empty cell with the fewest possible digits first, and backs up when a choice leads to a contradiction. This finds the solution of any valid 9×9 puzzle, even the hardest ones, in a few milliseconds.

What techniques do the hints use?

Hints look for naked singles, hidden singles, locked candidates (pointing and claiming) and naked pairs and triples, the same techniques people use on paper. If a puzzle needs something more advanced, the hint takes the next digit from the computed solution and says so.

What does it mean if a Sudoku has more than one solution?

A proper Sudoku has exactly one solution. If the uniqueness check finds two or more, a clue is missing or was entered wrongly, and you can't solve it by logic alone. Puzzles with fewer than 17 clues never have a unique solution.

Why does it say my puzzle has no solution?

Either two equal digits share a row, column or 3×3 box (these are highlighted in red), or the clues are consistent at first glance but contradict each other deeper down. Compare your entries with the printed puzzle; a single mistyped digit is the usual cause.

Can I paste a puzzle?

Yes. Paste 81 characters, reading left to right and top to bottom, using digits 1–9 for clues and 0, a dot or a dash for empty cells. Spaces, line breaks and grid characters like | and + are ignored.

Is the solver free and private?

Yes. It is free with no sign-up and runs entirely in your browser; your puzzle is never sent anywhere.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Sudoku OnlinePlay free Sudoku with 4 difficulty levels, notes, hints and a timer.Maze GeneratorCreate random mazes in any size, solve them with the arrow keys, then print or save as PNG.MinesweeperPlay classic Minesweeper: 3 difficulties, flags, timer and a safe first click.Word UnscramblerUnscramble letters into every possible word, with blank tiles, length filters and Scrabble scores.Nonogram PuzzlePlay unlimited nonogram (picross) puzzles from 5×5 to 15×15, each with one unique solution.SolitairePlay classic Klondike Solitaire with Draw 1 or Draw 3 and undo.Spider SolitairePlay Spider Solitaire online with 1, 2 or 4 suits, hints, unlimited undo and a timer.Play Chess vs ComputerPlay chess online against the computer at 8 difficulty levels.Connect FourPlay Connect 4 online against the computer or a friend.Snake GamePlay classic Snake online with speeds, wall modes and high scores.Tic Tac ToePlay tic tac toe against an unbeatable AI or a friend.Block Puzzle GameClassic falling blocks puzzle game with levels and high score.2048 GamePlay 2048 online with swipe controls, undo and best score.Word Guess GameGuess the hidden five-letter word in six tries. Unlimited games, stats and hard mode.HangmanClassic friendly hangman word game with categories, hints and difficulty levels.Memory Card GameFlip cards and match emoji pairs on 4×3 to 6×6 grids, with moves, timer and best scores.Flappy GameTap to flap a round chick through bamboo gaps and beat your high score.Dino Runner GameJump cacti and duck buzzing beetles in an original endless desert runner.Typing GameType the falling words before they land; level up and track your WPM and accuracy.Math Quiz GameTimed mental math rounds with four operations, five levels, streaks and high scores.Flag QuizGuess the flags of all 196 countries in four modes, from multiple choice to timed.Map QuizFind countries on a clickable world map or name the highlighted one, by continent.Periodic Table QuizLearn all 118 elements: quiz symbols, names and atomic numbers or click them on the table.Spelling Bee GameMake words from 7 honeycomb letters, always using the center letter. New daily puzzle.Jigsaw PuzzleTurn a sample picture or your own photo into a 12 to 150 piece jigsaw puzzle and solve it.Sliding PuzzlePlay the 15 puzzle and 3×3 to 6×6 sliding tile puzzles with numbers or your own photo.Mahjong SolitaireMatch pairs of free tiles to clear the Turtle and two smaller layouts, with hints, shuffle and undo.Scrabble Word FinderFind the highest-scoring words from your rack, with blank tiles, patterns and bingo bonus.Wordle SolverEnter your guesses and colours to see every possible answer and the best next guess.Crossword SolverFind words that fit a crossword pattern like c?t from the length and the letters you know.Word Search GeneratorMake a word search puzzle from your words, play it online or print it with an answer key.Pong GamePlay classic Pong online against the computer on 3 levels or with a friend, first to 11.Breakout GameClassic brick breaker game with levels, power-ups and lives. Play with mouse, touch or keyboard.Whack-a-MoleWhack the moles before they hide in 30 or 60 second rounds. Speed increases, best score saved.Simon Says GameRepeat the growing color and sound sequence. Classic memory game with strict mode and high score.CheckersPlay checkers online against the computer or a friend, with kings, undo and hints.ReversiPlay Reversi (Othello rules) online vs a 3-level computer or a friend, with move hints.GomokuGet five in a row on a 15×15 board against a smart computer or a friend.Emoji QuizGuess the word, phrase, animal, food or movie from emoji clues. 370+ puzzles with hints.Funny Fill-in-the-Blank Story GeneratorWord game: fill in nouns, verbs and adjectives without seeing the story, then reveal it.Golf SolitairePlay Golf Solitaire online: clear 7 columns by playing cards one rank up or down. 9-hole scoring.Guess the Number GameGuess the secret number with higher/lower or warm/cold hints, or let the computer guess yours.Hearts Card GamePlay Hearts online against 3 computer players: pass cards, dodge the Queen of Spades, shoot the moon.Kakuro PuzzlePlay generated cross-sum kakuro puzzles in several sizes with pencil marks and a combination helper.Killer SudokuPlay generated killer sudoku puzzles with cage sums, pencil marks, a cage combo helper and hints.Ludo GamePlay Ludo online with 2-4 players or against the computer: roll, capture and race home.Match 3 GameSwap gems to match 3 or more, trigger cascades and special gems, and beat each level's target.Snakes and LaddersPlay the classic board game online with 2-4 players or against the computer.Space Shooter GameRetro arcade space shooter: blast alien waves and meteors, grab power-ups and beat your high score.Spades Card GamePlay Spades online with a computer partner: bid tricks or nil, trump with spades, avoid bags.Stack Tower GameTap to drop sliding blocks and build the tallest tower. Perfect drops earn bonus points.US States QuizFind the 50 states on a clickable US map, type them all from memory, or match state capitals.Virtual Bubble WrapPop endless bubble wrap with click, touch or drag. Satisfying pop sounds and a pop-it fidget mode.Word Grid GameFind words in a 4x4 or 5x5 letter grid by dragging across adjacent letters before time runs out.Word Ladder GameChange one letter at a time to turn one word into another. Daily and random word ladders.Chess PuzzlesSolve chess puzzles online: mate in 1, 2 and 3 plus tactics, with hints, a rating and streaks.Clicker GameIdle clicker: mine gems, hire builders, buy upgrades, rebirth for stars and earn while you're away.Color by NumberTap numbered pixels to color pictures, or turn your own photo into a color by number puzzle.Online Coloring PagesColor animal, holiday and mandala pages online with bucket fill and brushes, then print or save PNG.Connections Word PuzzleGroup 16 words into 4 hidden categories. New daily puzzle, full archive, shareable results.Daily Crossword PuzzleA free new crossword every day: quick 5x5 mini or a bigger 13x13, with check, reveal and timer.Farkle Dice GamePlay Farkle online vs the computer or pass-and-play: pick scoring dice, risk it or bank to 10,000.Gin RummyPlay Gin Rummy vs the computer: draw, discard, knock or go gin. Melds found automatically.Jeopardy-Style Quiz Board MakerMake a categories-and-points quiz board, then play it full screen with teams and live scores.Name All Countries QuizType as many of the world's 197 countries as you can in 15 minutes while the map fills in.Piano Tiles GameTap the black tiles to play classic melodies. It speeds up as you go; beat your high score.Pinball GamePlay pinball online with real flipper physics, bumpers, a wire ramp, drop targets and multiball.8 Ball Pool GamePlay 8 ball pool online vs the computer or a friend: aim line, power meter, spin and real physics.
See all 141 Online Games →