Maze
Play Maze free in your browser. No download and no sign-up: guide the blue marker from the green start through winding passages to the golden exit. Three board sizes, keyboard or swipe controls, step-by-step hints and your best time saved for each level.
A maze is one of the oldest puzzles there is — a single winding path hidden inside a grid of walls. Every new game builds a fresh labyrinth with exactly one route from start to finish, so there are no dead-end loops that trap you forever; wrong turns simply cost time. Use the walls as clues, retrace when you need to, and reach the exit as fast as you can.
Why Play Maze Here
Everything runs right in your browser. There's no app to install and no account to create — pick a size and start moving. It plays the same on a phone, tablet or desktop, and your best time for each difficulty is stored locally.
Choose Easy (11×11), Medium (21×21) or Hard (31×31). Move with arrow keys, WASD, on-screen direction buttons or swipe on touch screens. Tap Hint when you're stuck and the next step on the shortest path glows amber — one step at a time, so you still solve the puzzle yourself.
The Rules in One Minute
You start in the top-left corner; the exit is the bottom-right corner marked with a flag. Move one cell at a time through open passages — you cannot walk through walls.
The maze is a perfect labyrinth: there is exactly one path between any two points, so every wrong branch eventually ends and you can backtrack. Reach the exit and you win; the timer keeps running until you do.
How Mazes Are Built
Each puzzle is generated with a recursive backtracker that carves passages through a solid grid, removing walls between cells until every cell is reachable. The result is a different layout every time, with long corridors, tight turns and occasional wide open areas.
Because the generator creates a perfect maze, the shortest path is unique for that layout — our hint uses breadth-first search to find it and highlights only the very next cell, not the whole route.
Strategy for Beginners
Follow one wall — the classic left-hand or right-hand rule — and you will eventually reach the exit in any perfect maze, though it may not be the fastest route.
When you're lost, backtrack to the last junction you remember and try the other branch. Use hints sparingly on hard boards when a junction looks identical to one you saw before. On large mazes, note distinctive corners or long straight runs so you don't circle the same area twice.
Tips to Improve Faster
- Use arrow keys on desktop; swipe in the direction you want to move on mobile.
- The start is top-left (green tint); the exit is bottom-right (flag icon).
- Wrong paths end in dead ends — backtrack instead of guessing through walls.
- Hints show only the next step on the shortest path, not the full solution.
- Medium and Hard boards reward remembering which branches you already cleared.
- Beat your best time on the same size before moving up a difficulty.
Frequently Asked Questions
How do you win?
Move your marker to the exit cell in the bottom-right corner. The timer stops when you arrive and your time is saved if it's a new best for that difficulty.
Is every maze solvable?
Yes. Each maze is a perfect labyrinth with exactly one path from start to exit, so you can always get there by exploring and backtracking.
What do the hints do?
Hint runs a shortest-path search from your current cell and highlights the next step you should take. It does not reveal the entire route.
What sizes are available?
Easy is 11×11, Medium is 21×21 and Hard is 31×31. Larger boards take longer to solve and offer more junctions to remember.
Can I play on my phone?
Yes. Swipe up, down, left or right on the maze to move, or use the on-screen direction pad below the board.