Printable maze generator
Create random mazes in several sizes and difficulty levels to print or solve on screen, with an optional solution, for kids, school activities and fun.
How to useRandom mazes
Use the arrow keys or swipe over the maze to play.
Printable maze generator: what it is for
Choose the size, from very easy to very hard, and create as many mazes as you like. Each one has exactly one path from the entrance to the exit. Show or hide the solution, print, download as PNG or play on screen with the arrow keys or by swiping.
The mazes are generated in your browser.
How to use
- Choose the size.
- Generate the maze.
- Print, download or play on screen.
When to use it
- Activities for kids.
- Entertainment on trips.
- Class material for logic and coordination.
Frequently asked questions
How is the maze generated?
With the depth-first search algorithm with backtracking: it starts from a cell, carves a path to an unvisited neighbor and backs up when it hits a dead end. The result is a perfect maze, with exactly one path between the entrance and the exit.
How do I choose the difficulty?
The more cells, the harder. 8 × 8 mazes are good for young kids, 15 × 15 to 20 × 20 for older kids, and above 30 × 30 they challenge even adults.
Can I solve it on screen?
Yes. Use the arrow keys or swipe over the maze to move the dot from the entrance to the exit. The solution button shows the correct path.
Is it really free?
Yes, 100% free. No sign-up, no subscription and no usage limits. All Tools123 tools are free and run right in your browser.