Maze Generator
Generate random mazes using recursive backtracking with configurable size, difficulty, and optional solution path display. Print them for classroom use or just for fun.
Maze Settings
Higher difficulty adds more paths, making it harder to find the shortest route.
FAQ
How are the mazes generated?
Mazes are built with a recursive backtracking algorithm, which carves paths through a grid to guarantee that every maze has exactly one solution and no isolated sections.
Can I print the maze?
Yes. Use your browser's print dialog or the built-in export option to produce a clean, printer-friendly version of the maze, with or without the solution path shown.
What difficulty levels are available?
You can adjust the grid size to control difficulty — smaller grids are easier while larger grids create more complex, challenging mazes.