Sliding Puzzle
Slide the tiles to recreate the picture — with your own image!
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
- Optionally upload an image to use as the puzzle picture.
- Choose a grid size (3×3, 4×4, or 5×5), then click 🔀 New Game.
- Click any tile adjacent to the empty space to slide it into the gap.
- Keep sliding tiles until the image is fully reconstructed!