Maze Generator
Perfect mazes on screen and as printable PDFs โ solutions included.
About this generator
Four sizes from easy to extreme, generated fresh each roll: enter at the top-left, exit bottom-right, reveal the red solution path if pride allows, and download any maze as a printable PDF โ puzzle on page one, solution on page two.
Perfect mazes, and the wall-follower guarantee
These are perfect mazes in the technical sense: no loops, no unreachable pockets, exactly one path between any two points โ carved by recursive backtracking (a random walk that tunnels forward and retreats only at dead ends, which produces the long winding corridors humans find satisfying) and solved by breadth-first search for the reveal. The property buys a famous guarantee: keep one hand on a wall and you WILL reach the exit โ wall-following only fails in mazes with loops. The solution path shows how scenic that stroll is versus the direct route. Printables are the quiet superpower โ rainy afternoons, classroom time-fillers, restaurant waits โ and the PDF's two-page format means the answer key tears off. Graph paper prints from the same local engine, and sudoku serves the sibling audience in numbers.
Frequently asked questions
What makes a maze 'perfect'?
Exactly one path between any two points โ no loops, no isolated areas. It's the standard for puzzle mazes and what makes wall-following guaranteed to work.
Does the hand-on-wall trick really work?
In these mazes, always โ keep one hand on either wall and you'll reach the exit eventually. It fails only in mazes with loops, which perfect mazes don't have.
What's in the PDF?
Page one: the maze, sized for A4. Page two: the same maze with the solution drawn in red โ an answer key you can withhold.
How hard is 'extreme'?
34ร34 cells โ over a thousand junctions and dead ends, comfortably a 20-minute pencil expedition. Easy (10ร10) suits young kids.