Maze Generator - Free Online Tool | PivaBox

Generate mazes using different algorithms (DFS, Kruskal, Prim) with customizable size and solution path

How to Use Maze Generator

  1. Choose an algorithm (Recursive Backtracker, Kruskal, or Prim) and select a maze size (Small, Medium, or Large)
  2. Click Generate to create a new random maze with the selected algorithm and size
  3. Toggle Show Solution to display the solution path in red from the green start dot to the red end dot, then click Download PNG to save your maze

Frequently Asked Questions

Is Maze Generator free?

Yes, PivaBox Maze Generator is completely free to use. All maze generation happens locally in your browser.

Are my mazes uploaded to a server?

No. All maze generation is done locally using JavaScript algorithms. Your mazes never leave your device.

What maze algorithms are available?

Three algorithms are available: Recursive Backtracker (DFS) creates mazes with long winding corridors; Kruskal's algorithm produces mazes with many short dead ends; Prim's algorithm generates mazes with a more organic, radial pattern. Each algorithm produces visually distinct mazes with different characteristics.