Maze Generator
Free online maze generator tool, no installation required
About Maze Generator
Maze Generator builds a perfect maze (one solution between any two cells) using recursive backtracking and renders it as a monospace block-character grid. You set the width, height, and cell pixel size, then can copy the maze as text or download it as an SVG file.
How to Use
1. Enter Width and Height (range 5-51 each). 2. Set Cell Size in pixels (range 10-50, used only for the SVG export). 3. Click Generate. 4. Inspect the maze grid, then use Copy Text or Download SVG.
Maze Algorithm & Dimension Rules
Generation carves passages from cell (1,1) by walking two cells at a time and removing the wall between them, recursing until no unvisited neighbor remains. Dimensions are clamped to 5-51, and even values are bumped up by 1 (so the maze stays odd-sized) because the recursive-backtracker requires an odd grid where borders and walls alternate. Walls render as "██" and open paths as two spaces.
▶Why is my 20x20 maze actually 21x21?
▶What does the Cell Size field control?
▶Does every maze have a unique solution path?
▶Is my data sent to a server?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee