Don't like ads? Go Ad-Free Today

Maze Generator (SVG)

DeveloperImageRandom
ADVERTISEMENT · REMOVE?
[iotools_maze_generator_svg]
ADVERTISEMENT · REMOVE?

Guide

Maze Generator (SVG)

Maze Generator (SVG)

Generate random perfect mazes as crisp, scalable SVG images directly in your browser. Pick a classic carving algorithm, set the grid size, optionally fix a seed for reproducible output, and download the result as SVG or PNG. Every maze is built from real graph theory — not a stock template — so each click produces a fresh puzzle.

How to Use

  1. Choose an algorithm: Recursive Backtracker (long, twisty corridors), Prim’s (organic and branchy), or Kruskal’s (uniform, balanced).
  2. Set the maze dimensions in columns and rows. Larger grids take longer to solve by eye.
  3. Optionally type a seed string. The same seed plus the same settings always produces the same maze, which is handy for sharing or reprinting.
  4. Tune the look: cell size, wall thickness, wall color, and background color.
  5. Toggle Show Solution Path to overlay the shortest route from start to exit.
  6. Click New Maze for a fresh random layout, then download the result as SVG (for clean printing or vector editing) or PNG.

Features

  • Three real algorithms – Recursive Backtracker, Randomized Prim’s, and Randomized Kruskal’s each produce visibly different maze textures.
  • Reproducible seeds – Any text seed deterministically reproduces the same maze, perfect for puzzle books and lesson plans.
  • BFS solution overlay – Render the shortest entrance-to-exit path with a customizable highlight color.
  • Entrance and exit markers – Optional arrow markers and open walls at top-left (in) and bottom-right (out).
  • SVG and PNG export – Vector SVG for printing at any size, PNG for quick sharing or social posts.
  • Pure client-side – No server processing, no upload limits, your mazes never leave your browser.

FAQ

Want To enjoy an ad-free experience? Go Ad-Free Today

Install Our Extensions

Add IO tools to your favorite browser for instant access and faster searching

Add to Chrome Extension Add to Edge Extension Add to Firefox Extension Add to Opera Extension

Scoreboard Has Arrived!

Scoreboard is a fun way to keep track of your games, all data is stored in your browser. More features are coming soon!

ADVERTISEMENT · REMOVE?
ADVERTISEMENT · REMOVE?
ADVERTISEMENT · REMOVE?

News Corner w/ Tech Highlights

Get Involved

Help us continue providing valuable free tools

Buy me a coffee
ADVERTISEMENT · REMOVE?