Calculates on this device. File exports run online.
Maze Generator
Choose a size and a kind of maze and press Make a maze. You see the maze and, behind a switch, the way through. Print both at their real size, or save them as pictures or a PDF.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Make a maze.
Your result
How it was worked out
How to make a maze
- Choose Square maze, Circular maze or Letter maze with a hidden message.
- Choose the number of cells across and down (or the number of rings), and how hard it is: long winding paths are harder than many short branches. The Start from list has ready sizes.
- Press Make a maze. Each press makes a new maze. The maze appears under the result; open Show the way through to see the solution.
- In the box below, press Print the maze. You get a PDF with the maze on the first page and the solution on the second, at the size shown in the result. Print it at 100 % (actual size).
Kinds of maze
- Square maze: from the top left to the bottom right, or from the top to the middle. You can add open rooms (as in a dungeon map) and extra openings, so that there is more than one way through.
- Blocks: the same maze drawn as square blocks, like pixel art. The plan of blocks in the result (# for a wall, . for open ground) can be built block by block, for example in Minecraft.
- Circular maze: rings around a middle cell. Outer rings have more cells, so the paths keep about the same width.
- Letter maze: the way from the start to the circled letter spells your message, one letter in each cell. The other cells hold random letters. Without walls it is a grid of letters to follow.
How the maze is made
Every choice is made with the secure random numbers of your browser, so each maze is new. A randomized depth-first search (also called the recursive backtracker) digs long winding passages; a randomized Prim algorithm grows many short branches, which makes an easier maze.
Without rooms and extra openings there is exactly one way between any two cells. The solution is found with a breadth-first search, so the red line is always a shortest way through.
The result shows the whole maze as text: the plan of blocks, or a maze code for a circular maze. The pictures and files are drawn from that text.
Size of the printed maze
Each cell is 8 mm unless you change Size of one cell (from 3 to 50 mm). A margin of 6 mm and a line of 8 mm for Start and Finish are added. A 15 × 15 maze with 8 mm cells is 132 mm wide and 148 mm tall. A block maze uses half a cell for each block, so a 12 × 12 block maze (25 × 25 blocks) is 112 × 128 mm.
With Size: real size, a maze larger than the paper is split onto several pages. Choose Make it smaller to fit one page to keep it on one sheet.
Limits you should know
- The mazes are flat: this page does not make 3D mazes or 3D models.
- The maze is made by a fixed algorithm with random choices, not by an AI model.
- A maze is not saved anywhere: if you want to keep one, download it before you make the next.