Printable Mazes — Free Maze Library You Can Regenerate
Every printable maze on this page is generated in your browser from a fixed seed, so what you see is exactly what prints. Change one number and you have a fresh puzzle — nobody runs out of mazes.
Maze maker
A preset sets the grid size and the algorithm together.
20 × 20 cells
The seed is written into the URL, so a reload — or a shared link — restores this exact maze.
This page’s maze, measured
A fixed seed (410001) on a 20 × 20 grid built with the Recursive backtracker. Every number below is computed from this maze at build time, then printed unchanged.
- Cells
- 400
- Open passages
- 399
- Dead ends
- 44
- Junctions
- 40
- Shortest solution
- 214 steps
- Mean branching
- 2.00
Answer key
The same maze with the shortest path drawn through it. The print button in the tool prints this key on its own page.
Open the tool above with the same seed and press Print to get a clean worksheet plus this key, or Download SVG for a vector copy.
How to print a maze from this library
This is the index page for the printable maze library. The maze above is a 20 × 20 rectangle built with a recursive backtracker, the algorithm that produces long, hand-drawn-looking corridors. The numbers underneath it are measured from this exact maze, not from a template: cell count, dead ends, junction count and the length of the shortest solution.
Most printable maze sites ship a fixed PDF pack. That is fine until a classroom needs thirty different sheets, or a puzzle book needs a maze that has never been published before. Here the maze is a function of four parameters — shape, algorithm, size and seed — so the same page can produce an unbounded number of genuinely distinct puzzles that are still guaranteed to have exactly one solution path.
- Pick the difficulty preset that matches the solver: Easy is a 12 × 12 backtracker, Hard is a 32 × 32 Prim maze, Extreme is a 46 × 46 Kruskal maze.
- Set mazes per page to 1 for a full sheet, 2 for a half sheet, or 4 for a classroom handout. Each slot uses a different seed, so no two mazes on a sheet are the same.
- Leave "Include answer key" ticked if you are the one checking the work. The key prints on its own page with the shortest path drawn in.
- Press Print, then choose "Save as PDF" in the print dialog to archive the sheet instead of using paper.
What makes these mazes different
Every maze here is a spanning tree over its own cell graph. A spanning tree on N cells has exactly N − 1 connections and no cycles, which is the mathematical definition of a perfect maze: there is exactly one route between any two cells, so a solver can never wander into a region that has no exit.
The SVG you print is real vector geometry — one path element of wall segments, not a bitmap. It stays sharp on a 300 dpi laser printer and on a plotter, and the file you download opens in Illustrator, Inkscape or Figma without conversion.
Nothing is uploaded. Generation, solving, printing and exporting all happen in the tab, which is why the tool keeps working offline once the page has loaded.
Frequently asked questions
Are these printable mazes really free?
Yes. Every maze, every size, every answer key and every export is free, with no account, no download limit and no paywall. There is no ad code on this site either.
How many different mazes can I print?
The number is unbounded. The seed is an integer, so each new seed produces a different maze, and the seed is written into the URL so you can come back to a maze you liked.
Can I use the mazes in a classroom or a puzzle book?
Yes. Mazes generated here are yours to print, photocopy and redistribute. You do not need to credit the site, though a link is always welcome.
Do the printable mazes include the solution?
When you tick "Include answer key" the print job gets a second page with the shortest path drawn through every maze on the sheet. The on-screen "Show solution" button draws the same path.