What level.dat Records

level.dat is the “ID card” of every Minecraft world save, located in the root folder of the world directory. It uses the NBT (Named Binary Tag) binary format to store the world’s metadata, which commonly includes:

  • World name (the title shown in your world list)
  • Game mode (Survival / Creative / Adventure / Spectator)
  • Random seed (the seed that determines terrain generation)
  • Spawn point coordinates, plus time and weather state
  • Game rules (gamerules, such as whether the day/night cycle runs or whether items drop)

The actual block, chunk, and entity data is not stored in level.dat—Java Edition keeps it in region/, while Bedrock keeps it in db/. The job of level.dat is to let the game “recognize” the world and load it correctly.

Why It Must Be in the Root Folder

When the game imports or opens a world, it first looks for level.dat in the save’s root folder. If the file is missing, in the wrong place, or the world is wrapped in an extra layer of folders, the game can’t find the entry point, so the import fails or the world won’t open. This is also one of the most common causes of the world failing to import—rather than the file actually being “broken.”

Don’t Manually Tinker with level.dat

Because it’s a binary format, forcing edits to level.dat with an ordinary editor can easily break its structure. When you want to understand world information or deal with import issues, a safer approach is to use mcworld.app for a free on-device diagnosis that reads out the type, version, and health report. If there’s a structural problem, it can perform a simple repair and output a new file that imports normally. The whole process never overwrites your original file—it generates a new version each time and keeps the original for traceability, and paid tasks are automatically refunded if they fail. Further reading: What is the .mcworld file and Where are Minecraft saves located.