EN
PortuguêsEnglishEspañol
All tools
Online games 100% free

Printable maze generator

Create random mazes in several sizes and difficulty levels to print or solve on screen, with an optional solution, for kids, school activities and fun.

How to use

Thank you so much for helping!

Every donation helps pay for the servers and keeps the tools free for everyone. Pick or type an amount:

Secure payment by Stripe. Opens in a new tab.

Back to Games

Random mazes

Use the arrow keys or swipe over the maze to play.

Available in: PortuguêsEspañolEnglish

Advertisement

Printable maze generator: what it is for

Choose the size, from very easy to very hard, and create as many mazes as you like. Each one has exactly one path from the entrance to the exit. Show or hide the solution, print, download as PNG or play on screen with the arrow keys or by swiping.

The mazes are generated in your browser.

How to use

  1. Choose the size.
  2. Generate the maze.
  3. Print, download or play on screen.

When to use it

  • Activities for kids.
  • Entertainment on trips.
  • Class material for logic and coordination.

Frequently asked questions

How is the maze generated?

With the depth-first search algorithm with backtracking: it starts from a cell, carves a path to an unvisited neighbor and backs up when it hits a dead end. The result is a perfect maze, with exactly one path between the entrance and the exit.

How do I choose the difficulty?

The more cells, the harder. 8 × 8 mazes are good for young kids, 15 × 15 to 20 × 20 for older kids, and above 30 × 30 they challenge even adults.

Can I solve it on screen?

Yes. Use the arrow keys or swipe over the maze to move the dot from the entrance to the exit. The solution button shows the correct path.

Is it really free?

Yes, 100% free. No sign-up, no subscription and no usage limits. All Tools123 tools are free and run right in your browser.

Similar tools

The tools are provided as is, without warranty. We are not responsible for the results or for how they are used.