Edit Minecraft .dat and .nbt files in your browser
A free online NBT editor and viewer for Minecraft save files. Open level.dat, a player file, servers.dat or a structure, change any value with its real NBT type, and download it in the same format. The file never leaves your computer.
Drop a Minecraft file here
Or pick one from your computer. It is opened, edited and rebuilt inside this page; your file is never sent to a server.
In Chrome or Edge you can also open a whole world or server folder and save files straight back to it.
Works with level.dat, player .dat files, servers.dat, structure .nbt files, .schem, .litematic, Bedrock level.dat and, read-only, region .mca files.
Every value shows its NBT tag type
BByteSShortIIntLLongFFloatDDoubleStrString[ ]List{ }CompoundB[ ]Byte arrayI[ ]Int arrayL[ ]Long array
How it works
Close Minecraft first, or stop your server. The game rewrites these files when it saves, and it would overwrite your changes.
-
Open a copy of the file
Copy the world folder somewhere safe, then drop the file you want to change onto the editor. Compression and Java or Bedrock byte order are detected for you.
-
Change values in the tree
Click a value to edit it. Use the ☰ menu on a row to add, duplicate or remove tags, or to change a tag's type. Prefer text? Switch to the SNBT view.
-
Download and replace
Download the edited file and put it back where it came from, with the same name. Start the game and check your change.
What you can edit
The files below are single NBT files, so this editor opens them directly. Each guide shows the exact tags to change.
| File | What it holds | Guide |
|---|---|---|
level.dat | World name, game mode, hardcore, cheats, difficulty, spawn point. Before 26.1 also game rules, the seed and the singleplayer player. | Edit level.dat |
players/data/<uuid>.datplayerdata/<uuid>.dat | One player's inventory, ender chest, position, health, XP and game mode. | Edit player data |
data/minecraft/game_rules.dat | Game rules such as minecraft:keep_inventory (Java 26.1 and later). | Change game rules |
servers.dat | Your multiplayer server list: names, addresses, icons. | Edit servers.dat |
generated/…/*.nbt | Builds saved with a structure block. | Edit structure files |
Bedrock level.dat | World settings, cheats and game rules for Bedrock worlds. | Bedrock level.dat |
Popular guides
Step-by-step fixes for the edits people make most often, checked against current Java and Bedrock files.
- How to edit level.dat in Minecraft Java Editionlevel.datGame mode, hardcore, cheats, difficulty and spawn, with the 26.1 layout changes.
- How to turn off Hardcore mode in an existing worldlevel.datSwitch a Hardcore world to normal survival and bring a dead player back.
- How to enable cheats in Minecraft after creating the worldlevel.datThe temporary LAN trick, and the permanent allowCommands flag.
- Change Minecraft game rules without commandslevel.dat or game_rules.datkeep_inventory and friends, in the three formats Java has used.
- Edit Minecraft player data: inventory, XP, health and positionplayers/data/<uuid>.datFind the right file, then change items, XP, health or game mode.
- Move a stuck player: change position or dimension offlineplayers/data/<uuid>.datEscape crash loops, lava and broken chunks by editing Pos and Dimension.
- Java 26.1 world format changes: what moved wherethe whole world folderEvery moved folder and renamed tag, in two tables.
- The NBT format explained: tags, compression and byte orderany .dat or .nbtThe 13 tag types, their limits, compression, and Java versus Bedrock.
- Edit Bedrock Edition level.datminecraftWorlds/<id>/level.datHeader, byte order, world settings, and what lives in the db folder instead.
Questions and answers
What is a .dat or .nbt file in Minecraft?
Both are NBT (Named Binary Tag) files: a compact binary tree of named values, each with a fixed type such as Byte, Int, Long or String. Minecraft uses them for world settings (level.dat), player data, the server list, maps and structures. They are usually gzip-compressed, which is why a text editor shows gibberish. How NBT works.
Are my files uploaded anywhere?
No. The page reads the file with your browser, edits it in memory and builds the download locally. You can check this in your browser's network panel: opening or saving a file sends no request.
Will saving change anything I didn't edit?
No. Each value keeps its original tag type, longs keep every digit (world seeds included), and the file is written back with the same compression, byte order and root name. An unedited file comes out with identical NBT content.
Can I edit files straight from my world or server folder?
Yes, in Chrome and Edge. Click Open folder and choose the server folder (the one with server.properties), a single-player world folder (the one with level.dat) or your .minecraft folder. A playerdata folder alone works for editing files one by one, but player names, the Players, Maps and Stats tools and moving players need the world or server folder. The editor lists its level.dat, player files (named after the player when the server's usercache.json is there) and servers.dat. Save to file shows what changed, writes the file back in place and keeps the previous versions in a hidden .dat-editor-history folder, so you can compare or go back with the History button. Files that can't be read are flagged, with an offer to restore an earlier copy. The browser asks for your permission first, and nothing leaves your computer. For a remote server, mount its SFTP folder as a drive and open that. Other browsers use Open file and Download.
What is the Visual tab?
A simpler view for the common jobs: hardcore, cheats, datapacks that stop a world from loading, difficulty, game rules and the seed in level.dat, a player's inventory, armor, ender chest, health and position, and the server list. Item ids are suggested as you type. Every change also appears in the Tree view, and anything the Visual tab doesn't show is kept as it was.
Why don't my changes show up in the game?
Usually because the game was running. Minecraft keeps the world in memory and saves over your file when you quit, so edit only while the game or server is closed. In singleplayer, also check that you edited the right player data: before Java 26.1 it is the Player tag inside level.dat; from 26.1 it is a file in players/data. Where player data lives.
Does it work with Bedrock Edition?
Yes, for Bedrock's level.dat and .mcstructure files, which are little-endian NBT. Bedrock stores chunks, entities and player inventories in a LevelDB database (the db folder), which is not a single NBT file and can't be opened here. Editing Bedrock level.dat.
Can I open region (.mca) files?
Yes, to look inside them. A region file packs up to 1,024 chunks; the editor shows them on a map and opens any chunk in the Tree view, read-only. Its search finds an item, a container or a name across the whole region: which chest still holds the diamonds, where a named pet or a sign is. To change chunks, use a region editor such as MCA Selector or Amulet.
Can I search or change every player at once?
Yes, in Chrome and Edge, after Open folder on a world or server folder. The Players button lists everyone with their game mode and position, finds who carries an item (shulker boxes and bundles included), and can remove that item, move the players you tick, or change their game mode. Each file is copied to the history first, and those players must be offline.
Can it switch my server between online and offline mode without losing inventories?
Yes. In the Players window, “Online / offline UUIDs” detects which mode the server uses from its recent activity, then renames every player's files to the new UUID and updates usercache.json. Players who already lost their inventory have two files: you choose which one to keep. “Move to another account” gives one player's inventory and progress to another name. How it works.
Can I see my world's maps or my players' stats?
I opened a .dat file and it isn't Minecraft. Why?
The .dat extension is used by thousands of programs for their own formats: other games' saves, app data, or winmail.dat attachments from Outlook emails. This editor reads Minecraft's NBT format only. If the file came from an email, it is almost always winmail.dat, which needs a winmail.dat viewer instead.
Is this like webNBT or NBTExplorer?
Yes, it does the same job. webNBT was one of the first NBT editors that ran in the browser, and NBTExplorer is a desktop program you install. DAT Editor runs in the browser like webNBT, nothing to install, and knows the current formats: item components from 1.20.5 and 1.21.5, the 26.1 world layout and Bedrock files.
How do I change a value's type, for example Int to Long?
Open the ☰ menu on the row and choose NBT type. In a list, every item changes together, because NBT lists hold one type only. When adding a value you can also type a suffix: 5b is a Byte, 5s a Short, 5L a Long, 1.5f a Float.
Is it free? Do I need an account?
It is free and needs no account. The site is funded by ads shown around the editor, never inside it.
Something doesn't work. How do I report it?
Email [email protected] with the Minecraft version, the file type and what you expected to happen. See the contact page.