Maze Generator
Make a fresh maze to solve on screen or print: pick a size from 5 by 5 to 40 by 40, choose a difficulty, play it, or export it as a PNG.
Create a maze, solve it on screen with your keyboard or fingers, then print it or save it as an image.
Move with the arrow keys, W A S D, swipe on the maze, or the buttons. The timer starts on your first move.
Saved on this device
Stored in your browser only. Nothing is uploaded.
Found a Bug or Missing a Feature?
Report any problems or suggest new features you want. You can write in English, Urdu, Hindi, or any language! Our AI will analyze your feedback and upgrade the tool.
About This Tool
Make a fresh maze to solve on screen or print: pick a size from 5 by 5 to 40 by 40, choose a difficulty, play it, or export it as a PNG.
A hand-drawn maze takes an evening and often has a shortcut you did not mean to leave. This generator builds one in a moment, from 5 by 5 for a young child up to 40 by 40 for a long afternoon, and you can walk through it right on the screen.
Three ways to build a maze
The style menu chooses the method. Long winding corridors uses a recursive backtracker, which digs far in one direction before turning, so the paths are long and dead ends are few. Many short dead ends grows the maze like a plant from the start, which makes lots of small branches. Even and balanced joins random walls until everything is connected. The same size looks and plays quite differently in each style.
Difficulty
- Easy: some extra walls are knocked out, so there is more than one route and you can take shortcuts.
- Medium: one single route, from the top left to the bottom right.
- Hard: one route again, but the start and finish are placed at the two points that are furthest apart.
Play it, check it, print it
Use the arrow keys or W A S D, swipe, or tap the buttons. The path you walked is drawn as a trail, and backing up erases it. The clock starts at your first move, and finishing a maze records a best time for that size and level. Show solution draws the shortest route over the maze, and the Download buttons give you a PNG, with or without the answer, which is handy for a classroom or a restaurant placemat.
Sharing the same maze
Each maze has a seed number. Send a friend the seed together with your size and settings and they will get exactly the same maze. The Replay seed button regenerates it for you, and saved mazes in the history list are rebuilt from their seeds, so they take almost no space.
More puzzles
Letters are a good partner to corridors, so try the word search puzzle generator, or run a tournament for the whole group with the tournament bracket generator.
Quick answers
What does the seed do?
It is a number that decides how the maze is built. Enter the same seed with the same size, style and difficulty and you get the identical maze.
Is there always a way from start to finish?
Yes. The maze is built so every cell can be reached, which means a route from the green start to the red finish always exists.
How do I move on a phone?
Swipe on the maze, or use the arrow buttons below it.
What do the three styles change?
Long winding corridors have few dead ends, short dead ends gives a bushy maze, and balanced is in between.
Can I print it?
Yes. Use Print, or download the PNG with or without the solution.
