FertiJourney Dev Tools 🏠← All tools

Maze Generator

Generate solvable N×M mazes with recursive-backtracking DFS, optional BFS solve, PNG / SVG export.

Set columns / rows / cell size / wall thickness and click Generate. The maze uses recursive-backtracking DFS — every cell is reachable and there is exactly one path between any two cells. Green = start (top-left), Red = exit (bottom-right). Click Solve (BFS) to overlay the shortest path in blue; Clear path hides it. Download the maze as PNG (rasterized canvas) or SVG (vector, scalable).