Maze Generator

Create random mazes with adjustable size

Maze Size

15
15
2
10

What is Maze Generator?

Generate random solvable mazes using depth-first search algorithms. Adjust maze dimensions, wall thickness, and path width. Watch the maze being constructed step-by-step or generate it instantly, then solve it manually or let the algorithm find the path.

How to use

  1. Set the maze dimensions (rows and columns) and choose the generation algorithm (recursive backtracking or randomized Prim's).
  2. Click 'Generate' to create the maze. Optionally enable the animation to watch the algorithm carve paths in real time.
  3. Solve the maze by clicking cells to trace a path, or click 'Show Solution' to reveal the optimal route from start to finish.

Result

Generate a 25×25 maze with recursive backtracking, watch the animation carve through the grid, then click 'Show Solution' to see the shortest path highlighted in orange from the top-left entry to the bottom-right exit.

Related Tools