Short answer: a player's progress lives in files named after their UUID. To give it to another account, copy those files to the other account's UUID, and change the UUID stored inside the player file. The editor does it in one window, and lets you pick what to bring over.
Typical reasons: a player bought a new account, a friend lost access to theirs, someone joined under the wrong name on an offline server, or you want a test account with the same gear.
On a server or world folder
- Stop the server (or close the world), then open the folder in the editor with Open folder (Chrome or Edge).
- Open Players and click Move to another account, or open the player's file and use the button under the Visual tab.
- Choose the player to move from, then type the new account's name or UUID.
- The editor shows which UUID the name will have on this server, from the mode it detected. Tick the box under it to use the other kind of UUID. For an online UUID, open Find on Mojang, copy what the page shows and paste it.
- The badge next to the name says New when that account has no file yet, and Update when it already played here. With Update, the parts you tick replace theirs.
- Tick what to bring over: inventory and armor, ender chest, position, health, food, XP and game mode, spawn point, advancements, statistics.
- Choose Move (the old account starts fresh) or Copy (both keep everything), then confirm.
Every file that gets replaced or removed is copied to .dat-editor-history first, as long as Keep previous versions is ticked under the editor. If it isn't, the window says so before anything is overwritten.
With a single file
If all you have is the .dat file, for example one sent by your host, open it and click Move to another account in the Visual tab. Without the folder, the editor can't see the server, so it asks whether the server uses online or offline UUIDs (online-mode in server.properties). It then downloads a copy named <new-uuid>.dat with the new UUID inside.
- Stop the server.
- Put the file in
world/playerdata/(world/players/data/since 26.1). Replace the existing file if that account already played. - To move rather than copy, take the old file out, and rename the matching files in
advancements/andstats/to the new UUID.
What doesn't move
- Tamed pets keep their owner's UUID in the world, not in the player file.
- Plugin data (money, claims, ranks) is stored by each plugin.
- Operator status and whitelist entries stay with the old account: add the new one with
/opand/whitelist add.