🧠Cerebite

Maze Generator

Enter at the top-left arrow, exit at the bottom-right. Every maze has exactly one solution — shuffle for a new one, then print.

Tip: print once as a puzzle, then tick “Show solution” and print again for the answer page. “Save as PDF” in the print dialog keeps a file.

Name: ____________Date: ____________
Cerebite · cerebite.com

About this maze generator

Mazes are carved with a depth-first “recursive backtracker” algorithm, which guarantees a perfect maze: every cell is reachable and there is exactly one path between any two points — so the puzzle always has one unique solution. Each click of “New maze” produces a different layout, letting you print as many unique activity sheets as you need. Solving mazes exercises planning and spatial reasoning; pencil tip: work backwards from the exit when you get stuck.

Frequently asked questions

Does every maze really have only one solution?
Yes. The generator carves a “perfect maze”: a spanning tree of the grid, so there are no loops and exactly one path connects any two cells — including the entrance and exit. The solution page draws that unique path.
How do I print a clean puzzle plus a separate answer page?
Print once with “Show solution” unticked (the puzzle), then tick it and print again (the answer). Only the maze sheet is printed — the page header, form and ads are hidden automatically.
Which size should I pick?
10×10 suits young beginners and takes a couple of minutes; 15×15 is a comfortable everyday puzzle; 20×20 can take a good while even for adults. Since every click makes a new maze, print a batch at mixed sizes for varied difficulty.