About AI Maze Generator

AI Maze Generator is a free, open tool for creating, solving, and printing mazes. Everything runs in your browser — no accounts, no server processing, no paywalls.

You can generate mazes in four shapes — square, hexagonal, circular, and triangular — across seven game modes including campaign progression, daily challenges, timed runs, fog-of-war, and optimal-path scoring. All mazes are exportable as PNG or PDF for printing.

How it works

Mazes are generated client-side using depth-first search with recursive backtracking and a seeded PRNG (Mulberry32), meaning the same seed always produces the same maze. Solutions are computed with A* pathfinding. Rendering uses the HTML5 Canvas API with device-pixel-ratio scaling for crisp output on all screens.

The site is built with Astro and React, deployed on Cloudflare Pages. PDF generation uses jsPDF, entirely in the browser.

Who it's for

  • Teachers — print worksheet PDFs for classrooms
  • Parents — generate age-appropriate puzzles for kids
  • Puzzle fans — play daily challenges and track your stats
  • Developers — use the generator for game prototyping or level design

What's included

4
Shapes
7
Game Modes
30
Campaign Levels
9
Languages

Everything is free with no limits. Generate as many mazes as you want.