# Maze Generator

> Generate perfect mazes with a guaranteed single path between entrances — recursive backtracker, adjustable size, export as PNG.

[bfotkit](/) Runs in your browserCategories ▾[All tools 307](/en/tools/)[Text tools9](/en/tools/text-tools/)[Image tools27](/en/tools/image-tools/)[PDF tools20](/en/tools/pdf-tools/)[Social media tools97](/en/tools/social-media-tools/)[Security tools8](/en/tools/security-tools/)[Coding tools25](/en/tools/coding-tools/)[CSS tools12](/en/tools/css-tools/)[Color tools6](/en/tools/color-tools/)[Miscellaneous tools103](/en/tools/miscellaneous-tools/)

[All tools ↗](/en/tools/)[EN](/en/tools/maze-generator/)[PT](/pt-br/ferramentas/gerador-labirinto/)[DE](/de/werkzeuge/labyrinth-generator/)[ID](/id/alat/generator-labirin/)[RU](/ru/instrumenty/generator-labirinta/)

GENERATORS · BFOTKIT

# Maze Generator

Generate perfect mazes with a guaranteed single path between entrances — recursive backtracker, adjustable size, export as PNG.

Columns (odd) Rows New mazeShow solutionDownload PNG

GUIDE

## Maze generator How it works

### How a perfect maze works

The generator starts at one cell and repeatedly walks into unvisited neighbors, carving passages, and backtracks when stuck. The result is a maze with loops nowhere and one unique route from any cell to any other.

### Making it harder

Bigger grids are disproportionately harder: dead ends multiply and the longest path grows quickly. A 51×41 maze is already a solid challenge on paper.

### Solving trick

Keep one hand on the left wall and walk — wall-following solves any perfect maze without loops.

FAQ

## Maze generator FAQ

### Is there always a solution?

Yes. The recursive backtracker carves a spanning tree, so every cell stays reachable and there is exactly one path between any two points.

### Can I print it?

Yes — download the PNG and print it. Walls are crisp black lines on white for cheap printing.

### How big can it go?

Up to 101×81 cells on a 1200×960 canvas — enough for a serious puzzle sheet.

### Does it run locally?

Yes — generation and drawing happen entirely in your browser.

Everything runs in this browser tab. Nothing is uploaded. — For fun only — nothing here is a guarantee.

EXPLORE BY CATEGORY · BFOTKIT

## More tools like this

Pick a category to see every tool in it — then open one and discover related tools.

[All tools 307](/en/tools/)[Text tools 9](/en/tools/text-tools/)[Image tools 27](/en/tools/image-tools/)[PDF tools 20](/en/tools/pdf-tools/)[Social media tools 97](/en/tools/social-media-tools/)[Security tools 8](/en/tools/security-tools/)[Coding tools 25](/en/tools/coding-tools/)[CSS tools 12](/en/tools/css-tools/)[Color tools 6](/en/tools/color-tools/)[Miscellaneous tools 103](/en/tools/miscellaneous-tools/)

[Miscellaneous toolsBulk file renamer online↗](/en/tools/mass-rename-media-files/)[Miscellaneous toolsESRI ASCII Grid and TomTom ASC to CSV↗](/en/tools/asc-to-csv/)[Miscellaneous toolsOnline ruler in inches, cm, mm, and pixels↗](/en/tools/online-ruler/)[Miscellaneous toolsWebsite status checker↗](/en/tools/website-status-checker/)[Miscellaneous toolsQR Code Generator↗](/en/tools/qr-code-generator/)[Miscellaneous toolsSewing pattern PDF scale checker↗](/en/tools/sewing-pattern-scale-checker/)[Miscellaneous toolsCSV to Excel import fixer↗](/en/tools/csv-excel-import-fixer/)[Miscellaneous toolsOnline keyboard, mouse, microphone, and screen tester↗](/en/tools/hardware-input-tester/)

[Browse all tools →](/en/tools/)

[bfotkit](/)[All tools](/en/tools/)[Privacy Policy](/en/privacy-policy/)[Terms & Conditions](/en/terms-and-conditions/)[About Us](/en/about-us/)[Contact Us](/en/contact-us/)

Useful tools. No fuss. © 2026 BFOTKit[bfotkit.com ↗](https://bfotkit.com/)
