Maze Generator
Create a maze, solve it on screen, or print a puzzle and answer key
Whole number from 8 to 40
Whole number from 8 to 40
0–4294967295. The same dimensions and seed reproduce the same maze.
Move the blue dot with the arrow buttons. Select the maze to use your keyboard arrow keys.
Maze challenge
Print and save
Choose portrait A4 or US Letter and check the page count in the print dialog. SVG export follows Show answer. Your playing route is not included in saved files.
Mazes are generated in your browser. Nothing is autosaved; download a file or keep the dimensions and seed to use this maze again.
What this tool does
Build a rectangular maze with your own row and column counts, then solve it on screen or turn it into a printable activity. A seed reproduces the same layout, so several people can try the same puzzle. Print a puzzle and a separate answer key on A4 or US Letter, download an offline HTML worksheet, or save the maze as an SVG image.
Common use cases
- Make an activity sheet for a classroom or party
- Play a maze on screen using arrow buttons or a keyboard
- Share a seed and dimensions so friends can try the same puzzle
How to use it
- Enter rows, columns, and a seed, then select Create maze.
- Move the blue dot using the arrow buttons, or select the maze and use your keyboard arrow keys.
- Turn on Show answer to see the route to the exit. Restart puzzle returns the dot to the entrance.
- Select paper and pages before printing or saving HTML. Save SVG uses the current Show answer setting.
Input and output example
Important notes
- Rows and columns each support whole numbers from 8 to 40. Seeds range from 0 to 4294967295.
- The same dimensions and seed reproduce the same layout. Make another maze picks a new seed.
- Every cell is reachable and there are no loops, so the route between entrance and exit is unique.
- Puzzle-only HTML does not include the answer. SVG follows Show answer; your blue playing route is never exported.
- Nothing is autosaved. Check paper size and page count in the print preview before printing.
Frequently asked questions
- Can two people try the same maze?
- Yes. Use the same rows, columns, and seed. You can also share the downloaded HTML worksheet; it is for viewing and printing, while interactive play is available on this page.
- Can I print a puzzle without the answer?
- Select Puzzle only before printing or saving HTML. If saving SVG, switch off Show answer first.