🧩

Sliding Puzzle

Slide tiles into the correct order - the classic 15-puzzle!

Click a tile adjacent to the blank to slide it.
Moves
0
Best (3×3)
-
Best (4×4)
-
Grid Size

About Sliding Puzzle Online — Sliding Puzzle Online & 15 Puzzle Game

The sliding puzzle is one of the oldest and most beloved mechanical puzzles in the world. Also known as the 15-puzzle (on a 4×4 grid) or the 8-puzzle (on a 3×3 grid), the goal is simple: slide numbered tiles one at a time into the blank space until they are arranged in order from 1 to the last number, with the blank tile sitting in the bottom-right corner. The fewer moves you use, the better your score. This online version lets you play sliding puzzle free in your browser with no download or sign-up required.

The 15-puzzle has a rich history. It was invented by Noyes Chapman in 1874 and quickly became a worldwide sensation. Puzzle entrepreneur Sam Loyd famously offered a $1,000 prize for solving a version with tiles 14 and 15 swapped — a configuration that mathematicians William Johnson and William Story proved in 1879 was completely unsolvable. Exactly half of all possible arrangements are solvable, and this game always generates one of those valid configurations, so you can always reach the solution with enough moves.

Controls

  • Click a tile — Click any numbered tile directly adjacent to the blank space to slide it into the empty spot.
  • Arrow keys — Press an arrow key to slide the tile that would move in that direction toward the blank.
  • Grid Size buttons (3×3 / 4×4) — Switch between the 8-puzzle (3×3) and the classic 15-puzzle (4×4).
  • New Game — Shuffle and start a fresh solvable puzzle at any time.

How to Play Sliding Puzzle Online

The objective is to arrange all numbered tiles in ascending order — 1, 2, 3, and so on across each row — with the blank space in the bottom-right corner. You can only move a tile that is directly adjacent (horizontally or vertically) to the blank space. Click that tile or press the arrow key pointing toward the blank to slide it. The move counter in the sidebar tracks how many moves you have made. Solve the puzzle in fewer moves to beat your personal best. The 3×3 grid is a great place to learn the technique before tackling the more challenging 4×4 version.

Tips & Strategies

  • Solve the top row first. Lock tiles 1 and 2 into the top-left corners before touching the rest of the board. Tiles in solved rows should not be moved again.
  • Then solve the left column. After the top row is complete, work on placing the leftmost tile of each remaining row before filling in the rest of that row.
  • Use cyclic rotation for tricky positions. When two tiles need to swap in the same row or column without disturbing solved sections, rotate them through a cycle using the blank as a pivot.
  • Avoid disturbing solved sections. Every unnecessary move into a solved area costs extra moves to repair. Plan your path before committing to a slide sequence.
  • Master the 3×3 first. The 8-puzzle has far fewer possible states and is much easier to solve intuitively. Use it to practice the row-by-row strategy before moving to the 15-puzzle where the technique becomes essential.

Skills You Develop

Playing sliding puzzle online regularly exercises several important mental faculties. Spatial reasoning is central — you must visualize how tiles will move several steps ahead and plan a path without accidentally undoing progress. This kind of forward-planning thinking is closely linked to problem-solving ability in mathematics, programming, and strategic games.

The sliding puzzle also develops patience and systematic thinking. Novice players often make random moves hoping something improves; experienced solvers work methodically through a proven sequence. Learning to suppress impulsive moves in favor of a deliberate plan is a valuable cognitive habit that extends far beyond puzzle-solving into everyday decision-making.

Frequently Asked Questions

Yes — this game always generates a solvable configuration. Mathematically, exactly half of all possible tile arrangements are solvable. The game checks parity before presenting the puzzle, so you will never be given an impossible position. This parity rule was proven by William Johnson and William Story in 1879 and remains a foundational result in combinatorial mathematics.
The hardest possible 15-puzzle configuration requires 80 moves to solve with an optimal algorithm. Most randomly shuffled puzzles require between 50 and 70 moves for a perfect solution. A good human result is typically under 120 moves. On the 3×3 (8-puzzle), the maximum optimal solution length is 31 moves, making it far more manageable for beginners.
The most reliable human strategy is the row-by-row method: solve the top row first, then the second row, and continue downward. For the last two rows, use a column-by-column approach for the left side. This avoids the need to memorize complex algorithms and works reliably for both the 8-puzzle and the 15-puzzle. Practice on the 3×3 grid to get comfortable before attempting the 4×4.
The 3×3 grid (8-puzzle) has only 9 positions and 181,440 solvable configurations, making it approachable for beginners. The 4×4 grid (15-puzzle) has 16 positions and over 10 trillion solvable configurations, requiring more systematic technique. Start with 3×3 to learn the strategy, then challenge yourself with 4×4 once you are comfortable with row-by-row solving.
Yes, completely free. No account, no download, no subscription required. The game runs entirely in your browser and your best move counts for both the 3×3 and 4×4 grids are saved automatically using browser local storage, so your records persist across sessions on the same device.
Yes. You can tap tiles to slide them on any touchscreen device. The puzzle scales to fit smaller screens automatically. Arrow key controls are available on desktop keyboards. The game works in all modern browsers on phones, tablets, and desktop computers without any installation needed.
Regular sliding puzzle practice strengthens spatial reasoning, forward planning, and working memory. You must hold the current board state in mind while planning several moves ahead — a form of mental simulation that exercises the same brain regions used in chess, navigation, and problem solving. The puzzle is also used in computer science as a benchmark problem for search algorithms like A* and breadth-first search.
Yes. The arrow keys slide the tile that would move in that direction toward the blank space. For example, pressing the Up arrow slides the tile directly below the blank upward into the empty spot. This can be faster than clicking individual tiles and gives you precise control when planning multi-step sequences. Arrow key support works on desktop browsers.