Short answer: a server finds each player's inventory, position and advancements by their UUID, and the UUID depends on online-mode. Switch the mode and every player gets a new UUID, so the server creates fresh, empty files for them. To keep everything, stop the server and rename each player's files to the UUID they will have in the new mode, then change online-mode in server.properties.
Why the UUID changes
- Online mode (
online-mode=true): the player signs in with Mojang, and the server uses the UUID of their Minecraft account. It never changes, even when the player renames their account. These UUIDs are version 4: the 13th character is a4, as in069a79f4-44e9-4726-…. - Offline mode (
online-mode=false): nobody checks the account, so the server makes a UUID from the name alone, the MD5 hash ofOfflinePlayer:<name>. These are version 3:b50ad385-829d-3141-…for Notch. Renaming the player gives them a new UUID, and anyone can join under any name.
Three files carry the UUID in their name: the player data in world/playerdata/, the advancements in world/advancements/ and the statistics in world/stats/. Since Java 26.1 they are in world/players/data, players/advancements and players/stats. The player data file also stores the UUID inside it, in I[ ]UUID.
Migrate every player at once
- Stop the server. A running server rewrites player files when people leave.
- In Chrome or Edge, click Open folder in the editor and choose the server folder, the one that contains
server.propertiesandusercache.json. For a hosted server, mount its SFTP folder first. - Click Players, then Online / offline UUIDs.
- Check the mode the editor detected. It looks at who joined last, not at the majority of files: after a switch, old files from the previous mode stay behind for months. Tick the box under it to migrate the other way.
- Check the table. Each player shows their current UUID and the new one. Names come from
usercache.json; type the ones it doesn't know. - Click Migrate. Each player's three files are renamed, the UUID inside the data file is updated, and
usercache.jsonfollows. With Keep previous versions ticked, every replaced file is copied to.dat-editor-historyfirst. - Set
online-modeto the new value inserver.propertiesand start the server.
Going from offline to online
An offline UUID can be calculated in the browser, but an online one has to come from Mojang. The editor looks in two places:
- usercache.json: if the server was online before, the real UUIDs are often still in it, so most players are filled in right away.
- What you paste: for the others, Find on Mojang opens Mojang's profile page for that name in a new tab. Copy everything the page shows and paste it into the box above the table, or into the player's own field. You can paste several answers at once: each one fills the right player. More on finding online UUIDs.
A name with no Mojang account can't be moved to online mode: that player never bought the game, or uses another name on their account.
Things that don't follow the UUID
- Tamed pets remember their owner's UUID inside the world's chunks. After the switch they no longer obey anyone, and nothing in the player files can change that. An operator can reassign a pet in game with a
/datacommand on its owner tag. - Plugins that store their own data by UUID (economies, land claims, permissions) need their own migration tool.
- whitelist.json, ops.json and banned-players.json store UUIDs too. Tick the option in the migration window to update them along with
usercache.json.
Proxies, Geyser and mixed servers
Behind Velocity or BungeeCord, the game servers run with online-mode=false but players still have their online UUIDs, forwarded by the proxy. That is why the editor trusts recent activity over server.properties, and warns you when they disagree. Bedrock players joining through Geyser and Floodgate have UUIDs starting with 00000000-0000-0000-0009-; the editor leaves them alone. Plugins such as FastLogin give online UUIDs to premium players and offline ones to the others: on such servers, untick the players who must stay as they are.