Puzzles & Printables

Maze Generator

Carve a new maze from a repeatable seed and chosen grid dimensions. Each maze has connected passages, an entrance at the top left, an exit at the bottom right, and an optional separate solution page.

Free online tool

Loading tool…

Carve a new maze

Print PDF at Actual size / 100%. Select the matching paper size and turn off “Fit to page.” PNG is rendered at 150 pixels per inch. Check your printer’s minimum margin.

Each maze is a connected passage network with one route between any two cells. Larger grids make smaller printed cells; density is a practical difficulty guide rather than a guaranteed solving time.

Puzzle preview

300 cells · 149 moves on the solution route

Find your wayEnter at the top left. Exit at the bottom right. 15 × 20 cells.STARTEXIT

Generated locally from your settings and original geometry or algorithms. No external datasets or uploaded fonts are used. Your entered content is not sent to a server by this tool.

GET STARTED

How to use the Maze Generator

  1. 01

    Choose grid width and height or use a density preset.

  2. 02

    Keep the seed to reproduce a maze, or generate a new maze to advance it.

  3. 03

    Preview the puzzle and optional solution, then download both as PDF or one page as PNG.

Examples

An introductory route

Choose an 8 × 10 grid with a 14 mm margin. The larger cells leave room to trace a route with a pencil.

A denser challenge

Choose 35 × 45 cells and include the solution page. The route is longer and cells print smaller; solving difficulty still depends on the generated layout.

How a maze is carved

An iterative depth-first search visits unvisited neighboring cells and removes the shared wall. Backtracking continues until every cell is reached. The resulting passage graph is a spanning tree, so each pair of cells has exactly one route between them.

Independent solution search

A breadth-first search follows open passages from the first cell to the last. The solution page draws that route in a contrasting color. The outside entrance and exit openings are added when the printable geometry is laid out.

What to know

  • Grid dimensions are 5–40 columns and 5–50 rows, capped at 2,000 cells.
  • Each PDF contains one puzzle and, optionally, one solution; it does not generate multi-puzzle books.

Common questions

Is every generated maze solvable?

Yes. Generation connects every cell, and the solution search follows those passages. There are no isolated regions or loops in the generated network.

Can I reproduce a puzzle?

Yes. Keep the same dimensions and seed. Changing paper or margins only changes the printed scale, not the passage layout.

Does a larger grid guarantee greater difficulty?

No. It creates more cells and smaller print spacing, but the route and branch structure also affect difficulty. Presets describe density rather than a certified difficulty level.