Home / Maze generator
Maze generator
Printable mazes with one true path from start to finish. Pick a size and a style; the solution prints on the next page.
Maze
Name ____________Solution
How mazes are generated
Picture the maze as a grid of rooms, all walled off. Generating a maze means choosing which walls to knock down so every room is reachable and no loops form. Different rules for choosing produce mazes that feel completely different to solve.
Watch a maze being carved
Every “perfect” maze is a spanning tree: all 100 cells joined by exactly 99 passages, with no loops, so there is exactly one route between any two points. The algorithm only decides which passages.
Recursive backtracker: wander randomly until stuck, then back up to the last cell with an unvisited neighbour. Result: long, winding corridors and few dead ends. Most people find these hardest to solve by eye.
Passages: 0 / 99
Maze sizes by age
| Age | Grid | Style to try |
|---|---|---|
| 3–5 | 6×6 – 8×8 | Branchy (short dead ends, quick wins) |
| 6–8 | 10×10 – 14×14 | Even |
| 9–12 | 16×16 – 24×24 | Winding |
| Teens & adults | 30×30 – 40×40 | Winding, 1 per page |
The wall-follower trick
Put one hand on a wall at the entrance and never let go. In a perfect maze like these, you are guaranteed to reach the exit, because the walls form one connected piece. It is rarely the shortest route, which makes it a nice thing to test with kids: trace it in one colour, then find the real shortest path in another.
Questions people ask
Are these mazes free to print?
Yes. Generate as many as you like and print them or save them as PDF. There is no sign-up and no watermark.
Does every maze have a solution?
Every maze is "perfect": all cells are connected and there is exactly one path between the entrance and the exit. The answer page draws that path.
What maze size suits which age?
Roughly: 6×6 to 8×8 for ages 3–5, 10×10 to 14×14 for ages 6–8, 16×16 to 24×24 for ages 9–12, and 30×30 or more for teens and adults.
What do the three maze styles mean?
They are three algorithms. Winding (recursive backtracker) makes long twisting corridors. Branchy (Prim) makes many short dead ends. Even (Kruskal) mixes both. The explainer on this page animates each one.
Can I print several mazes on one page?
Yes. Choose 1, 2 or 4 per page; each is different and the solutions print in the same order on the next page.
Other puzzle makers
- Word Search MakerYour words hidden in a letter grid, with an answer key.
- Crossword MakerWords and clues knitted into an interlocking grid.
- Sudoku Generator4×4, 6×6 or 9×9, every puzzle with exactly one solution.
- Word Scramble MakerJumbled words with hints and write-in lines.
- Cryptogram MakerA quote hidden behind a letter-swap cipher.
- Logic Puzzle MakerEinstein-style grid puzzles with one provable answer.
- Nonogram MakerPaint a picture, get a picross puzzle with number clues.
- Bingo Card GeneratorNumber or word bingo cards, every card different.
- Jigsaw Puzzle MakerPrint any photo with jigsaw cut lines over it.