Maze generator

Use this experimental tool to generate mazes in a variety of themes, styles and sizes - including LEGO®, that could be built!

Work in progress. Let me know what you think: @webdeveloperjon

Select options

If you have a single standard 32x32 baseplate, an 8x8 maze with a 2/4 corridor will fit perfectly.

Created using Mazes by Jonathan Harvey

Download image (*.svg)

Build this maze:

What you'll need to build this maze:

A base plate size of 40 x 40.

  4x1 x 31

  4x2 x 78

  2x2 x 3

  3x2 x 3

  3x1 x 2

  2x1 x 10

LEGO® - Further ideas!

Generate a maze and complete it - great! Take it to the next level with these suggestions:

  • Build the maze, but raise the walls and add decorations: doors, lights, turrets, steps or bridges!
  • Turn it into a game by making play pieces and using a dice to move through the maze (note, you may need to choose a wider corridor size).
  • Add more game elements by placing treasure at the "exit" or throughout the maze for collection - or remove a wall to make alternative paths - or add squares to avoid such as traps or doors.
  • Turn it into a "marble" maze (use an actual marble, or LEGO® head!). Make it harder by covering the maze with plates - except the entrance and exit squares of course!

Changelog:

  • 3/9/2021: Added a "Road" rendering mode.
  • 19/4/2021: Replaced start/exit circles with enter/exit icons. Decreased animation delay.
  • 10/4/2021: Added base-plate dimensions.
  • 1/4/2021: Corrected "Build this maze" brick counters.
  • 30/3/2021: Added brick breakdown, and animation on main render.
  • 24/3/2021: Improved block fitting to alternate between horizontal and vertical depending on the space available for a more natural look.
  • 20/3/2021: Added block fitting code to make blocks appear as one would build (max brick length = 4).