Maze

Guide the red dot from the top-left corner to the green square. Every maze is new, and every maze has exactly one path.

⏱ 0Steps 0

Use the arrow keys, swipe on the maze, or tap the buttons.

How to play

You are the red dot in the top-left corner. The exit is the green square in the bottom-right corner. Move with the arrow keys (or W, A, S, D) on a computer, swipe across the maze on a phone, or use the buttons below it. The squares you have visited turn light blue, so you can see where you have already been.

Maze-solving methods

How the mazes are made

Each maze is built by the computer in a fraction of a second using a method called a “depth-first” search. It wanders from square to square, knocking down walls, and backs up whenever it gets stuck. The result is a “perfect maze”: every square can be reached, and there is only one route between any two squares, with no loops.

Mazes through history

People have drawn mazes and labyrinths for thousands of years, on clay tablets, floors of churches and hedge gardens. Today they remain a favorite puzzle for children and adults, because the goal is simple and the path is not.

Fun facts about mazes

Frequently asked questions

Does the wall-follower trick always work?

In every maze on this page, yes, because all paths are connected and there are no loops. In mazes with loops or a goal in the middle, following one wall can send you around in circles.

Is there only one way out?

Yes. These are "perfect mazes," so there is exactly one route from the start to the exit. Every other path ends in a dead end.

Are mazes good for children?

They are a great way to practice planning and patience. Younger children often enjoy tracing the route with a finger before moving the dot.

You might also like

Play Sudoku →