Random Dungeon Generator

A free, no-sign-up tool that builds a complete dungeon for D&D 5e, Pathfinder, solo play, or any d20 tabletop RPG — room by room, with monsters, traps, treasure tables, and a printable grid map.

What is a dungeon generator?

A dungeon generator is a tool for tabletop role-playing games (TTRPGs) like Dungeons & Dragons. It procedurally creates a dungeon — the layout, the rooms, and what lives inside them — so a dungeon master (DM) can drop a ready-to-run adventure into a session without hours of prep. Our random dungeon generator produces a room-by-room breakdown (occupants, traps, treasure) plus a printable grid map you can use on a virtual tabletop or print out.

Whether you run D&D 5e, play solo without a DM, or just need a spark of inspiration, a generator turns "I need a dungeon for tonight" into a click.

Advertisement

How to use the random dungeon generator

  1. Pick a size (small / medium / large) for the number of rooms.
  2. Choose a ruleset flavor — generic or D&D 5e naming.
  3. Hit Generate. You get a named dungeon, a grid map, and a room list.
  4. Use the seed to reproduce the exact same dungeon later, or tweak and regenerate.
  5. Export what you need — PNG for a virtual tabletop, JSON for your own notes,Copy text for a session doc, or Print for the table.

Types of dungeon generators

The term dungeon generator covers a few flavors. This tool focuses on the one people search for most — a random dungeon generator that outputs a playable layout:

How the random dungeon generator algorithm works

This tool uses classic procedural generation — the same family of techniques behind roguelike dungeon crawlers. Everything starts from a short text seed:

  1. Hash the seed. The seed string is run through an FNV-1a hash to produce a 32-bit number.
  2. Seed the RNG. That number initializes a mulberry32 pseudorandom generator — small, fast, and fully deterministic.
  3. Place rooms. Rooms of random size are dropped onto a 48×32 grid using rejection sampling: an overlapping candidate is discarded and retried. The best of eight attempts wins, so maps stay dense.
  4. Carve corridors. Each room is connected to the next with an L-shaped corridor, producing the classic room-and-corridor dungeon crawl layout.
  5. Stock the dungeon. The first room becomes the entrance, the last becomes the boss lair, and every room is filled from random tables — monsters scaled by tier, traps, treasure, and a flavor feature.

Because the whole pipeline is deterministic, the same seed always rebuilds the exact same dungeon — which is what makes the seed shareable and the output reproducible for your notes or your own game.

The random tables behind the dungeons

A good random dungeon generator is only as good as its tables. Every roll of this tool draws from these built-in d20-style random tables:

Want to see the ideas behind these tables in more detail? Read the guide to D&D trap and treasure ideas.

FAQ

Is this dungeon generator free?

Yes — completely free and no account required. Generate as many dungeons as you like.

Does it work for D&D 5e?

Choose the "D&D 5e" flavor to get 5e-style monsters with challenge rating labels. The layout works for any TTRPG.

Does it work with Pathfinder 2e and other d20 games?

Yes. The map, layout, and room tables are system-agnostic — use the Generic d20 flavor for Pathfinder 2e, OSR, and any d20 system. Only the D&D 5e flavor adds CR labels.

Can I use it for video games like Minecraft, Skyrim, or Destiny 2?

This tool is built for tabletop play and is not affiliated with any video game. That said, the printable grid map and JSON export work well as layout inspiration for Minecraft builds or Skyrim-style dungeon mods.

How does the dungeon generation algorithm work?

The seed is hashed and fed into a deterministic PRNG; rooms are placed by rejection sampling, connected with L-shaped corridors, then stocked from random tables. Same seed, same dungeon — see the algorithm breakdown above.

Can I print the map?

Yes. Hit Print for a clean black-on-white copy of the map and room list, orDownload map (PNG) to save the grid as an image for a virtual tabletop.

What does the seed do?

The seed reproduces the exact same dungeon, so you can save a layout and come back to it later.

Can I use these dungeons in my own adventure?

Yes. Everything the generator produces is yours to use in home games and published adventures. Layouts are generated on the fly and no two seeds are identical.