Generate solvable rectangular mazes with customizable dimensions, SVG artwork, and an optional shortest-path solution.
Runs on your device. Nothing you add is uploaded.
How to use Maze Generator
- Choose the number of columns and rows (5 to 35).
- Click New maze for a fresh layout.
- 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.
Yes, an ASCII version of the maze is included below the SVG diagram.
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 GeneratorsSudoku GeneratorGenerate unique-solution 9×9 Sudoku puzzles at Easy, Medium, or Hard difficulty with an optional answer key.Word Search GeneratorGenerate printable word search puzzles from your own word list, complete with a highlighted answer key.Bingo Card GeneratorGenerate classic 75-ball B-I-N-G-O cards or custom buzzword bingo boards for parties and classrooms.Flip a CoinFlip a fair virtual coin once or generate a list of coin flips.Wheel SpinnerSpin an interactive prize wheel with custom entries, cryptographic randomness, optional sound, and winner removal.Random Number GeneratorDraw random whole numbers between two inclusive bounds, with optional repeats.