Short answer: open https://api.minecraftservices.com/minecraft/profile/lookup/name/ followed by the player's name in your browser. Mojang answers with a short line such as {"id":"069a79f444e94726a5befca90e38aaf5","name":"Notch"}: the id is the online UUID, written without dashes. In the editor, the Find on Mojang link next to each player opens that page for you, and you can paste the whole answer back.
Online or offline UUID?
- Online UUID: the one of the Minecraft account, used by servers with
online-mode=trueand by single-player worlds. Mojang gives it out, and it never changes, even when the player renames their account. Its 13th character is a4. - Offline UUID: made from the name alone, used by servers with
online-mode=false. No lookup needed: it is the MD5 hash ofOfflinePlayer:<name>, and the editor calculates it for you. Its 13th character is a3.
Three ways to get an online UUID
1. Mojang's page
Open https://api.minecraftservices.com/minecraft/profile/lookup/name/Notch, replacing Notch with the player's name. The page shows the account's exact name and its id. If it says the profile can't be found, no Minecraft Java account uses that name: check the spelling, or the player may have changed name since.
Your browser asks Mojang directly, so nothing passes through this site. Mojang limits how many lookups it answers per minute: if you get an error after many tries, wait a moment.
2. Your server's usercache.json
Every server keeps a usercache.json next to server.properties, with the name and UUID of everyone who joined recently, plus anyone named in commands such as /whitelist add or /op. On an online-mode server, those are online UUIDs. The editor reads this file by itself when you open the server folder, which is why most players need no lookup at all.
A trick for players who never joined: while the server runs in online mode, /whitelist add <name> makes the server look up the name and store its UUID in usercache.json and whitelist.json.
3. In the game
An operator can type /data get entity <name> UUID while the player is online. The game answers with four numbers (the UUID as an int array), which is the same value in another form. The editor's Tree view shows it the same way, under I[ ]UUID.
Using it in the editor
When you move a server to online mode or give a player's data to another account, players whose online UUID isn't in usercache.json get a Find on Mojang link and a field. Open the link, select everything on the page, copy, and paste it into the field: the editor picks out the id and adds the dashes. In the migration window, a single box above the table takes several answers at once and fills each player by name.
The editor never contacts Mojang itself: Mojang doesn't let web pages read its answers, and it refuses requests from shared cloud servers. Copying from Mojang's page in your own browser is the reliable way, and it keeps your players' names between you and Mojang.