Navigation

HomeImage ToolsCode ToolsMath ToolsDate ToolsGeneratorsUtilities
Color ToolsText ToolsPDF Tools

Generate Sierpinski Maze

Create a maze based on the Sierpinski triangle fractal pattern with recursive subdivision.

What is a Sierpinski Maze?

Pick an iteration count, hit generate, and you get a maze built from recursively subdivided triangles. Each subdivision opens one wall at random, so any point still connects to any other. And everything runs in your browser. Nothing gets uploaded.

FAQ

Is the maze solvable?
Yes, every generated maze is fully connected with paths between all cells.

How complex is the maze?
Complexity grows as 3ⁿ with each iteration, creating increasingly intricate paths.

What makes it a fractal maze?
The maze walls follow the Sierpinski triangle pattern, so zooming into any section reveals the same structure.

Can I increase the iterations further?
Up to 7 iterations are supported. Higher values would produce walls too fine to see clearly.

Related Tools