Sliding Puzzle Solver
Enter your puzzle, check if it can be solved, and watch the solution step by step.
Optimal solutions for 3x3, 4x4 and 15-puzzle boards; fast solutions for larger boards.
Solve by size
How to use the sliding puzzle solver
Sliding Puzzle Solver at sliderpuzzlesolver.com is a free online tool for solving a scrambled sliding tile puzzle. Enter the board you already have, check whether it can reach your target, and get tile-by-tile directions. It works as a slider puzzle solver, slide puzzle solver and number puzzle solver for square boards with one blank, including the 8-puzzle and 15-puzzle. No account or installation is required.
- Set up your board. Pick the size, then press Edit and tap two tiles to swap them until the board matches your puzzle. Open Type numbers to enter the numbers row by row, using 0 for the empty space. Do not shuffle a puzzle you are trying to copy.
- Check the target and press Solve. The default goal is ascending numbers with the blank at bottom-right. If your game uses a different arrangement, use More → Edit goal first. The tool checks solvability against that goal, then computes a solution.
- Follow the moves. Play the solution as an animation, or step through it one move at a time. Each step shows which tile to slide and in which direction (for example 8 ↓), so you can copy the moves on your own puzzle.
Want to try it yourself first? Press Shuffle and play in Play mode. A timer and move counter keep score, and your best times are saved in your browser.
What you can enter and what you receive
- Input: a square 3x3 to 8x8 board, one blank, and each tile exactly once. Numbers can be separated by spaces, commas or line breaks;
0or_marks the blank. Set a custom target through More → Edit goal when needed. - Output: a solvability result, a move count, the next tile and its direction, and a complete move sequence. Reveal just one hint or follow the whole solution with pause, single-step controls and adjustable playback speed. Copy moves copies the displayed sequence.
- Solution labels: the move count belongs to the path currently shown. On 4x4 boards an early fast answer can remain visible while a background search continues. Check the label before treating a path length as a proven minimum; the 15-puzzle result explanation explains the distinction.
- Picture input: upload the completed image to cut it into pieces, then enter the scrambled positions manually. Automatic screenshot recognition, OCR and finding the tile order from an image are not supported.
- Limits: this solves square one-blank sliding tile puzzles. It is not a solver for Sudoku, jigsaws, rectangular boards, multiple blanks or sliding-block games with differently shaped pieces.
For a reproducible example, see how to solve a slider puzzle. Use the 15-puzzle walkthrough for a numbered 4x4 board or the picture puzzle workflow for image tiles.
What is a sliding puzzle?
A sliding puzzle is a square frame filled with numbered tiles or picture pieces and one empty space. You slide a tile next to the gap into it, one move at a time, until the tiles are back in order. The same toy goes by many names: slide puzzle, tile puzzle, sliding tiles, the 8-puzzle (3x3) and the 15-puzzle (4x4). Whatever you call it, this page works as a sliding, slide or tile puzzle solver for all of them.
You will find these puzzles as plastic toys, in phone games, inside escape rooms and video games, and as picture puzzles made from photos.
How the solver works
Every time you press Solve, the tool does two things:
- It checks solvability. A sliding puzzle has a hidden "parity". Every move keeps it the same, so a board with the wrong parity can never reach the goal. The solver computes it instantly and warns you before wasting a single move.
- It searches for a solution. Small boards (3x3 and 4x4) are solved with exact search algorithms, breadth-first search and IDA* with pattern databases, that explore millions of positions in your browser. Larger boards use a fast row-by-row method, the same idea a person uses by hand, refined by the computer. Even an 8x8 board is solved in a fraction of a second.
Board solving runs on your own device. Entered tile positions and uploaded image files are not sent to a solving server. Loading an external image URL contacts its host.
Why some puzzles can't be solved
If a tile is removed and put back in the wrong place, or two tiles are swapped, the puzzle may become impossible. No sequence of slides will ever fix it. Most solvers bury this in their FAQ. Here, a clear warning appears above the board the moment you enter such a position, together with a Fix it button that swaps two neighboring tiles to make the board solvable again. The most famous impossible position is Sam Loyd's 14-15 puzzle, a 15-puzzle with only tiles 14 and 15 swapped.
Supported sizes
The solver handles every square board from 3x3 to 8x8:
- 3x3: the classic 8-puzzle, the most common size in phone games and kids' toys.
- 4x4: the 15-puzzle, played with numbers or a picture.
- 5x5 to 8x8: big boards for experts, solved with the fast row-by-row method.
Each popular size has its own page with size-specific tips. See Solve by size below.
Picture puzzles
Many sliding puzzles use a picture instead of numbers. Upload a photo, drag it onto the board, paste it from your clipboard or enter an image URL, and the board is cut into pieces automatically. Turn on Show numbers to see which number each piece stands for. That makes it easy to copy a picture puzzle from a game: number the pieces of the finished image from left to right and top to bottom, then enter your scrambled board.
Share or save a puzzle
Press Copy link to get a link to the exact position on your board. Send it to a friend or bookmark it to finish later.
Frequently asked questions
Is this sliding puzzle solver free?
Yes. It is completely free, needs no account and no download, and runs entirely in your browser on desktop, tablet or phone.
Why does the solver say my puzzle is unsolvable?
Exactly half of all possible tile arrangements can never be solved by sliding. This usually happens when two tiles were entered in the wrong order or a tile was popped out and put back. Press "Fix it" and the solver swaps two neighboring tiles so the puzzle becomes solvable.
What puzzle sizes are supported?
Square boards from 3x3 up to 8x8. Use the 3x3, 4x4 or 5x5 buttons above the board; 6x6, 7x7 and 8x8 are inside More. Rectangular boards and other sizes are not supported.
Can I solve a picture puzzle?
Yes. Load the completed image, then manually arrange its pieces to match your scrambled board. Piece numbers run left to right, top to bottom. The tool cuts pictures into tiles; it does not recognize tile positions or numbers in a screenshot. Uploaded files stay on your device.
Is a slider puzzle solver the same as a sliding puzzle solver?
For a square board with numbered or picture tiles and one empty space, yes. Slider puzzle, slide puzzle and sliding tile puzzle describe the same kind of problem. This tool returns a move sequence for the tile arrangement you enter.
Can I get just the next move?
Yes. Reveal First slide for one hint, Opening for the first three moves, or press Solve for the full move list. Arrows describe the direction of the numbered tile, not the empty space.
How many moves will the solution take?
It depends on the size and the scramble. Moves are counted as single-tile slides. A 3x3 puzzle never needs more than 31 moves and a 4x4 puzzle never more than 80. Larger boards can take several hundred moves.
Does it work on my phone?
Yes. The board and the Solve button fit on one screen, you can tap or swipe tiles, and there is nothing to install.