🧩 Sliding Puzzle

Moves: 0
Time: 0:00
Best: -

About Sliding Puzzle

Sliding Puzzle is a free puzzle game: slide tiles into the empty space until the numbers are back in order.

The sliding puzzle, also known as the 15 puzzle, is a grid of numbered tiles with one empty space. You slide tiles into the gap until the numbers run in order from 1 to the last tile, with the empty space in the bottom-right corner.

Choose a 3×3, 4×4 or 5×5 board. Every shuffle here is made by random legal slides from the solved board, so each puzzle can always be solved. The game counts your moves and your time.

3
BOARD SIZES
15
TILES ON THE 4×4 BOARD
31
MOST MOVES NEEDED ON 3×3
80
MOST MOVES NEEDED ON 4×4

How to play Sliding Puzzle

  1. Pick a board size: 3×3, 4×4 or 5×5.
  2. Tap or click a tile next to the empty space to slide it in. Tapping a tile further along the same row or column slides the whole line of tiles.
  3. On a keyboard, the arrow keys slide a tile in that direction into the empty space.
  4. Put the tiles in order from 1 upward, left to right and top to bottom, with the empty space in the bottom-right corner.
  5. Your moves, time and best result for each board size are shown above the board.

Sliding Puzzle tips and strategy

Frequently asked questions
Is every sliding puzzle solvable?
Yes, in this game every puzzle can be solved. The board is shuffled with random legal slides starting from the solved position, so it can always be slid back.
Are some random sliding puzzles impossible?
Yes. If you swap two tiles by hand, exactly half of all possible arrangements cannot be solved. That is why this game shuffles with real slides instead of placing tiles at random.
How do you solve a sliding puzzle?
Solve it row by row from the top, then finish the last two rows column by column. The last 2×2 block is solved by rotating the tiles around the empty space.
What is the 15 puzzle?
It is the 4×4 version of the sliding puzzle, with 15 numbered tiles and one empty space. It became popular in the 1880s.
How many moves does it take?
A well-played 3×3 puzzle needs at most 31 moves with perfect play, and a 4×4 puzzle at most 80. Casual players usually take many more, and that is fine.
Can I slide more than one tile at a time?
Yes. Tap a tile in the same row or column as the empty space and the whole line slides together. Each tile moved counts as one move.
Does it work on mobile?
Yes. Tap a tile to slide it. The board scales to fit your screen.
Are my best scores saved?
Yes. Your fewest moves and best time for each board size are saved in your browser on this device.