A new puzzle every time

Maze Generator

Generate a random maze, then race to guide your dot from start to finish. Pick a size, move with arrow keys or WASD, and reveal the shortest path if you get stuck.

Time00:00.0
Moves0
Best time

Use the arrow keys or WASD to move from the green start to the red finish. On touch screens, tap any open cell next to your dot to step into it.

How the maze generator works

1

A perfect maze, every time

A recursive backtracker algorithm carves passages through a grid of cells, visiting every cell exactly once. The result is a "perfect" maze with exactly one path between any two points, so it is always solvable.

2

Play with keyboard or touch

Move your dot with the arrow keys or WASD. Passages only open where a wall was actually removed, so there is no cheating through a wall. On touch devices, tap an adjacent open cell to step into it.

3

Export or print your maze

Use Download PNG to save the current maze image straight from your browser. The saved image is ready to print, drop into a worksheet, or share with a friend to race against.

FAQ

Is every generated maze guaranteed to be solvable?

Yes. Every maze is carved with a recursive backtracker algorithm that creates a single spanning path through the whole grid, so there is always exactly one route between the start and the finish.

What controls can I use to play?

Move with the arrow keys or WASD on a keyboard, or click or tap any open cell next to your current position with a mouse or touchscreen.

Is my best time saved anywhere besides this browser?

No. Best times are stored only in your browser's local storage on this device. Nothing is uploaded to a server or shared elsewhere.

Try other tools