sw-tool

Sliding Puzzle

0 moves · 0s

Tap a tile next to the gap to slide it; tap further along the row to slide several at once. Arrow keys work too. Tiles in the right place turn orange.

Slide the numbered tiles into order in this classic sliding puzzle. Choose 3×3, 4×4 (the 15 puzzle) or 5×5, track moves and time, and save your best score. Every shuffle is solvable.

Tap a tile next to the gap to slide it. Put the numbers in order to win.

How to play the sliding puzzle

Tap any tile in the same row or column as the gap and it slides over; tap a tile further away to slide several at once. Arrow keys work on desktop. Tiles in the right place turn orange.

How to solve the 15 puzzle

Solve the top row, then the next, until two rows remain; finish those two rows column by column from the left. For the last two tiles of a row, park one tile beside its spot and slide them in together.

Number puzzle sizes

3×3 (the 8 puzzle) takes a few minutes, 4×4 is the classic 15 puzzle, and 5×5 (24 puzzle) is a real challenge. Your fewest moves are saved for each size.

Always solvable

Half of all random tile layouts can't be solved. We shuffle by moving the gap from the solved position, so every puzzle can be finished.

The 1880 puzzle craze

The 15 puzzle was invented in the 1870s and became a craze in the US and Europe in 1880. Puzzle writer Sam Loyd later claimed he offered $1,000 to anyone who could swap the 14 and 15 tiles. Nobody could, because that position is impossible: exactly half of all tile arrangements can't be solved, which mathematicians proved in 1879.

FAQ

Where is my best score saved?
In this browser on this device.
Does it work on phones?
Yes. Just tap tiles.
Can I share my time?
When you finish, tap Share result.

Free Online Games →