← Arcade

Sliding Puzzle

Slide to solve

About the Sliding Puzzle

The Sliding Puzzle — also called the 15-puzzle, the 8-puzzle, or a sliding tile puzzle — is one of the most recognisable logic games ever invented. A grid of numbered tiles is scrambled, one space is left empty, and your job is to slide tiles one at a time until the board is back in order. There is no luck involved: every move is entirely your own, and every game has a solution.

The puzzle dates back to the 1880s, when it became a worldwide craze under the name "The Fifteen Puzzle". Mathematicians spent decades analysing it, and it remains a favourite today in everything from puzzle books to phone games. Its appeal is that the rules take two seconds to learn, but the planning needed to solve a random 4×4 board is genuinely demanding.

This free online version runs instantly in your browser with no download and no sign-up. It supports both the classic 4×4 (15-puzzle) and the easier 3×3 (8-puzzle), and you can choose between Picture mode — where you rebuild a randomly generated sunset or night-sky artwork — and Numbers mode, where the tiles are simply numbered 1 upward. Every scramble is guaranteed solvable, and your best score for each board size is saved locally.

How to play the Sliding Puzzle

  1. Choose a board. Pick 3×3 for the easier 8-puzzle, or 4×4 for the classic 15-puzzle. Switch between Picture and Numbers modes at any time using the buttons below the board.
  2. Slide a tile. Click or tap a tile in the same row or column as the empty space to slide it. Every tile between the one you tapped and the gap shifts by one square, so a single tap can move several tiles at once.
  3. Use the keyboard for speed. On a desktop, use the arrow keys or WASD to slide the tile next to the empty space into it. Press R to reshuffle the board.
  4. Solve the puzzle. Arrange the tiles in numerical order from 1 to 8 (3×3) or 1 to 15 (4×4), with the empty space in the bottom-right corner. When the last tile locks into place, the puzzle is solved and your time and move count are shown.

Scoring and board sizes

Sliding Puzzle tips and strategy

Why the sliding puzzle is good for your brain

The sliding puzzle is one of the classic workouts for spatial reasoning. Every move forces you to visualise the board several steps ahead, hold the position of multiple tiles in your head, and plan a sequence that moves one piece without disturbing the rest. That is the same kind of forward planning used in chess and checkers, but in a simpler, more tactile form.

Solving the 15-puzzle also teaches patience. The puzzle cannot be rushed — a careless move undoes twenty seconds of progress — and the discipline required to slow down and think before you tap is one of the most valuable habits any puzzle trains. It is why the sliding puzzle has stayed in classrooms, puzzle books and phone apps for over 140 years.

Sliding Puzzle FAQ

Is the sliding puzzle always solvable?

Yes. The game generates only solvable permutations for both the 3×3 and 4×4 grids, so every scramble can be solved. There is no way to end up with an unsolvable board.

What is the difference between the 8-puzzle and the 15-puzzle?

The 8-puzzle is the 3×3 version with tiles numbered 1 to 8 and one empty space, and it is much easier. The 15-puzzle is the classic 4×4 version with tiles numbered 1 to 15 and one empty space, and it takes considerably more planning.

What is the best strategy for the 15-puzzle?

The most reliable method is to solve row by row from the top. Get the first row and the first column of the remaining rows correct, then finish the remaining 2×3 block. This is the method experienced 15-puzzle solvers use for every board.

Can I use keyboard controls?

Yes. Use the arrow keys or WASD to slide the tile next to the empty space into it. Press R to reshuffle the board at any time. The board is also fully playable with a mouse, trackpad or finger on a touchscreen.

How do I slide several tiles at once?

Click or tap any tile in the same row or column as the empty space, not just the adjacent one. Every tile between that tile and the gap slides by one square, so a single tap can move two, three or more tiles.

Does the game track my best score?

Yes. The fewest number of moves you have taken to solve a board is saved locally for each grid size separately — one best for 3×3 and one for 4×4 — and shown in the score strip above the board.

What is Picture mode?

In Picture mode the board shows a randomly generated sunset or night-sky landscape instead of numbers. Solving the puzzle rebuilds the picture. You can switch between Picture and Numbers modes at any time using the mode buttons below the board.

What is a good number of moves for the 15-puzzle?

The optimal solution to a random 4×4 board averages around 52 moves. Anything under 80 is a strong solve for a casual player, and expert solvers routinely finish under 100. The very hardest boards need about 80 moves of optimal play.

Can I play the sliding puzzle on my phone?

Yes. The board scales to fit the screen and is fully tap-friendly, so it plays beautifully on phones and tablets. Tapping a tile in the empty space's row or column slides it smoothly into place.

Does the sliding puzzle need a download?

No. The sliding puzzle is built with plain HTML, CSS and JavaScript and runs directly in any modern browser. There is no download, no install and no signup.

More free browser games

Enjoyed the Sliding Puzzle? Try the rest of the Arcade collection — all free, all playable in your browser, no download required.