piko

Maze Generator

Generate solvable rectangular mazes with customizable dimensions, SVG artwork, and an optional shortest-path solution.

Runs on your device. Nothing you add is uploaded.

16
12
Show shortest solution path

How to use Maze Generator

  1. Choose the number of columns and rows (5 to 35).
  2. Click New maze for a fresh layout.
  3. Toggle Show shortest solution path to reveal the optimal route from start to finish.

Questions

Yes. Recursive-backtracker generation produces a spanning tree, meaning there is exactly one simple path between any two cells.

How this works

Generates spanning-tree mazes and BFS solution paths locally in SVG and ASCII.

Everything happens in this browser tab. What you type or add stays on your device, and the page has no tracking. What you typed and your settings are kept in this browser so the tool opens the way you left it, except passwords, keys and tokens, which are never saved. Privacy

Related tools

More in Generators