Maze Generator

Random mazes from tiny to expert – solve them on screen or print them out.

Play: arrow keys or WASD on a computer, drag your finger or use the pad on a phone.

Mazes are generated with a secure random generator.

A new maze every time

Each click creates a brand-new random maze with exactly one way from the green start to the finish flag. Choose the size – from tiny mazes for little children to huge expert mazes – and a square, wide or tall shape.

Solve it right on the screen: move with the arrow keys, the on-screen pad, or simply drag your finger along the corridors. Stuck? Show the solution. Teachers and parents can print one, two or four different mazes per page.

How to use

  1. Choose a size and shape.
  2. Move the dot with the arrow keys, the pad or by dragging.
  3. Reach the 🏁 to win – or tap Show solution.
  4. Tap Print for worksheets with 1, 2 or 4 mazes.

Ideas for using it

  • Preschool. tiny mazes, two per page.
  • Rainy afternoon. print four medium mazes.
  • Challenge. expert size, wide shape, on a big screen.
  • Quiet time. a maze while waiting at the restaurant.

Frequently asked questions

Does every maze have a solution?

Yes, exactly one. The mazes are “perfect mazes”: every corridor is connected and there is only one path between any two points.

How are the mazes made?

With a randomised depth-first search (recursive backtracker), which creates long, winding corridors. Randomness comes from a cryptographically secure generator.

Can I print the solution?

The print view shows mazes without the solution, so they work as worksheets. Turn on the solution on screen to check.

Can I use the mazes in class?

Yes, print and copy them as often as you like.