DnD maze generator
This DnD maze generator builds a dungeon map on a square grid, with open rooms and looping halls for your encounters. Each square can stand for five feet. Set the size, rooms and loops, then print the map as a 300 DPI PNG or a two page PDF with an answer key for the game master.
By The Mazeloom team (Product and testing). Last updated .
How to use the DnD maze generator, step by step
- First, keep the shape on Square grid and pick Dungeon map in the Style menu.
- Then set the columns and rows. For example, 24 by 24 gives a 120 by 120 foot dungeon at five feet a square.
- Move the Rooms slider to about 5 so the party has halls to fight in.
- Set the loops to around 20, so some corridors connect in a circle.
- Press New maze until the layout fits your adventure, and note the seed.
- Finally, press Download PNG + PDF and print the map for the table.
The live preview is always free, and you get one free PNG and PDF export a day. See the pricing page for Pro, $19 once, with clean files and a commercial license, or read how we test every puzzle.
Why a dungeon map needs rooms and loops
A pure maze has one path between any two points. That works for a puzzle, but it plays badly at the table. The party walks one long thread, and every fight happens in a corridor one square wide. So the map feels cramped and the players have few real choices.
Rooms fix the first problem. Each room is an open hall of two to six squares a side, which gives space for a fight, a trap you describe, or a shop. Loops fix the second problem. When some dead ends get a second way out, the party can circle around a monster or split up. As a result, the dungeon feels like a real place instead of a puzzle page.
How the DnD maze generator draws the grid
The Dungeon map style uses solid walls and a parchment floor. In addition, every corridor and every room shows a square grid. Most tabletop games use one inch squares at five feet each, so you can treat each grid square as five feet without any extra math.
Size works the same way. A 20 by 20 map covers 100 by 100 feet, and a 30 by 30 map covers 150 by 150 feet. For a short session, start near the easy or medium preset. For a long crawl, go up to 40 or more columns, but keep in mind that the squares get smaller on one sheet of paper.
The engine also checks every map before you see it. A breadth first search walks from the entrance to the exit, so every room and corridor is reachable. Therefore, no part of the dungeon is sealed off by accident.
Print a battle map with the DnD maze generator
Each download gives a 300 DPI PNG, an answer PNG and a PDF on US Letter or A4. The first page is the map for the players. The second page shows the shortest route, which works as a quick key for the game master.
For miniatures, print the PNG at a larger size at a copy shop, or split it across several sheets in your printer settings. Also, write the seed on your session notes. The same seed and settings rebuild the same dungeon later, so you can print a fresh copy after the old one gets coffee on it.
What this map maker does not do
The tool draws the layout only. Rooms are empty halls, so you add the monsters, traps, doors and treasure yourself, either on the print or in your notes. There is no fog of war and no playable online version.
Mazeloom is not affiliated with Wizards of the Coast. However, the grid and the five foot squares fit any tabletop game that uses a square battle map, so you can use the prints for other systems as well.
Map settings in this DnD maze generator
| Setting | Value |
|---|---|
| Grid size | 4 to 80 squares a side (20 to 400 feet at 5 ft a square) |
| Rooms | 0 to 12 halls, 2 to 6 squares a side |
| Loops | 0 to 100% of dead ends get a second exit |
| Entrances | corners, sides or center |
| Downloads | 300 DPI PNG, answer PNG, two page PDF (SVG with Pro) |
DnD maze generator tested with a real run
We built this maze with the same code the tool on this page uses, with this page's settings and a fixed seed. So the image and the numbers below come from that run, not from a mockup.

- Test input
- 24 x 24 grid, seed sample-dnd-maze-generator
- Output
- PNG + PDF with answer key
- Cells
- 576
- Dead ends
- 44
- Loops
- 54
- Answer length
- 89 cells
- Rooms
- 5
- PDF size
- 22 KB
- Build time
- 18 ms
How we check mazes: a solver walks every maze before it is saved, and we open each PDF to check the page, the answer key and the print size. More on the about page.
DnD maze generator FAQ
Is each grid square five feet?
The map has no fixed scale, but most tables read one square as five feet. So a 24 by 24 map covers 120 by 120 feet.
Can I add monsters or traps to the map?
Not inside the tool. Rooms are empty, so mark encounters on the print or keep them in your session notes.
Can I use the maps in a published adventure?
Yes, with Pro. It costs $19 once and gives clean files without the small credit line, plus a commercial license.
How do I get the same dungeon again?
Save the seed shown above the preview. The same seed and settings always rebuild the same map.