Maze Generator — Animated Recursive Division
Animated maze generator using recursive division — step through the wall carving, adjust speed, regenerate. Pairs with the pathfinding visualizers. Runs in your browser.
Click & drag on the grid to draw walls · drag the green and red squares to move start / goal · then press Play.
Pseudocode
Time · Space
How to use
- 1 Press Generate to watch the maze build with recursive division.
- 2 Use Step to add one wall at a time and follow the recursion.
- 3 Press New maze for a different random layout.
- 4 Adjust Speed to slow the carving down for study.
Why use this tool
- See recursive division split each chamber with a wall and a single gap.
- Every maze it produces is "perfect": exactly one path between any two cells.
- A great companion to the pathfinding visualizers — the same grid model.
- Runs entirely in your browser. No signup, no uploads.
Frequently asked questions
How does recursive division generate a maze?
It starts with an open area, then recursively splits each chamber with a straight wall that has a single random gap, repeating until the chambers are too small to divide.
What is a "perfect" maze?
A maze with exactly one path between any two cells — no loops and no isolated regions. Recursive division always produces a perfect maze.
Can I solve the maze?
Yes — copy the layout into the BFS, Dijkstra, or A* visualizers (same grid) to watch an algorithm find the path through it.
What other maze algorithms exist?
Recursive backtracker (randomized DFS), Prim’s, Kruskal’s, Wilson’s, and Eller’s — each produces mazes with a different visual texture.
What is Maze Generator?
A Maze Generator builds a random maze by recursive division: it repeatedly splits each chamber with a wall that has a single gap until the chambers are too small. The result is a "perfect" maze with exactly one path between any two cells.
Maze Generator is a free algorithm utility by Zerethon Tools. Animated maze generator using recursive division — step through the wall carving, adjust speed, regenerate. Pairs with the pathfinding visualizers. Runs in your browser. Runs entirely in the browser — no signup, no upload.
- Category
- Algorithm
- Pricing
- Free
- Privacy
- Browser-based
- Signup
- Not required
Privacy
Your data never leaves your browser unless explicitly stated. Maze Generator runs entirely client-side — no server upload, no logging, no tracking of your input.
Related tools
Bubble Sort Visualizer
Animated bubble sort with step controls, speed, custom input, live comparison/swap counters and pseudocode. Runs entirely in your browser.
Open toolInsertion Sort Visualizer
Animated insertion sort with step controls, speed, custom input, live comparison/write counters and pseudocode. Runs in your browser.
Open toolSelection Sort Visualizer
Animated selection sort with step controls, speed, custom input, live comparison/swap counters and pseudocode. Runs in your browser.
Open toolMerge Sort Visualizer
Animated merge sort with step controls, speed, custom input, live comparison/write counters and pseudocode. Runs in your browser.
Open toolBuild, share, and grow on Zerethon Social
Free signup. Earn points, collect achievements, and connect with creators worldwide.