4x4 Sliding Puzzle Solver

Numbers or pictures: enter your 4x4 board and get the shortest solution, step by step.

Example board
Mixed up. 9 tiles out of place.0 moves · 0.0 s

A realistic move count for a 4x4 picture or number board

In our earlier measured sample of 200 solvable random 4x4 boards, the middle half of completed shortest answers was 49–56 single-tile moves, with median 53 and observed range 42–64. This is a benchmark sample, not a universal range or a promise about a particular game. The standard 4x4 problem has a proven worst-case shortest distance of 80 moves. A fast answer shown before exact search finishes can be longer; wait for the Optimal label before treating its length as certified.

Practical tips for this board

  • For pictures, identify the final target cell of each crop before arranging the start board.
  • Place the final two tiles of an outer row as a pair; sealing its corner first can trap its neighbor.
  • Keep the blank in the unfinished region when you are preserving a completed row.
  • Use the early fast answer for playback while the background search continues; stopping it does not certify that answer.

Solve any 4x4 slide puzzle

This 4x4 sliding puzzle solver works with number boards and picture boards alike. Upload your own image or start with the sample picture, set up your scrambled board, and press Solve. It is the 4x4 version of our sliding puzzle solver.

The solver gives you a quick solution right away and then keeps searching until it finds the shortest solution for your board. When the badge reads Optimal, no shorter answer exists.

Turn any picture into a 4x4 puzzle

Picture puzzles are the most common kind of 4x4 slide puzzle. They show up in phone games, puzzle apps, escape rooms and as photo gifts. To solve one:

  1. Upload the finished picture. Use a file, drag and drop, paste from your clipboard, or an image URL. The image is cropped to a square and cut into 16 pieces, and it never leaves your device.
  2. Show the numbers. Turn on Show numbers and every piece gets its number. Piece 1 is the top-left corner of the finished image, piece 4 the top-right, and piece 15 sits next to the empty bottom-right corner.
  3. Copy your scramble. Press Edit start and swap pieces until the board looks exactly like the puzzle in front of you.
  4. Solve and follow. Play the moves back slowly and repeat each slide on your own puzzle.

Don't have a picture handy? Press Try a sample picture.

What makes a 4x4 puzzle hard?

A 4x4 board has 15 pieces and over ten trillion solvable positions, so nobody can memorize the answers the way you almost can on a 3x3. Moves are counted as single-tile slides (one tile moving into the empty space), the standard way optimal solutions are measured. Our measured random-board sample centers near 53 moves when solved perfectly; it does not establish a human move-count multiplier. Picture boards feel even harder, because pieces of sky or background look alike and are easy to put in the wrong place.

The rarest, hardest boards are the 80-move positions of the classic 15-puzzle. How long they take and why is explained on the 15 Puzzle Solver page.

If the solver tells you your board is not solvable, two pieces were almost certainly entered in each other's place. Look for two neighboring pieces that look similar, or press Fix it.

Numbers instead of a picture?

If you're working on the classic numbered 4x4 board, the famous 15-puzzle, our 15 Puzzle Solver covers its history, the rule that decides which boards can be solved, and Sam Loyd's impossible 14-15 puzzle.

A fast answer and a proven shortest answer

Fast solution means the displayed sequence reaches the selected goal. It does not certify the fewest moves. Optimal solution means the exact search has finished and proved the displayed move count is the shortest for this start and goal. On 4x4 boards the two stages are separate: choosing Show the quick solution now makes the fast path available while the search continues; pressing Stop ends that search.

Moves are counted as single-tile slides. A lower bound gives a minimum that any solution must respect; it is not itself a move sequence. Compare the current count with its label, and use the 15-puzzle result explanation for the full distinction. The tool does not describe an unfinished fast path as approximately shortest.

Enter an image puzzle accurately

Image upload cuts a completed picture into reference tiles. It does not recognize the numbers or tile order in a scrambled screenshot. Identify each piece against the completed image, then use Edit or Type numbers to set the current arrangement. The picture mapping walkthrough shows this process and explains why a swapped pair of similar-looking pieces can trigger an impossible-state warning.

Frequently asked questions

How do I enter a 4x4 picture puzzle?

Upload the finished picture (or try the sample), turn on Show numbers, then press Edit start and swap tiles until the board looks like your scrambled puzzle. Tile 1 is the top-left piece of the finished image and the numbers run left to right, top to bottom.

How long does it take to solve a 4x4 puzzle?

A first solution appears almost instantly. The solver then searches for the shortest one, and for almost every board it finds it within a second or two and marks it Optimal. A few extremely hard boards take much longer. The solver shows its progress, and you can stop at any time and keep the quick solution.

Why did my move count get smaller during the search?

The tool can first show a fast route and later replace it with the proven shortest route. The later count belongs to the later route.

Are picture boards harder for the computer?

Once each piece has the correct numeric identity, the moves are the same as for a numbered 4x4 board. Similar-looking crops make manual identification harder.

What does the remaining-moves explanation mean?

For a completed Optimal result it gives the exact minimum from the current playback state. For a fast result it explains a tile-distance lower bound and the remaining length of that route.