About Maze Generator

Generate random printable mazes in any size, from 5×5 to 80×80. Adjustable difficulty, optional solution, PNG download, clean print layout. Free, no sign-up.

How to use

  1. Set columns and rows to define the maze grid. The total cell count drives the difficulty meter — 5×5 is easy, 30×30 is hard, 50×50 is very hard.
  2. Adjust cell size in pixels to control how big the maze prints. Larger cells = fewer cells fit on a page. The default 22px works well for screen and print.
  3. Click 'Generate new maze' or change the columns/rows to create a fresh maze. Cell size and wall thickness changes redraw without changing the maze layout.
  4. Toggle 'Show solution' to overlay the unique path from S (start, top-left) to E (end, bottom-right) in blue. Toggle 'Start & end markers' to remove the S/E letters if you'd prefer a clean unmarked maze.
  5. Click Download PNG for a sharp image, or Print for a clean printable layout (auto-fits to one page, includes a small legend at the bottom).

Frequently asked questions

What's the difference between this and a maze book?
This generates infinite unique mazes on demand at any size. Maze books have a fixed selection — fine for a few sessions, but kids burn through them fast and adults memorize the patterns. Print one new maze every morning for breakfast or every evening before bed and never repeat.
Why is the start always top-left and end always bottom-right?
Standard convention for printed mazes — readers naturally trace from upper-left (where they'd start reading) to lower-right (the natural end of a page). The solution is unique regardless of where you start, but having a fixed entry/exit makes the maze easier to grade for classrooms or competitions.
How big can I make the maze?
Up to 80×80 cells (6,400 cells total). At small cell sizes (e.g. 6px) that's a printable 480×480 pixel maze that fits a single page comfortably. At large cell sizes (40px+) the canvas may exceed a single sheet — use a smaller cell size or split into multiple smaller mazes.
Is the maze always solvable?
Yes — the recursive backtracker algorithm guarantees every cell is reachable from every other cell. There's always exactly one path from start to end. Toggle 'Show solution' to confirm.
Can I use this for classroom worksheets?
Yes. Generate a maze, click Print, and you have a clean worksheet ready. For variety, use different sizes for different grade levels — 8×8 for K-2, 12×12 for grades 3-5, 20×20+ for older students. The PNG export works well for inserting into Google Docs or Word for custom worksheets with instructions and student name fields.

Part of ToolFluency’s library of free online tools for Games & Fun. No account needed, no data leaves your device.