Loona Automation logoLoona Study Tools
Home › Maze Generator

Maze Generator — A Fresh Maze Every Click

In short: choose a difficulty — 8 × 8 for the youngest puzzlers up to a 26 × 26 expert grid — and get a brand-new printable maze, start at the green dot, finish at the red one. Tick the box to reveal the solution path.

Mazes train planning: looking ahead, backtracking calmly, and holding a route in mind. Because every generated maze is guaranteed solvable (it is carved as one connected path network), students are never defeated by a broken puzzle.

🔒 Private by design: mazes are generated on this device; nothing is stored or uploaded.

How to Use It

  1. Pick a difficulty. Easy 8 × 8 suits ages 4–6; Expert 26 × 26 will slow down most adults.
  2. Generate — every maze is new. Generate again if you want a different one.
  3. Print for pencil solving in class or at home.
  4. Stuck (or marking)? Tick "Show solution path" to draw the one correct route in red.

How It Works

The maze is carved with a recursive-backtracker algorithm: starting from the top-left cell, a path is dug through unvisited cells at random until every cell has been reached, which guarantees exactly the maze property teachers want — every cell reachable, no isolated areas, and at least one route from start to finish. The solution is found with breadth-first search, which always returns a shortest path.

Frequently Asked Questions

Is there always a solution?

Yes — by construction. The carving algorithm visits every cell, so a route from the green start to the red finish always exists.

Which difficulty for which age?

Roughly: 8 × 8 for ages 4–6, 12 × 12 for 7–9, 18 × 18 for 10–12, and 26 × 26 for teens and adults — but keen younger children enjoy hard mazes with the solution hidden.

Can I print several different mazes for a class?

Yes — generate, print, generate again. Each class member can even get a different maze at the same difficulty.

More Study Tools

Embed this tool on your website — free

Add this tool to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the tool to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.