Sliding Puzzle

Slide the tiles to recreate the picture — with your own image!

Ad · 728×90
📷 Click or drop an image to use as the puzzle
0:00 Moves: 0
Ad · Responsive

About the Sliding Puzzle

The sliding puzzle (also called the 15-puzzle or gem puzzle) is a classic combinatorial puzzle invented in the 1870s. The traditional version uses numbered tiles, but this implementation uses image tiles — upload any photo and the puzzle will be cut into a grid of sliding pieces. Your goal is to rearrange the shuffled pieces back into their correct positions by sliding them one at a time into the single empty space.

The puzzle is available in three sizes: 3×3 (8 tiles, easy), 4×4 (15 tiles, normal), and 5×5 (24 tiles, hard). The puzzle generates only solvable configurations. If you don't have an image to upload, you can still play — the tiles show their numbers and positions. A timer and move counter track your progress.


How to Play

  1. Optionally upload an image to use as the puzzle picture.
  2. Choose a grid size (3×3, 4×4, or 5×5), then click 🔀 New Game.
  3. Click any tile adjacent to the empty space to slide it into the gap.
  4. Keep sliding tiles until the image is fully reconstructed!

Frequently Asked Questions

No — exactly half of all possible configurations of the 15-puzzle are solvable. This calculator generates puzzles by starting from the solved state and performing random valid moves, which guarantees every generated puzzle has a solution.

No. Your image is processed entirely in your browser. Nothing is uploaded to any server and no data leaves your device.

Ad · Responsive