Level.dat is the file that stores your world's settings and progress

Level.dat is a single file your game creates the moment you start a new world. It holds the core information about that world — the game mode you chose, the difficulty level, the time of day, which players have visited, and whether cheats are turned on. Without it, your game would not know how to load the world or what rules to follow inside it.

Think of it as the instruction manual for that specific world. When you load a save, the game reads level.dat first to understand what it is about to show you. If the file gets deleted or corrupted, the world still exists on your device, but the game cannot read it anymore.

The file is small — usually under 10 kilobytes — and lives in the world folder alongside all the terrain data and player information. You will not see it in normal gameplay. It only matters when you are moving worlds between devices, backing up saves, or troubleshooting a world that will not load.

Key Takeaways

  • Level.dat stores the world name, game mode, difficulty, and whether cheats are enabled — the settings the game needs to load your world correctly.
  • The file is created automatically when you start a new world and updated every time you play, so you do not need to create or edit it yourself.
  • If level.dat is missing or corrupted, the world folder still exists but the game cannot read it, and you will see an error when trying to load it.
  • When moving a world to another device or backing it up, the level.dat file must come with the entire world folder or the world will not load on the new device.

Where level.dat lives on your device

The location depends on which game and which device you use. On most systems, the world folder — which contains level.dat — sits inside a games folder that the system hides by default.

On Windows, worlds are usually stored in AppData\Roaming\[Game Name]\saves. On Mac, they are in Library/process Support/[Game Name]/saves. On mobile devices like Android or iOS, the game itself manages the folder location, and you cannot access it directly without special tools. If you need to find your world folder on mobile, check the game's settings menu for a "backup" or "export" option instead.

You do not need to open or edit level.dat yourself. The game handles all changes to it automatically. The only time you need to know where it is located is when you are moving an entire world folder to another device or restoring from a backup.

What happens if level.dat is missing or damaged

If the file is deleted or becomes corrupted, the game will not be able to load the world. You will usually see an error message saying the world is damaged or unreadable, even though all the terrain data is still there on your device.

Corruption can happen if the game crashes while writing to the file, if your device loses power during a save, or if a backup or transfer process interrupts the file. Once corrupted, level.dat cannot be repaired — the game cannot reconstruct it from the other files in the world folder.

If this happens, your options are limited. If you have a backup of the world from before the corruption, you can restore that backup. If not, the world is no longer loadable, though the terrain files themselves are still on your device taking up space. You can delete the entire world folder to free up that space.

How to back up or move a world safely

To move a world to another device or create a backup, you must copy the entire world folder — not just level.dat. The world folder contains level.dat plus all the terrain chunks, player data, and other files the game needs.

On Windows or Mac, locate the world folder, right-click it, and select "Copy". Then paste it into the same location on the other device, or into a backup location on an external drive. Make sure the entire folder copies, not just individual files inside it.

On mobile devices, use the game's built-in export or backup feature instead of trying to copy files manually. Open the game settings, look for "Backup", "Export World", or "Cloud Save", and follow the prompts. This ensures level.dat and all related files transfer together correctly.

Never copy just level.dat by itself. The game needs the whole world folder to function. If you move only the settings file without the terrain data, the game will not be able to load anything.

Why you should not edit level.dat directly

Some players find tools online that claim to let you edit level.dat to change world settings after creation — switching game mode, adjusting difficulty, or enabling cheats retroactively. These tools exist, but they carry real risks.

Editing the file with the wrong tool or in the wrong way can corrupt it when ready, making the world unloadable. Even if the edit appears to work, it can cause crashes, missing chunks, or player data loss the next time you load the world. The game expects level.dat to be in a specific format, and hand-editing it almost always breaks that format.

If you need to change a world setting, the safest approach is to create a new world with the settings you want. If you have already invested time in a world and cannot change a setting, that is a limitation of the game design, not something a file editor can safely fix.

When level.dat updates and what triggers it

The game updates level.dat every time you save — which happens automatically at regular intervals and also when you exit the world. It records the current time in the world, which players have been online, and any settings you have changed through the game menu.

You do not see this happening. The update is invisible and takes a fraction of a second. The only time you might notice level.dat is if the game crashes during a save and the file becomes corrupted, or if you are comparing file timestamps to figure out when a world was last played.

If you have turned off autosave in the game settings, level.dat still updates when you manually save or exit the world. The file is essential to the game's operation, so it updates regardless of your save preferences.

Frequently Asked Questions

Can I play a world on two different devices at the same time?

Not safely. If you load the same world folder on two devices simultaneously, both will try to update level.dat and the world data at the same time, which corrupts the files. Always close the world on one device before opening it on another. If you want to play the same world on multiple devices, use the game's cloud save or sync feature instead.

What does "world is corrupted" mean when I try to load it?

Usually it means level.dat is damaged or missing. Less often it means the terrain data itself is corrupted. Try restoring from a backup if you have one. If not, the world cannot be recovered. You can delete the world folder to free up space.

Do I need to do anything to level.dat before moving a world to another device?

No. Copy the entire world folder as-is. The game will read level.dat automatically when you load the world on the new device. Do not try to edit or modify the file before moving it.

Why does my world say it is from a different version than the one I am playing?

Level.dat records which game version created the world. If you update the game and load an old world, the game may show a warning. Usually the world still loads and works fine. If it does not load, try updating the game fully or restoring from a backup made with the current version.

Can I recover a world if level.dat is deleted?

Not without a backup. The terrain data remains on your device, but without level.dat the game cannot read it. If you have a backup from before the deletion, restore that. Otherwise the world is unrecoverable.