📊 Statistics Dashboard
🏅 Achievement Gallery
Unlock all 100 achievements as you progress through the Sliding Puzzle campaign.
What is a Sliding Puzzle?
A sliding puzzle is a grid of numbered or pictured tiles with exactly one space left empty. The only legal move is to slide a tile adjacent to that empty space into the gap, one step at a time, until the tiles read in correct order — or, in image mode, until a complete picture is reassembled. There's no shuffling by hand and no separate pieces to lose; every configuration is reached and solved using the same simple rule, which is exactly what makes the format so enduring. It rewards planning, not luck: because every move is fully visible and fully reversible, a careful player can always see exactly how close they are to a solved board.
This free HTML5 edition is a single self-contained page built with vanilla JavaScript, CSS Grid, and the Web Audio API — no plugins, frameworks, or external image downloads required. Every campaign level, theme, and sound effect ships inside the page itself, so once it has loaded you can keep sliding tiles with no internet connection at all.
History of the 15 Puzzle
The format traces back to the famous "15 Puzzle" craze of the late 1870s, a 4×4 sliding tile puzzle that swept the United States and Europe so thoroughly that employers reportedly banned it from workplaces. Its inventor is still debated, but its mathematical legacy is not: the 15 Puzzle became one of the first popular puzzles to be rigorously analyzed using group theory, since exactly half of all possible tile arrangements turn out to be mathematically unsolvable from any given starting position. That single insight — that shuffling by hand can produce an impossible board — is precisely why every puzzle in this game is generated by shuffling backward from a solved state using only legal moves, guaranteeing that whatever board you're handed can always be solved.
How to Play
Select a Mode
Choose Campaign to progress through 1,000 levels, or jump into Endless, Daily Challenge, Timed, Relax, or Kids mode.
Choose a Difficulty
Pick a puzzle size from a gentle 3×3 board up to an advanced 8×8 grid.
Slide Tiles
Click or tap any tile next to the empty space to slide it into the gap.
Arrange Correctly
Keep sliding until every tile — or every piece of the picture — sits in its correct place.
Fewer Moves, Better Score
Completing a puzzle in fewer moves and less time earns a higher star rating.
Use Hints Wisely
Hints and Move Suggestions are limited on harder tiers, so save them for genuinely tricky positions.
Earn Rewards
Every level pays XP, coins, gems, and up to three stars for efficiency.
Unlock Larger Boards
Levels unlock sequentially, growing from 3×3 to 8×8 as you climb the seven difficulty tiers.
Complete Daily Challenges
A fresh, seeded puzzle appears every 24 hours, separate from your campaign save.
Become a Grandmaster
Reach level 981 and take on the game's largest, fastest-timed boards.
Game Controls
🖥 Desktop
Click a tile to slide it, arrow keys move the empty space, Space to pause, R to restart, U to undo, F for fullscreen.
📱 Mobile
Tap any tile adjacent to the empty space to slide it, with on-screen buttons for pause, undo, and restart.
Puzzle Sizes
Board size scales directly with campaign tier: 3×3 for Beginner, 4×4 for Easy, 5×5 for Medium, 6×6 for Hard, 7×7 for Expert, and 8×8 for both Master and Grandmaster tiers. Larger boards don't just take longer to solve — they demand a genuinely different strategy, since the number of possible tile arrangements grows factorially with board size, and naive trial-and-error quickly becomes impossible past 5×5.
Number Puzzle vs Image Puzzle
Number Puzzle mode is the classic format: tiles numbered from one upward that must be arranged in ascending order around the empty space. Image Puzzle mode instead slices a full picture — generated procedurally from one of ten built-in themes, or from a photo you upload yourself — across every tile, so the numbers disappear and you're reconstructing a picture purely from color, edges, and shape continuity. Image mode is measurably harder at the same board size, because there's no explicit ordering to check against; your only reference is whether the picture looks right.
Campaign Mode
The 1,000-level campaign is organized into seven tiers, each introducing a genuinely new mechanic rather than just a bigger board. Beginner (1–100) uses a 3×3 grid with unlimited hints and unlimited undo so newcomers can experiment freely. Easy (101–250) moves to 4×4 with a basic timer and a real move counter. Medium (251–500) expands to 5×5 and introduces image puzzles and daily objectives. Hard (501–750) reaches 6×6 with limited undo and strict timers. Expert (751–900) climbs to 7×7 with advanced layouts and occasional tile-rotation twists. Master (901–980) uses a full 8×8 board with minimal hints and tournament-style scoring, and Grandmaster (981–1000) keeps the 8×8 size while tightening time limits to their most competitive level.
Daily Challenges
Every day brings one fixed, seeded puzzle in Daily Challenge mode, so every player faces exactly the same board that day — a fair way to compare solve times with friends. Logging in on consecutive days builds a streak that unlocks escalating rewards, from a small XP bonus on day one to a legendary reward on day seven, while Weekly Events and a Monthly Championship rotate in special themed boards for players chasing something new.
Timed Mode
Timed Mode adds a visible countdown to any puzzle size, rewarding players who can solve efficiently under pressure rather than only accurately. It pairs naturally with the Freeze Timer booster, which pauses the countdown for a short window — useful the moment you spot a tricky multi-step maneuver you need a few extra seconds to execute cleanly.
Scoring System
Your score combines a base value for solving the puzzle at all with bonus points for finishing in fewer moves than the level's estimated par and for finishing with time to spare. A perfectly efficient solve — at or under par with no undos used — earns the full three-star rating and the largest XP, coin, and gem payout.
Hint System
Requesting a hint highlights one tile that's a genuinely useful next move — not necessarily the only correct move, but one that reliably makes progress toward a solved board. Hints are unlimited on Beginner tier to support learning, then grow scarcer as the tiers get harder, mirroring how real solving skill should reduce your reliance on them over time.
Advanced Solving Techniques
Strong solvers work the board in layers rather than tile-by-tile at random. The standard approach is to fully complete the top row first, then the left column, reducing the remaining unsolved area by one row and one column at a time until only a small block remains, which is then solved using a short memorized sequence of moves. This layered method scales cleanly from a 4×4 board all the way to an 8×8 one, which is exactly why it's worth learning early rather than relying on trial and error as board sizes grow.
Winning Tips & Strategies
Benefits of Playing Sliding Puzzle
Logical Thinking
Every move has a visible, reversible consequence, making this an ideal format for practicing step-by-step logical reasoning.
Memory Improvement
Tracking which tiles are already placed correctly while solving the rest exercises working memory.
Pattern Recognition
Image puzzles in particular train your eye to spot continuity in color, edges, and shape.
Problem Solving
Layered solving methods teach a transferable approach to breaking large problems into smaller ones.
Strategic Planning
Because moves are fully visible in advance, planning several steps ahead is both possible and rewarded.
Better Concentration
Larger boards demand sustained focus across dozens of consecutive moves.
Brain Training
The escalating grid sizes provide a natural, low-pressure difficulty curve for daily cognitive exercise.
Decision Making
Choosing when to spend a limited hint or undo mirrors real resource-management decisions.
Educational Value
Number ordering and spatial reasoning make this an approachable early-learning puzzle format.
Family Entertainment
Kids Mode and small board sizes make this an easy game to enjoy across generations.
Stress Relief
Relax Mode removes all time pressure, turning the puzzle into a calm, meditative activity.
Casual Fun
Short, satisfying rounds make it easy to fit a quick puzzle into any spare minute.
Frequently Asked Questions
Related Games
Why the 15-Puzzle is Surprisingly Hard
At first glance a 4x4 grid of fifteen numbered tiles looks manageable -- after all, there are only fifteen pieces and a single empty space. But looks are deceiving. A fully scrambled 15-puzzle can be in any one of roughly 10.46 trillion distinct arrangements, and reaching the solved state from even the simplest-looking scramble can require more than 80 individual tile moves. The average optimal solution across all solvable states is about 52 moves, meaning that even a computer solving the puzzle perfectly will move tiles back and forth many more times than a beginner expects.
What makes the puzzle genuinely surprising is the solvability rule. Exactly half of all possible tile arrangements are mathematically unsolvable -- there is no sequence of legal slides that can ever reach the goal state from them. This was proved using group theory in 1879 by mathematicians William Woolsey Johnson and William E. Story, just a year after the puzzle became a sensation. The key insight is that every legal slide is an even permutation of the tile order; starting from a configuration that requires an odd permutation to solve means it will remain forever out of reach, no matter how many moves you try. This is why every puzzle in this game is generated by shuffling backward from a solved board using only legal moves, guaranteeing that whatever scrambled position you see is always solvable.
The 5x5 version -- the 24-puzzle -- raises the stakes considerably. It has over 15.5 septillion possible configurations, and finding the optimal solution in reasonable time requires highly specialized search algorithms. Even a modern computer may take minutes to find the absolute shortest path, which is part of why human speedsolvers focus on reliable near-optimal methods rather than mathematically perfect solutions.
How to Solve a Sliding Puzzle -- Step-by-Step Strategies
Whether you're tackling a 3x3 or an 8x8 board, experienced solvers use the same foundational strategy: work in layers from the outside in. Rather than trying to place individual tiles wherever they land, you systematically complete rows from top to bottom and columns from left to right, shrinking the unsolved area until only a small manageable block remains.
Step 1 -- Solve the Top Row First
Begin by placing tiles 1, 2, 3, and 4 (on a 4x4 board) into the top row. The trick for the last two tiles of any row is to use an indirect approach: temporarily move them out of the way, set up a rotation sequence, and swing them into position together. Trying to slot the last tile directly almost always dislodges the one before it.
Step 2 -- Solve the Left Column
Once the top row is locked, shift focus to the leftmost column below it (tiles 5 and 9 on a 4x4 board). The same principle applies: place the upper of the two tiles using a rotation sequence rather than a straight slide to avoid disturbing tiles already fixed in the top row.
Step 3 -- Reduce to a Smaller Puzzle
With the top row and left column done, you now have a smaller unsolved grid inside the original. On a 4x4 board this is a 3x3 block, which is significantly easier to navigate. Repeat the row-first, column-second pattern within that block until only a 2x2 corner remains.
Step 4 -- Finish the Corner with a Cycle
The last four tiles are solved using one of a small set of memorized cycling sequences. The most common is a simple clockwise or counterclockwise rotation that shifts three tiles around the corner without disturbing anything else. Learning two or three such sequences by feel, rather than having to think them through each time, is what separates an intermediate player from a fast one.
The Column-First Alternative
Some solvers prefer to complete the leftmost column first and then the top row, working the same layer-by-layer logic but transposed. Both approaches lead to the same final corner problem; choose whichever feels more natural. What matters is committing to one consistent method so you build muscle memory instead of improvising from scratch on every puzzle.
Common Beginner Mistakes to Avoid
Moving Tiles Randomly
Sliding tiles without a plan almost always undoes progress made earlier. Every move should have a reason -- even if that reason is just creating space for the next move.
Ignoring Already-Placed Tiles
A very common error is accidentally dislodging a tile that is already in its correct position. Before making a move, always check whether it will disturb a row or column you have already completed.
Thinking Only One Move Ahead
Most mistakes in sliding puzzles don't become visible until two or three moves later. Train yourself to think in sequences of at least three moves before committing to the first one.
Rushing the Last Two Tiles
The final tile of each row and column always requires an indirect approach. Trying to slide it directly into position almost always forces you to break the tile next to it. Use the rotation method instead.
Over-Relying on Hints
Hints tell you what to do next, but they don't build the pattern-recognition that makes future puzzles faster. Try to identify the right move yourself before reaching for the hint button.
Not Using Undo Strategically
The undo button is a powerful learning tool when used thoughtfully -- step back one move, analyze what went wrong, and try a different route. Using it to reverse random slides wastes its value.
Cognitive and Mental Benefits of Sliding Puzzles
Sliding puzzles have attracted attention from cognitive scientists for decades, and for good reason. The mental demands they place on a player map almost perfectly onto skills that psychologists consider core components of executive function.
Spatial Reasoning
Every move in a sliding puzzle requires you to mentally simulate the board state several steps into the future -- where will the empty space be after this slide? Where will the tile I need end up? This continuous act of mentally repositioning objects is one of the clearest exercises in spatial reasoning available in a simple game format. Research consistently links spatial reasoning ability to performance in mathematics, engineering, and architecture, making this a cognitively valuable pastime well beyond its entertainment value.
Working Memory
Solving a large board requires tracking which tiles are already locked into place, which are in progress, and which have not been addressed yet -- all while planning your next sequence of moves. This multi-layered tracking is a direct workout for working memory, the mental workspace that holds and manipulates information in real time.
Pattern Recognition and Attention
Image puzzles add a perceptual layer on top of the logical one: you must recognize color gradients, edge continuities, and texture patterns to know whether a piece is correctly placed. This engages the brain's pattern-recognition systems in a way that pure number puzzles don't, making the two modes genuinely complementary brain exercises rather than just cosmetically different.
Patience and Frustration Tolerance
Experienced players know that what looks like a setback -- having to temporarily move a tile away from its goal to make room for another -- is actually part of a deliberate plan. Learning to tolerate apparent regression in service of long-term progress is a mindset that transfers usefully into many real-world problem-solving contexts. The sliding puzzle's structure forces this lesson naturally.
Tips to Beat Your High Score
If you can solve the puzzle consistently and want to start competing against your own best times and move counts, these tactics will help you push further.
- Plan 3 to 5 moves ahead before your first slide. Spend five seconds scanning the board before touching anything. Identifying where the empty space needs to travel first saves far more time than it costs.
- Learn the standard 3x3 by heart. The 8-puzzle (3x3 board) has a small enough solution space that you can memorize efficient move sequences for most starting configurations with a little practice. Once it is automatic, your times will drop sharply.
- Practice on 4x4 before attempting 5x5. The jump in difficulty between grid sizes is non-linear. Become genuinely fast on 4x4 before moving up -- the layering strategy you learn there applies directly to every larger board.
- Use the hint feature sparingly. On timed modes, checking a hint costs you seconds. Reserve it for positions where you are genuinely stuck, and treat every hint as a lesson: understand why that move is correct, so you recognize the same pattern next time without help.
- Learn two or three key cycling sequences. The endgame of any large puzzle typically comes down to rotating a small group of tiles into place. Having two or three reliable four-to-eight-move sequences memorized means you can execute the finish quickly and confidently.
- Track your personal par. The game shows a par move count for each level. Keep a rough mental note of how close to par you are finishing -- this reveals which phase of the solve needs the most attention.
- Use Timed Mode for speed training. Relax Mode is great for learning the logic of the puzzle, but consistent exposure to a countdown trains you to commit to moves faster. Alternate between the two modes rather than defaulting to one.
- Study your worst runs, not just your best. After a particularly slow or high-move solve, identify the one decision point where you lost the most ground. Improving your worst moves has more impact on your average score than polishing your best ones.
Sliding Puzzle Competitions and the Speedsolving Community
The 15-puzzle has been a competitive event since the 1880s, when newspapers ran solving contests with cash prizes. In the modern era, competitive sliding puzzle solving has found a home in the broader speedcubing and mechanical puzzle community, which organizes timed competitions for dozens of puzzle types worldwide.
World-class human solvers of the 15-puzzle can complete a fully scrambled board in well under ten seconds, with elite competitors regularly finishing in five to seven seconds using optimized move sequences they have internalized through thousands of hours of practice. The worst-case optimal solution is 80 moves, but a skilled human solver using a well-chosen strategy can often approach that count even without computer assistance.
The community around sliding puzzles overlaps heavily with the speedcubing world -- many competitive Rubik's Cube solvers also pursue the 15-puzzle and other sliding variants, since the underlying skills (recognition of pattern states, execution of memorized move sequences, and efficient finger or mouse technique) transfer directly. Online leaderboards, Discord communities, and YouTube channels dedicated to sliding puzzle speedrunning have grown significantly in recent years, making it easier than ever to find opponents at your own level and learn from faster solvers.
If you find yourself consistently hitting the three-star rating on Expert and Master campaign levels, you already have the foundation to compete. Start tracking your solve times alongside the in-game timer, then compare against published community averages -- you may find you are already closer to competitive territory than you think.
Sliding Puzzle -- Frequently Asked Questions
Are all sliding puzzle configurations solvable?
No. For any n×n sliding puzzle, exactly half of all possible tile arrangements are mathematically unsolvable -- no sequence of legal slides can transform them into the goal state. This was proved in 1879 using the theory of permutations. In practice it means that if you randomly scatter tiles on a physical board, you have a 50% chance of starting from an impossible position. Every puzzle in this game is guaranteed solvable because shuffles are performed by applying random legal moves backward from the solved state, never by placing tiles arbitrarily.
What is the minimum number of moves to solve a 15-puzzle?
It depends entirely on the starting configuration. The theoretical worst case -- called God's Number for the 15-puzzle -- is 80 moves. The average optimal solution across all solvable states is approximately 52 moves. Many mildly scrambled positions can be solved in just 20 to 30 moves. Achieving consistently near-optimal solutions as a human requires learning a handful of efficient move sequences and recognizing common board patterns quickly.
How is the sliding puzzle different from a Rubik's Cube?
Both puzzles involve rearranging elements into a target configuration, but they differ in important ways. A sliding puzzle is two-dimensional and fully visible at all times -- every tile's position is always known. A Rubik's Cube is three-dimensional and involves rotating entire layers, many of which are hidden on back faces. Sliding puzzles use a single empty space as the movement mechanism, while a Rubik's Cube moves by rotating rows or columns of stickers simultaneously. Despite these differences, the mental skills -- planning sequences of moves, recognizing pattern states, and executing memorized algorithms -- transfer directly between the two puzzles, which is why many people who enjoy one also enjoy the other.
What grid size should beginners start with?
The 3x3 grid (the 8-puzzle) is the ideal starting point. It has only 181,440 solvable configurations, the maximum solution length is 31 moves, and most positions can be solved in well under 20 moves. The 3x3 board is small enough for a new player to see the entire position at a glance and plan two or three moves ahead without losing track. Once you can reliably solve the 3x3 in a couple of minutes, the jump to 4x4 feels natural. The 5x5 and larger boards are best approached only after the row-and-column layering strategy has become automatic on the 4x4.
How do I know if my puzzle is stuck or unsolvable?
Every puzzle in this game is guaranteed solvable. On a physical board or a different app, you can check solvability by counting inversions (pairs of tiles where a larger number appears before a smaller one in reading order, ignoring the empty space) and adding the row number of the empty space counting from the bottom. If that total is even the puzzle is solvable; if it is odd it is not. For a 3x3 board the puzzle is solvable if and only if the total number of inversions is even. If you feel stuck in this game, the Hint or Move Suggestion booster will always find a valid path forward.
Can I play with my own photo?
Yes. Use the "Use your own photo" upload button in the puzzle controls to select any image from your device. The game slices it across the tile grid automatically, turning your chosen picture into a fully playable image puzzle. Your photo is processed entirely in your browser and is never uploaded to any server.
Does the game work offline?
Yes. Once the page has loaded, all gameplay -- including campaign levels, image themes, sound effects, and progress saving -- works with no internet connection. Progress is saved to your browser's local storage and persists between sessions as long as you do not clear your browser data.
Share the Fun
Stay Updated
Get notified about new campaign chapters, seasonal themes, and fresh boosters.