You are the warehouse keeper: push every crate onto a green goal square. Crates can only be pushed, never pulled, and only one at a time, so one careless push can trap a crate in a corner. Play 60 computer-checked levels or paste in any level in the standard text format.
Last updated:
LevelStarter 1
Moves0
Pushes0
On goal0/0
Fewest pushes–
Best (moves / pushes)–
Level solved!
Level sets
0 / 60 solved
★ = solved with the fewest possible pushes. Progress is saved in this browser only.
Play your own level (standard text format)
Advertisement
Advertisement
How to use the Sokoban
Find the goals. Green rings mark the goal squares. There is one goal for every crate.
Walk into a crate to push it. Use the arrow keys or WASD, swipe on a phone, or tap the square next to you. You can only push, never pull, and never two crates at once.
Plan before pushing. A crate pushed into a corner that is not a goal can never move again and turns red. Press Undo to take the push back.
Tap any free square to walk there along the shortest path without pushing anything.
Cover every goal to solve the level. Try to match the Fewest pushes number, then go to the next level or pick one from the level sets.
Sokoban strategy tips
Never push a crate into a corner unless that corner is a goal. A cornered crate can't be pushed again, so the level becomes impossible.
Watch the walls. A crate pushed against a wall can only slide along that wall. If there is no goal on that stretch of wall, the crate is lost even though it does not look trapped yet.
Avoid 2×2 blocks. Four crates (or crates and walls) forming a square can't be moved. The same is true for two crates side by side against a wall.
Fill the deepest goals first. Goals in dead-end pockets are hard to reach once other crates are in place, so push crates there early.
Leave yourself room to walk around. You often need to get to the other side of a crate to push it back. Keep a path open behind the crates you are working on.
Undo freely. There's no penalty for undoing, and your saved best result only counts the final solution.
Level sets
All 60 levels were made for this page. The generator places goals in a small room, starts with every crate on a goal, and searches all positions it can reach by pulling crates backwards. It keeps the position that needs the most pushes to solve, which guarantees every level has a solution.
Set
Levels
Crates
Fewest pushes
Starter
15
2
6 – 12
Easy
15
2 – 3
10 – 15
Medium
15
3 – 4
15 – 20
Hard
15
3 – 5
21 – 29
Sokoban text format
Use these symbols to paste your own levels. Each line of text is one row of the board.
Symbol
Meaning
#
Wall
@
Player (warehouse keeper)
+
Player standing on a goal
$
Crate
*
Crate already on a goal
.
Goal square
space, - or _
Floor
Frequently asked questions
What are the rules of Sokoban?
You move one square at a time up, down, left or right. When you walk into a crate, you push it one square, as long as the square behind it is empty floor. You cannot pull crates, push two crates in a row, or walk through walls. The level is solved when every crate is on a goal square.
What is the difference between moves and pushes?
Every step you take is a move. A push is a move that also shifts a crate. Sokoban players usually rank solutions by pushes first and moves second, because pushes are the hard part. This game saves your best result in that order.
Are all levels solvable?
Yes. Each of the 60 built-in levels was generated by starting with every crate on a goal and pulling crates backwards, then checked with a full search. The Fewest pushes box shows the exact minimum number of pushes for that level.
How do I know if I am stuck?
The most common dead end is a crate pushed into a corner that is not a goal: it turns red and can never move again. Crates pushed flat against a wall with no goal along that wall are also stuck. When that happens, press Undo until the crate is free.
Can I play classic Sokoban level collections?
Yes. Many level collections are shared in a standard plain-text format where # is a wall, @ the player, $ a crate, . a goal, * a crate on a goal and + the player on a goal. Open Play your own level, paste one level and press Play custom level. The game checks that it is closed and has as many goals as crates.
Who invented Sokoban?
Sokoban was created by Hiroyuki Imabayashi and first published in Japan in 1982. The name means warehouse keeper in Japanese. The rules are simple enough that thousands of fan-made levels have been designed since.
Does it work on phones?
Yes. Swipe on the board to step in a direction, use the on-screen arrow buttons, or tap a square to walk there. The board scales to fit your screen, and progress is saved in your browser.
Are all the tools on FreeToolCabin tested for quality and accuracy?
Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.