← All tools
Maze Generator
Generate a random perfect maze with the recursive-backtracker algorithm — every cell is reachable from every other by exactly one path. Set the width and height, regenerate for a new maze, optionally show the solution path, and download the maze as an SVG. Everything runs locally in your browser.
The recursive backtracker (a depth-first walk with backtracking) carves passages until every cell is connected, producing a perfect maze — no loops, no isolated areas. The start is the top-left cell, the exit the bottom-right. The solution path is found with breadth-first search. Download gives a scalable SVG with the same walls and (optionally) the solution line. Runs locally.