
Player data & inventories · Java · Intermediate
How to Transfer Inventory, XP, Advancements, and Stats to a New Minecraft Account
Switching to a new Minecraft account or moving a server between online and offline modes often results in losing your inventory, experience, and achievements. This happens because Minecraft ties your progress to a unique identifier rather than your username. By renaming a few key world files and editing a couple of tags in our browser-based NBT Editor, you can seamlessly transfer all your data, statistics, and even tamed pets to your new account.
What you need
- Access to your Minecraft Java Edition world folder (from your local saves folder or downloaded from your server)
- Your old account's UUID and your new account's UUID (both hyphenated and 4-integer array formats if transferring pets)
- The NBT Editor tool on our site (runs directly in your browser without uploading your files)
- A complete backup copy of your world folder before making any changes
Step by step
1Back Up Your World and Log In Once
Before altering any game files, duplicate your entire world folder and store it somewhere safe as a backup. Next, log into the world or server using your new Minecraft account, move around slightly, and then disconnect and stop the server or exit to the main menu. Doing this forces the game to generate fresh player files for your new account, making it easy to find your new UUID directly from the server logs or the newly created files.
Tip: You can easily spot your new UUID by sorting the playerdata folder by 'Date Modified' right after logging out with the new account.
2Rename Your Playerdata, Advancements, and Stats Files
Navigate into your world folder and open the 'playerdata' subfolder, where you will see files named after player UUIDs ending in .dat (for example, 12345678-1234-1234-1234-123456789abc.dat). Delete the newly generated .dat file matching your new account's UUID, then rename your old account's .dat file to your new account's UUID. Repeat this exact deletion and renaming process inside the 'advancements' folder and the 'stats' folder, where the files match your UUIDs but end in .json instead of .dat.
Tip: Ignore or delete any files ending in .dat_old, as those are just automatic single-step backups created by the game.
3Update Singleplayer Level.dat (Singleplayer Worlds Only)
If you are playing on a singleplayer world, Minecraft overrides the playerdata folder with a master player profile stored inside the root level.dat file. Open our NBT Editor, click to open your world folder or .zip, and select 'level.dat' from the file tree. Expand the 'Data' compound tag, find the 'Player' compound tag, and either delete the entire 'Player' tag (which forces the game to load your newly renamed playerdata file instead) or expand it and edit the 'UUID' tag inside to match your new account. Click Save in the NBT Editor and replace your original level.dat with the downloaded file if you opened it individually.
Tip: Deleting the 'Player' tag inside level.dat is usually the cleanest method because it immediately syncs singleplayer behavior with the multiplayer playerdata folder.
4Transfer Tamed Pets in the NBT Editor
Tamed wolves, cats, and parrots remember their owner's UUID inside their entity data, meaning they will stay sitting and ignore you until updated. If a pet was riding on your shoulder when you logged out, open your newly renamed playerdata .dat file in our NBT Editor, look inside 'ShoulderEntityLeft' or 'ShoulderEntityRight', and update the 'Owner' tag to your new UUID. For pets sitting in the world, use our NBT Editor to open your world folder, navigate to the 'entities' folder (or 'region' folder in versions before 1.17), open the .mca region file where your base is located, and search the chunk's 'Entities' list for your pet's ID (such as minecraft:wolf). Change the pet's 'Owner' IntArray tag (or 'OwnerUUID' string tag in versions prior to 1.16) to match your new account's UUID, then save the file.
Tip: To easily find which .mca file your pets are in, press F3 in-game while standing next to them to check your chunk and region coordinates.
How it works
Minecraft Java Edition uses Universally Unique Identifiers (UUIDs) to track players so that you can freely change your display name without losing your inventory or server ranks. When a world saves your progress, it splits your character's footprint across three distinct directories: 'playerdata' holds an NBT-formatted .dat file containing your inventory, XP, health, Ender Chest, and coordinates; 'advancements' holds a plain-text .json file tracking unlocked recipes and achievements; and 'stats' holds a .json file counting block breaks, mob kills, and distance traveled.
When you switch to a different Microsoft account, or when a server changes its server.properties file from online-mode=true to online-mode=false, the UUID assigned to your character changes completely. Because the game looks for files matching your active session's UUID, it creates a blank slate if no matching files exist. By renaming the existing .dat and .json files to the new string, you trick the server into loading your old character state for your new identity.
Singleplayer worlds add one architectural quirk: the root level.dat file contains a 'Player' compound tag that stores the state of whichever player last opened the world locally. Whenever a singleplayer world loads, it prioritizes this embedded 'Player' tag over the external 'playerdata' folder. Furthermore, since version 1.16, internal NBT tags like a pet's 'Owner' tag no longer store UUIDs as a hyphenated text string, but rather as an IntArray of four 32-bit signed integers derived by splitting the 128-bit hexadecimal UUID into four equal parts.
Common mistakes
- Forgetting to edit or remove the 'Player' compound tag inside level.dat on a singleplayer world, which causes the game to overwrite your renamed playerdata file with your old data or a blank inventory.
- Editing or renaming files while the world is still open in Minecraft or while the multiplayer server is actively running, which causes the game to overwrite your manual changes the moment it auto-saves or shuts down.
- Leaving out the hyphens when renaming the files inside the playerdata, advancements, and stats folders; the filenames must follow the standard 8-4-4-4-12 hyphenated format.
- Entering a hyphenated text string into a pet's 'Owner' tag in Minecraft 1.16 or newer instead of the required 4-integer IntArray (which you can copy directly from the 'UUID' tag inside your new account's freshly generated playerdata .dat file).
FAQ
Why did my UUID change when I didn't buy a new account?
If you play on a server and the administrator switched the server to offline mode (or set up a proxy network improperly), the game stops fetching your official Mojang UUID and instead generates a different, offline UUID mathematically derived from your username.
How do I get the 4-number array for my new UUID to transfer my pets?
Log into the world with your new account once to generate a fresh playerdata .dat file. Open that file in our NBT Editor and look at the root 'UUID' IntArray tag—it will display the exact four integers you need to copy into your pet's 'Owner' tag.
Does transferring my playerdata also move my Ender Chest items?
Yes, your entire Ender Chest inventory is stored inside the 'EnderItems' list tag within your playerdata .dat file, so renaming that file automatically transfers your Ender Chest contents along with your main inventory and XP.
To transfer all player progress to a new Minecraft account, back up your world, rename the UUID files inside the playerdata, advancements, and stats folders to match your new UUID, and use our NBT Editor to clear the singleplayer level.dat Player tag and update pet Owner tags.