We use cookies.This website uses essential cookies to operate core features. With your consent, we also use analytics cookies to understand traffic and improve the service. For more details, see our .
If this tool helped you, you can buy us a coffee ☕
Play the classic Sokoban puzzle game online with multiple levels, keyboard and touch controls, move and push tracking, unlimited undo, and instant restarts.
Move with the arrow keys, WASD, or the direction buttons. Plan before you push.
Sokoban Challenge
Plan a route, push every box onto a goal, and avoid trapping boxes in corners.
Boxes
1
Par pushes
1
How to play
Sokoban is a classic puzzle game built around spatial reasoning and route planning. Move through the warehouse and push every crate onto a marked target to complete each level. The rules are simple, but crates can only be pushed—not pulled. One wrong move can trap a crate in a corner or block an essential path. This game includes a collection of lightweight levels that progress from easy to challenging, making it ideal for learning the rules, sharpening your planning skills, or enjoying a quick brain workout.
The board clearly marks walls, floors, targets, crates, and the player while tracking your moves and pushes in real time. Choose any available puzzle from the level list, then continue to the next one after completing the current level. Use the arrow keys or WASD on a computer, or the on-screen directional controls on a phone or tablet. If you make a mistake, you can undo multiple moves or restart the current level instantly. Each puzzle also shows a reference push count so you can compare solutions and find a more efficient route, though you are free to explore using as many moves as needed.
Move the player up, down, left, or right. You can walk onto any open floor tile. When you move toward a crate, it is pushed one square in the same direction if the tile beyond it is empty or contains a target. The move is blocked if that tile contains a wall, another crate, or the edge of the map. The move counter increases after every valid player movement, while the push counter increases only when a crate changes position. The level is completed as soon as every crate is on a target.
Dots mark the target locations. A crate changes color when placed on a target, making your progress easy to see. Players can walk across targets, and targets may remain temporarily empty. You complete the puzzle only when every crate is positioned on a target. Walls and areas outside the map cannot be entered. The Next Level button becomes available after you finish the current puzzle. After completing the final level, you can replay any level or try to solve it with fewer pushes.
Before pushing a crate, check whether the player will still have room to stand behind it and whether other crates could block the path near its target. Handle crates along walls or in tight spaces early, since they usually have fewer ways to change direction. Avoid pushing crates into corners that do not contain targets—you cannot stand outside a wall to pull them back. When several crates must use the same narrow passage, plan the order in which they should pass. If you are unsure, reposition the player and inspect the board before committing to a push.
Undo restores the player and every crate to their positions before the previous move, then updates the move count accordingly. If that move pushed a crate, the push count is also reduced. Use undo to correct an accidental input or compare different routes. The reference push count is a helpful target, not a time limit or required score, and your solution may differ from the reference. Restart returns the current level to its original layout and clears its move history. Selecting another level also loads that puzzle from its starting state.
All level data and game progress are processed locally in your browser. Your moves, scores, and device information are not uploaded. No account is required, and the game includes no multiplayer mode or external chat. The responsive board works on desktops, phones, and tablets; on narrow screens, you can scroll horizontally to view the full map. Directional controls have clear text labels, and board tiles include accessible descriptions for walls, crates, targets, and the player. Keyboard users can access every core game action with the arrow keys.
If a control does not move the player, a wall is probably blocking that direction or there is no open space beyond the crate. The completion message appears only when all crates are on targets at the same time; placing a single crate correctly will not end the level. You do not need to save before switching levels, and you can select any available puzzle again from the list. To compare solutions, focus on the push count: walking around adds moves but does not necessarily change the essential crate route.
Beginners may find it helpful to divide the board into three parts: walkable areas, crate routes, and paths the player can use to get behind each crate. When a target sits beside a wall, the crate usually needs to approach it from the correct direction early, since it may be impossible to adjust sideways later. When several targets are adjacent, the nearest crate is not always meant for the nearest target. Keeping a route open to the farthest target is often more important. Before every push, check whether the player will be able to reach the back of the crate again to avoid deadlocks.