Free tool · no signup
Maze maker
Generate a printable maze with exactly one route from start to finish. Pick a size, show the solution path, then print or download a PDF or PNG.
How the maze is made
The generator uses the recursive backtracker. It starts in one cell, walks to a random neighbour it has not visited, knocks down the wall between them, and keeps going. When it hits a dead end it backs up to the last cell with an unvisited neighbour. It stops when every cell has been visited. The result is a perfect maze: every cell is reachable, there are no loops, and there is exactly one route between any two cells.
This style makes long winding corridors with plenty of dead ends, which is what people expect from a printed maze. Press New maze for another one. The same seed always produces the same maze.
Sizes
| Level | Cells across × down |
|---|---|
| easy | 10 × 14 |
| medium | 15 × 21 |
| hard | 20 × 28 |
| expert | 26 × 36 |
Mazes are drawn taller than wide so they fill a portrait page. The entrance is an opening in the top wall at the top left, and the exit is an opening in the bottom wall at the bottom right. The solution path is found by a breadth-first search, so it is always the one and only route.
Print, PDF and PNG
Print sends only the maze to your printer. Download PDF makes a Letter (8.5 × 11 in) or 6 × 9 in file with a puzzle page and a solution page. Download PNG saves a 2400 pixel wide image of the current view, handy for worksheets, slides and social posts. Everything is drawn in your browser, there is no watermark, and nothing is uploaded.
Using mazes in a KDP book
Maze books are a classic children's activity book. For a paperback you need a maze on each page, the solutions at the back, margins that grow with the page count and a cover with the right spine width. Use the KDP cover calculator for the cover size, and the royalty calculator to check your price. Puzzlesmithy's builder makes the full interior and cover and checks them against KDP rules. Puzzlesmithy is independent and not affiliated with Amazon.
Frequently asked questions
Does every maze have a solution?
Yes, exactly one. The generator carves a path to every cell without making loops, so there is one route between any two points. Turn on Show solution path to see it.
Where are the entrance and exit?
The entrance is an opening in the top wall at the top left. The exit is an opening in the bottom wall at the bottom right.
Can I download a maze as an image?
Yes. Download PNG gives a 2400 pixel wide image of what you see, with or without the solution. Download PDF gives a puzzle page and an answer page.
Which size should I pick for kids?
Easy is 10 by 14 cells and suits younger children. Medium and Hard are better for older kids and adults. Expert is 26 by 36 cells and takes real patience.
Is it free to use for a book?
The mazes are generated by code, so there is nothing to attribute. For a full maze book with answer keys and a matching cover checked against Amazon KDP rules, use the Puzzlesmithy builder.
Do I need an account?
No. There is no signup and no watermark. The maze is generated in your browser and nothing is uploaded.