Random Maze Generator — Printable Mazes (PNG/PDF)

Generate mazes instantly. Private by design — everything runs locally in your browser.

Maze

Maze — 25 × 25
Start: ● End: ★

Settings

Tip: Use a Seed to recreate the same maze later. Increase Braid % for fewer dead-ends (more loops).

About the Random Maze Generator

This tool creates printable mazes you can use in classrooms, puzzle books, game nights, or rainy-day activities. Everything runs 100% client-side in your web browser—no uploads, no tracking—so it’s private and fast wherever you are. Choose the grid size (width × height), set a cell size for how large the maze appears on paper, pick your entrance and exit, and generate as many variations as you like. You can print directly, or export a clean PNG or PDF for sharing.

How the generator works

By default, the maze is a perfect maze: there’s exactly one route between any two cells. We build it using the classic recursive backtracker (an iterative depth-first search). If you’d prefer a more open feel with fewer dead ends, increase the Braid %. Braiding removes a portion of dead ends to create loops, which can make mazes friendlier for younger solvers or better for timed races.

Difficulty and sizing tips

  • Smaller grids (e.g., 15×15 with larger cells) are ideal for children or quick warm-ups.
  • Medium grids (25×25) balance challenge and printability on A4/Letter paper.
  • Large grids (40×40 and up) create long, twisty paths—great for puzzle enthusiasts.
  • Turn on “Overlay solution path” to show or hide the shortest route for answer keys.

Reproducible results with seeds

Want to recreate a specific maze later or share the same puzzle with a group? Enter a Seed (any text) before you click New Maze. The same seed and settings will generate the same maze again, which is perfect for homework sheets, competitions, or QR-linked challenges.

Exporting and printing

Use Save as Image for a high-resolution PNG or Save as PDF for tidy handouts. The canvas is drawn with crisp lines and a bold border so mazes look sharp on home and office printers. For classroom sets, consider generating multiple seeds at the same size so students receive different puzzles at the same difficulty level.

Who it’s for

Teachers, parents, therapists, and puzzle fans use mazes for focus practice, fine-motor skills, spatial reasoning, and just for fun. Whether you need a quick printable maze or a themed activity for events and clubs, this generator keeps it simple, private, and ready to go—anywhere with a browser.

5 Fun Facts about Mazes

Perfect = tree

A “perfect” maze is just a spanning tree: there’s exactly one route between any two cells. That’s why carving a single extra wall break instantly creates a loop and multiple solutions.

Maze theory

Algorithms leave fingerprints

Depth-first/backtracker mazes look snaky with long hallways, while Prim’s or Kruskal’s algorithms make bushier “cell” textures. Maze nerds can often guess the generator just by eye.

Visual clues

Seeds = secret coordinates

Type the same seed and you get the same maze—exactly how roguelike games and map editors share worlds. A short word is basically a shareable set of carving instructions.

Deterministic fun

Robotic trailblazer

In 1950, Claude Shannon built “Theseus,” a metal mouse that solved any electrified maze and remembered dead ends. It’s considered one of the first AI/robotics demos.

Retro robotics

World-scale puzzling

Hawaii’s Dole Plantation maze weaves nearly 2.5 miles of paths through 14,000 tropical plants and once held the Guinness record for largest permanent hedge maze.

Real-life giant

Explore more tools