Maze Generator Game Online

Create & Play Custom Mazes

Maze Parameters

Create custom rectangular mazes with adjustable width, height, complexity and randomness settings using DFS, Prim or Kruskal algorithms.

Parameter Name Value Range Current Value
Width 2-50 cells
Height 2-50 cells
Start Position Optional positions
Complexity 0-100
50
Randomness 0-100
50

Maze game

Move steps
0
Passing time
00:00
Clearance number
0
During the game, use the arrow keys to move
Generating, please wait...

Popular Use Cases

Printable Mazes for Kids

Generate easy mazes for children with adjustable difficulty. Perfect for classroom activities and homeschool worksheets.

Game Development Assets

Create procedural maze levels for indie games. Export as PNG sprites or PDF level designs for Unity and Godot projects.

Logic Training Puzzles

Design complex mazes for adults to improve problem-solving skills. Ideal for brain training apps and cognitive therapy.

How to Use

What algorithms are used to generate mazes?

We use Depth-First Search (DFS), Prim's algorithm, and Kruskal's algorithm to create perfect mazes with no loops. Each provides a different style of complexity and randomness.

How do I play the maze game?

Use the arrow keys or click the on-screen buttons (Up, Down, Left, Right) to move the green square from the start to the red goal.

Can I export the maze?

Yes! After generating a maze, click the “Export” button to download it as PNG or PDF.

Are the mazes always solvable?

Yes. Every maze generated is a “perfect maze,” meaning there is exactly one unique path from the start to the finish.

Is the game free to use?

Absolutely—there are no fees or registrations required. Enjoy unlimited mazes!

What makes this online maze generator different from others?

Our free maze generator offers three distinct algorithms (DFS, Prim's, and Kruskal's) to create perfect mazes with guaranteed single solutions. Unlike basic maze creators, we provide interactive maze games, PNG/PDF export options, and customizable complexity settings for both educational maze activities and professional game development.

Can I use this maze generator for educational purposes?

Absolutely! Teachers and educators frequently use our printable maze generator to create problem-solving worksheets, logic puzzles, and STEM activities. The ability to adjust difficulty levels makes it perfect for students from elementary to high school levels.

Share Your Maze