Skip to content
Engyna

Maze Generator

Generate mazes up to 80 × 80 cells and reveal the solution step by step.

How to use the Maze Generator

  1. 1Choose an algorithm, size and shape.
  2. 2Adjust walls, colors and entrance and exit.
  3. 3Solve it online, print it or download it as SVG or PNG.

About Maze Generator

The Maze Generator creates mazes from 5 × 5 up to 80 × 80 cells with six classic algorithms: recursive backtracker for long winding corridors, Prim's and Kruskal's for many short dead ends, Wilson's for an unbiased natural look, and Binary tree and Sidewinder for easier mazes with straight edges. Besides rectangles you can cut the maze into a circle, heart or diamond shape, and choose where the entrance and exit go.

The look is adjustable through cell size, wall thickness, rounded walls and custom colors for walls, background and solution path. Stats show the number of dead ends, the length of the solution and a difficulty estimate. Watch the maze being carved step by step, play it with the arrow keys or by swiping on a phone, show the solution, or download the maze as SVG or PNG. Printing can put the solution on a second page, and a seed number recreates the exact same maze later.

This printable maze maker suits teachers and parents looking for activity sheets at every level, puzzle book creators, game designers who need level layouts, and anyone curious how maze generation algorithms differ.

Frequently asked questions

What is a perfect maze?

A maze with exactly one path between any two cells: no loops and no unreachable areas. All six algorithms here generate perfect mazes, so every maze has a single solution.

Which maze algorithm makes the hardest mazes?

The recursive backtracker creates long, winding paths with few branches, which make for a long solution. Prim's and Kruskal's produce many short dead ends instead, while Binary tree and Sidewinder leave straight corridors along the edges and are easier.

Can I make a maze in a shape other than a rectangle?

Yes. Choose a circle, heart or diamond outline. Binary tree and Sidewinder only work on rectangles, so shaped mazes use one of the other algorithms.

How is the maze solution found?

The tool measures the distance of every cell from the exit and then walks from the entrance always to a neighbor one step closer. In a perfect maze this traces the single correct path.