PublicSoftTools

Sliding Puzzle (15 Puzzle)

Play the classic sliding tile puzzle free in your browser. Slide the scrambled numbered tiles back into order on a 3×3, 4×4, or 5×5 grid, with a move counter, timer, and best-score tracking. Every scramble is guaranteed solvable. No download, no signup.

Moves0
Time0:00
Best

Slide the numbered tiles into order — 1 to 15 — with the empty square last. Tap a tile next to the gap, or use the arrow keys.

How to Play the Sliding Puzzle

  1. 1Pick a board size — 3×3, 4×4, or 5×5.
  2. 2Tap a tile next to the empty space to slide it in.
  3. 3Keep sliding to arrange the tiles in numerical order.
  4. 4Solve it in as few moves as you can to set a best score.

The Classic 15 Puzzle

The sliding puzzle is one of the oldest and most enduring mechanical puzzles in the world. Its most famous form, the 15 puzzle, sparked a genuine international craze in the 1880s — newspapers ran contests, and it was as much a fad as any modern viral game. The appeal has never faded because the rules are trivially simple yet the solving is a real, satisfying challenge that rewards planning and spatial reasoning.

A fascinating quirk of the puzzle is that exactly half of all possible tile arrangements are impossible to solve. That mathematical fact once fuelled an unwinnable-puzzle prize hoax, and it is why our version always scrambles from a solved board using legal moves — so every puzzle you get can definitely be completed.

How to Solve It: The Layered Method

The reliable way to solve any sliding puzzle is to work in layers rather than trying to place everything at once. Start by getting the entire top row into place, then the left column. Once those are done, ignore them completely — the puzzle has effectively shrunk to a smaller grid. Repeat the process (next row, next column) until only a 2×2 block is left, which you simply rotate into its final order. The one skill to learn is the little rotation sequence for setting the last two tiles of a row or column, which locks them in without disturbing what you have already solved.

Getting a Better Move Count

Once you can solve the puzzle reliably, the next challenge is efficiency. The biggest gains come from thinking a few slides ahead so you position the empty space where it needs to be before you move a tile, rather than shuffling back and forth. Avoid disturbing rows and columns you have already completed, and try to plan whole sequences instead of reacting one tile at a time. Your best move count is saved per board size, giving you a clear target to beat.

Tips for Solving Faster

Solve in layers

Finish the top row and left column first, then treat the rest as a smaller puzzle. Repeat until solved.

Lock what's done

Once a row or column is correct, avoid moves that disturb it. Work only in the unsolved area.

Learn the corner trick

The last two tiles of a row need a small rotation to place without breaking the row. Practise it.

Position the gap first

Move the empty space to where you need it before sliding a target tile, instead of trial and error.

Start on 3×3

Master the method on the easy 8-puzzle, then scale up to 4×4 and 5×5 where the same steps apply.

Plan ahead

Look two or three slides forward. Reacting one tile at a time wastes moves and time.

Frequently Asked Questions

How do you play the sliding puzzle?

The board is a grid of numbered tiles with one empty space. Any tile directly next to the empty space can slide into it, moving the gap to where the tile was. By making a series of these slides you rearrange the scrambled tiles back into numerical order — 1 through 15 on the classic 4×4 board — with the empty space in the bottom-right corner. You can slide tiles by tapping them or by using the arrow keys.

What is the 15 puzzle?

The 15 puzzle is the most famous version of the sliding puzzle: a 4×4 grid with fifteen numbered tiles and one empty square. It was a worldwide craze in the 1880s and remains the classic form of the game. This tool also offers an easier 3×3 version (the 8 puzzle) and a harder 5×5 version (the 24 puzzle) so you can pick your challenge.

Is every scramble solvable?

Yes. Only half of all possible tile arrangements can actually be solved, so a random shuffle can produce an impossible board. To avoid that, our puzzle scrambles by starting from the solved state and making hundreds of random legal slides. Because every move is reversible, the result is always guaranteed to be solvable — you will never be stuck with an impossible puzzle.

How do you solve a sliding puzzle?

The standard method is to solve it in layers. First place the tiles of the top row in order, then the leftmost column, which effectively shrinks the puzzle to a smaller grid; repeat until only a small 2×2 area remains, which you rotate into place. The trickiest part is the last two tiles of each row or column, which need a specific rotation trick — but once you learn the layered approach, any size becomes manageable.

What is a good number of moves?

It depends on the scramble, but for the 4×4 15 puzzle, skilled solvers typically finish a random board in roughly 40 to 80 moves, and the hardest possible position needs 80 moves. Your best move count for each board size is saved in your browser, so you have a personal target to beat with more efficient solving.

Is it free and does it work on mobile?

Yes. The sliding puzzle is completely free with no signup and no ads, and it runs entirely in your browser, so it works offline once loaded. The board is fully touch-friendly — just tap a tile next to the gap to slide it — and it scales to fit phones and tablets.

Want the full solving method? Read our guide on how to solve a sliding puzzle.