About the Maze Generator
Maze Generator makes a random maze you can print or download. Choose a small, medium or large size, press New maze for a fresh layout, pick the colour of the walls and switch on Show the solution to see the shortest route from the entrance at the top left to the exit at the bottom right. Every maze is a perfect maze: there is exactly one path between any two points and no loops, so it can always be solved. Print it for a class or a party, or download it as a PNG or an SVG for a worksheet. It runs in your browser and needs no sign-up.
Updated October 2026
How to use the Maze Generator
- 1Choose small, medium or large.
- 2Press New maze until you like the layout.
- 3Pick a wall colour if you wish.
- 4Switch on Show the solution for the answer sheet.
- 5Print it, or download the PNG or SVG.
Why mazes are fun and useful
Mazes train planning and persistence and are a popular puzzle for children. Solving one means choosing a route, noticing dead ends and remembering where you have been, which are all useful problem-solving skills.
Tips for solving
Work backwards from the exit, because the exit side often has fewer branches. Trace the path with a pencil, and mark dead ends so that you do not go there again. Another trick is the wall follower: keep one hand on a wall and follow it. In a perfect maze, this always finds the exit.
- Start from the exit and work back
- Mark dead ends
- Follow the left or right wall
- Use a pencil in case you change your mind
Using printed mazes
Print a stack for a party or a lesson, and use the answer page to mark them. For a challenge, time the solvers or ask them to find the route with a finger first. Pair them with the Word Search Generator for a puzzle sheet.
Related tools
Make more puzzles with the Word Search Generator, solve numbers with the Sudoku Solver and play Sudoku, Minesweeper or the Memory Test for a mind break.
Features
- Small, medium and large mazes
- Exactly one route from start to finish
- Solution path in red
- Wall colour choice
- Print, PNG and SVG download
- Private: nothing is uploaded
Frequently asked questions
How are the mazes made?
The generator carves passages with a randomised depth-first search. This produces a perfect maze: every cell can be reached and there is only one way between any two cells.
Where do I start and finish?
Enter at the top-left corner and leave at the bottom-right corner, where the gaps in the outer wall are.
How hard are the mazes?
Small mazes suit young children, medium ones suit most children and adults, and the large size can take several minutes. Depth-first mazes have long winding corridors.
Can I print them?
Yes. Press Print or download the PNG at twice the screen size for a sharp print.
Can I get the answer?
Turn on Show the solution to draw the shortest path in red.
Are mazes repeated?
Each press of New maze gives a new random layout.
Can I use mazes in a classroom or a book?
You may use the mazes you generate as you like, including on worksheets.
How do I make a maze harder for older children?
Use the large size and hide the solution. Large mazes have long dead ends, which makes them take longer to solve.
Can I make a maze with a different start and finish?
The start is at the top left and the finish at the bottom right. You can rotate the printed sheet, or mark your own start and finish on it.
Is my maze uploaded?
No. It is drawn in your browser.