Games tool

Free Sliding Puzzle — 3×3, 4×4 and 5×5

Slide numbered tiles into the empty space until the numbers are in order. Choose a board size and track your moves.

Runs in your browser. No upload.

Slide numbered tiles into the empty space until the numbers are in order. Every puzzle is shuffled with legal moves and can be solved.

About this tool

Free Sliding Puzzle — 3×3, 4×4 and 5×5 made simple.

Every board starts solved and is shuffled only with legal moves, so each generated game can be solved. Play and moves stay in this browser tab; they are not saved or uploaded.

Guide

Using Free Sliding Puzzle — 3×3, 4×4 and 5×5

The Sliding Puzzle is a game with numbered tiles on a square board and one empty space. You slide tiles that touch the gap into it until the numbers run in order, with 1 first and the gap in the bottom right corner. You can pick a 3 by 3, 4 by 4 or 5 by 5 board. Each new puzzle is mixed by making legal moves backwards from the solved board, so it can always be solved. There is no timer, hint or solver.

How to use it

  1. Choose a board size: 3 × 3, 4 × 4 (the starting size) or 5 × 5. Changing the size at once starts a new puzzle and sets the move counter back to 0.
  2. Click or tap a numbered tile that touches the empty space, above, below, left or right of it. The tile slides into the gap and the move counter goes up by one.
  3. To play with the keyboard, move the focus to the empty space and press an arrow key. The tile on that side of the gap slides into it, and the focus jumps to the new gap.
  4. When the numbers are in order, the page says the puzzle is solved and shows your move count. Press New puzzle for another board of the chosen size.

Worked examples

One move from solved

You enter
Size
3 × 3
Board
1; 2; 3; 4; 5; 6; 7; 0; 8
Tile pressed
the 8
You get
Board
1; 2; 3; 4; 5; 6; 7; 8; 0
Solved
yes

The 0 stands for the empty space. The 8 touches the gap on its left, so it slides left, and now the numbers run from 1 to 8 with the gap last. That is the solved board.

Run through the tool’s own code.

A tile that does not touch the gap

You enter
Size
3 × 3
Board
1; 2; 3; 4; 5; 6; 7; 0; 8
Tile pressed
the 1
You get
Move
none
Board
1; 2; 3; 4; 5; 6; 7; 0; 8

Only the tiles next to the gap can move, which here are the 5, the 7 and the 8. The 1 is in the top left corner, far from the gap in the bottom row, so nothing happens and the move counter stays the same.

Run through the tool’s own code.

Two swapped tiles cannot be solved

You enter
Size
3 × 3
Board
1; 2; 3; 4; 5; 6; 8; 7; 0
You get
Can be solved by legal moves
no

Swapping just two tiles on a solved board cannot be undone by sliding. A parity count in the tool's own code reports it as unsolvable. The game never makes such a board, because it only mixes by legal slides.

Run through the tool’s own code.

When it helps

  • Take a short break with a game that trains you to plan a few moves ahead.
  • Practise the classic 8 puzzle on the 3 × 3 board and the 15 puzzle on the 4 × 4 board.
  • Practise putting numbers in order while thinking about space and moves.
  • Challenge yourself to finish in fewer moves, since the page counts every slide.

Limits to keep in mind

  • There are only three board sizes, 3 × 3, 4 × 4 and 5 × 5, and the tiles are numbers only. You cannot enter a board of your own or replay the same puzzle.
  • There is no timer, hint, undo or solver. The counter adds one for every slide, including slides that undo the last one and any slides you make after the puzzle is solved.
  • Nothing is saved. Reloading the page makes a new random puzzle, and your board and move count are lost.
  • The mix is 24 legal moves for each cell on the board, 216 for 3 × 3, 384 for 4 × 4 and 600 for 5 × 5, never stepping straight back. The tool does not rate how hard a board is or show the shortest solution.

Tips

  • Many players fix the top row first, then the next one, and leave the last two rows for the end.
  • Look at where the gap is before each click. Sliding a tile back and forth only adds to your move count.
  • Use the keyboard if a mouse is hard to use. After each move the focus goes to the gap, so the next arrow key works at once.

Sources

Common questions

About Free Sliding Puzzle — 3×3, 4×4 and 5×5.

Can every puzzle be solved?

Yes. The board starts solved and is mixed only with legal slides, so a way back always exists. Putting the tiles in at random would not be safe, because half of all arrangements cannot be solved by sliding.

What is the goal of the puzzle?

Put the tiles in order from 1 up, reading left to right and top to bottom, with the empty space in the bottom right corner. When the board looks like that, the page announces that the puzzle is solved and gives your number of moves.

What are the 8 puzzle and the 15 puzzle?

They are the same game on different boards. The 3 × 3 board has 8 tiles and is called the 8 puzzle. The 4 × 4 board has 15 tiles and is the classic 15 puzzle. The 5 × 5 board here has 24 tiles.

How well is the board mixed?

The tool makes 24 random legal moves for every cell, which is 216, 384 or 600 moves, and it does not step straight back. It does not check how hard the resulting board is, so some boards may feel easier than others.

How do I play with the keyboard?

Press Tab to reach the board, then use the arrow keys. With the focus on the empty space, an arrow key picks the tile on that side and slides it into the gap. After a move the focus jumps to the new empty space, so you can keep pressing arrows.

Does the game save my progress or send it anywhere?

No. Play and moves stay in this browser tab. They are not saved or uploaded, so reloading the page makes a new puzzle and clears the count. There is nothing to sign in to.

Is there a hint or a solver?

No. The game has no hints, solver, timer or undo. You can only click tiles and press New puzzle. If you get stuck, change the board size or start a new puzzle, and aim to use fewer moves next time.

How do I use Sliding puzzle?

Slide numbered tiles into the empty space until the numbers are in order. Choose a board size and track your moves.

Is my data uploaded to a server?

No. This tool runs locally in your browser. Your input is not uploaded.