Random Maze Generator

Create connected rectangular mazes with one route to the finish and a matching SVG answer path.

Make a rectangular maze

Your result

Ready when you are

Generate a connected maze with exactly one path between the entrance and exit.

How to use this tool

Create connected rectangular mazes with one route to the finish and a matching SVG answer path.

  1. Choose 3–40 rows and columns, then generate a maze.
  2. Enter at the top-left opening and exit at the bottom-right opening.
  3. Toggle the solution, print the displayed version or download its SVG.

About the results

The maze is generated as a spanning tree, so every cell is connected and paths are unique. Size is configurable; human difficulty, custom silhouettes and themed outlines are not graded or supplied.