Maze Generator

Generate a random maze to print or solve.

A fresh maze on demand

This generates a random maze of any size, with a guaranteed path from start to finish. It is useful for printable puzzles, worksheets, games, or simply the fun of solving one, with a new maze every time.

Set a size to generate a maze.

How mazes are generated, and their appeal

Generating a proper maze is a small piece of clever algorithm work: the maze must have a solution, ideally a single winding path, without being either trivially easy or impossibly tangled, and there are elegant methods that carve out passages to guarantee exactly one route between any two points. Larger mazes are harder simply because there are more wrong turns to explore. Mazes have an enduring appeal across ages — simple ones delight children and make great worksheet activities, while large complex ones are a genuine challenge. Because each generation is random, you get an endless supply of fresh puzzles rather than the same one repeated, which is ideal for teachers making worksheets, parents keeping children occupied, or anyone who enjoys the quiet satisfaction of tracing a path from entrance to exit.

Questions & answers

Is a generated maze always solvable?

Yes — the maze is generated with a guaranteed path from start to finish, so there is always a route through.

What are generated mazes good for?

Printable puzzles and worksheets, games, and activities for children — and because each is random, you get an endless supply of fresh ones.

Is anything uploaded?

No. The maze is generated in your browser.

More Generate tools