A small 10×10 maze
Setting Columns and Rows to 10 and clicking Generate maze carves a 10×10 grid maze using randomized depth-first search, with a guaranteed path through every cell.
Generate random printable mazes in any size and download as PNG — free maze maker.
About
Generates a random, always-solvable maze at whatever grid size you choose, ready to download as a PNG.
Teachers use it to print fresh maze puzzles for classroom activities, while parents use it to keep kids entertained with a new maze whenever they want one. It's one of many free generators on Toolapt, and like every tool here, it's free to use with no sign-up and no limit on how many times you run it.
Examples
4 worked examples
Setting Columns and Rows to 10 and clicking Generate maze carves a 10×10 grid maze using randomized depth-first search, with a guaranteed path through every cell.
Setting Columns and Rows to 40 draws a denser 40×40 grid on the canvas, with every cell still reachable and no isolated pockets.
After generating any maze, clicking "Download PNG" saves it as maze.png. The drawing is scaled to about 600px across, so a 20×20 maze downloads at 601×601 with 30px cells.
Setting Columns and Rows to 60, the largest supported size, still generates in the browser almost instantly — the cells just get smaller (10px each).
FAQ
Quick answers to common questions about the Maze Generator.
It generates a random, solvable maze at the grid size you choose, and lets you download it as a PNG image.
Yes. It's free, with no sign-up, no watermark and no limit on how many times you use it.
Yes. The maze is generated and drawn entirely on your own device — nothing is sent to a server.
Yes. The carving algorithm starts from one cell and only ever opens a passage to an unvisited neighbour, so every cell is reachable and the maze always has a path through it.
Any grid from 5x5 up to 60x60 columns and rows.
A PNG image, sized automatically to fit the number of columns and rows you chose.
Yes. The page is fully responsive and works on mobile, tablet and desktop browsers alike.
Grids are capped at 60x60 to keep generation and rendering fast in the browser.
Did Maze Generator work for you?