Mazes with exactly one way through
Printable mazes in four sizes, with solutions on a separate page. Every one is verified to be a perfect maze — precisely one path between any two points, proven rather than assumed.
Generated on this device — nothing is uploaded
What "perfect" means, and how it is checked
A perfect maze has exactly one path between any two cells. That is not a matter of taste — it is what makes a maze solvable by reasoning rather than by luck, and unlike most puzzle guarantees it has a clean mathematical statement. The passages form a graph over the cells, and exactly one path exists between every pair precisely when that graph is a tree: connected, and with exactly one fewer passage than it has cells.
So the generator does not simply use an algorithm that ought to produce a tree. It builds one and then checks both halves independently — a flood fill confirming every cell is reachable, and a count confirming there are no loops. It also checks that no wall was removed from one side only, which produces a maze that is subtly one-way and looks perfectly normal when drawn.
Braided mazes deliberately break the property by knocking through dead ends, which creates loops and therefore several routes. That is a legitimately different puzzle, so it is offered explicitly and labelled — never as a silent side effect.
Why these feel like mazes
They are carved by a randomised depth-first walk, which produces long winding corridors with a few long dead ends. The obvious alternative — growing outward from a seed point — produces many short branches and a maze you can solve almost at a glance. The algorithm is a design decision, not an implementation detail.
The solution path is drawn from the shortest route between the corners, which in a perfect maze is also the only route. In a braided maze it is one of several, which is why the two styles are labelled differently.
Printing
Mazes are drawn as SVG line work, so they stay crisp at any size and print as thin black strokes rather than grey blocks. Solutions go on their own page at the end, so a set can be handed out without them.
The largest size is best on A3 or in landscape. At forty-five cells across on A4 portrait the corridors get narrow enough to be fiddly with a pen.
Related
Word search generator and the Sudoku generator for other printables, or the puzzle hub for everything.
Questions people actually ask
Is there always exactly one way through?
In the perfect style, yes, and it is verified rather than assumed. A maze has exactly one path between any two cells precisely when its passages form a tree — connected, with one fewer passage than it has cells — and both halves of that are checked on the finished maze before it is shown.
What is a braided maze?
One where some dead ends have been knocked through, creating loops and therefore several routes to the exit. It is a genuinely different puzzle, rewarding exploration rather than pure deduction, and it is labelled as such — the perfect-maze guarantee does not apply to it.
Can I use these commercially?
Yes. They are generated on your machine, there is no account, no watermark and no limit. What you print or download is yours.
Will the same seed give the same mazes?
Always — same walls, same solution, same order. Type something memorable in the seed field and that set is reproducible whenever you need it again.
Why do the largest ones look cramped when printed?
Forty-five cells across on A4 portrait leaves corridors about three millimetres wide, which is fiddly with a pen. Print that size on A3, in landscape, or drop to thirty.