Toolvito

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

A maze of square cells: choose the size, how hard it is, rooms and extra ways through.

Your values

More options

Rooms of 2 to 4 cells across and down, as in a dungeon map.

The share of dead ends that get a second opening, so that there is more than one way.

From 3 to 50 mm. It sets the size of the printed maze.

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.

Print or download

Task
Print the maze and the solution at their real size

You get a PDF with the maze on the first page and the solution on the second, each at its exact size in millimetres, and a 100 mm line to check the print.

More options

With 2, 4 or 6 the drawings share a sheet at one scale; the solution starts on a sheet of its own. Not with "A page the size of the maze".

Leave it empty to use "maze".

The maze is made in your browser. When you press a button in the box below, the drawings of the maze and the solution (and, for a document, the result lines) are sent to the Toolvito server to make the file. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

How to make a maze

  1. Choose Square maze, Circular maze or Letter maze with a hidden message.
  2. 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.
  3. 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.
  4. 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.

Related tools