A whitelist makes your server private: only the players you add can join, and everyone else is turned away at the door. It is the simplest way to run a server for friends. Java Edition calls it the whitelist; Bedrock Dedicated Server calls it the allowlist.
How to turn on the whitelist
Add yourself first
In the server console, run
whitelist add <your name>. On Java, operators can always join, but adding yourself avoids surprises if you are ever de-opped.Add your friends
Run
whitelist add <name>for each player. Use their current Minecraft username. They do not need to be online.Switch it on
Run
whitelist on. You can also setwhite-list=truein server.properties and restart the server.Decide about players already online
Anyone already connected stays online until they leave. With
enforce-whitelist=true(below), players who are not on the list are kicked whenever the whitelist is reloaded.
Whitelist commands
| Command | What it does |
|---|---|
whitelist add <player> | Adds a player to the whitelist. |
whitelist remove <player> | Removes a player. With enforce-whitelist on, they are kicked at the next reload. |
whitelist list | Shows everyone on the whitelist. |
whitelist on | Turns the whitelist on. |
whitelist off | Turns the whitelist off, so anyone can join. |
whitelist reload | Reloads whitelist.json after you edit it by hand. |
In the game, type the same commands with a slash, such as /whitelist add Steve. They only work on a dedicated server, not in a singleplayer or LAN world. For the rest of the admin commands, see our Minecraft server commands list.
The whitelist.json file
The server keeps the whitelist in whitelist.json, next to server.properties. Each player has their account UUID and name:
[
{
"uuid": "069a79f4-44e9-4726-a5be-fca90e38aaf5",
"name": "Notch"
}
]- The UUID is what counts. Players are matched by UUID, so someone who changes their username stays whitelisted.
- Prefer the command.
whitelist addlooks up the UUID for you. If you edit the file by hand, get each UUID from the Minecraft UUID lookup, then stop the server first or runwhitelist reloadas soon as you save. - Offline-mode servers match players by an offline UUID made from their username, not their real account UUID (the UUID lookup shows both). Keep
online-mode=trueif you want the whitelist to protect you.
Whitelist vs enforce-whitelist
Both are settings in server.properties, and they do different jobs:
- `white-list=true` decides who can connect. Anyone not on the list is refused when they try to join.
- `enforce-whitelist=true` decides what happens to players already online. When the whitelist is reloaded, anyone connected who is not on it is kicked. It is off by default, so removed players stay until they leave.
Turn both on if you ever need to remove someone mid-session. Changes to server.properties need a server restart.
Bedrock allowlist (Bedrock Dedicated Server)
Bedrock renamed the whitelist to the allowlist in version 1.18.10. It works the same way, with a few differences:
- Turn it on in server.properties with
allow-list=true, then restart. There is noallowlist onoroffcommand. - Use gamertags:
allowlist add <gamertag>,allowlist remove <gamertag>,allowlist listandallowlist reload. Put gamertags with spaces in quotes, likeallowlist add "Blue Fox 42". - Operators are not exempt. On Bedrock, every player, including operators, must be on the allowlist.
- The file is `allowlist.json`. Entries use the gamertag in
name. The Xbox account ID,xuid, is optional whennameis set, andignoresPlayerLimitlets a player join a full server.
[
{
"ignoresPlayerLimit": false,
"name": "Blue Fox 42"
}
]Realms does not use a whitelist. Only players the owner invites can join a Realm.
Minecraft whitelist not working?
- A friend is whitelisted but still refused. Check the spelling with
whitelist list. If they changed their name after you added them, they are still on the list under their UUID. - `whitelist add` says the player does not exist. The name may be wrong, or Mojang's profile lookup may be down. Check whether Minecraft is down; if skins and profiles show a problem, try again later.
- Your edits to whitelist.json disappeared. The server rewrites the file when a command changes the list. Edit it while the server is stopped, or reload straight after saving.
- Removed players are still online. That is expected unless
enforce-whitelist=trueis set. - Bedrock operators cannot join. Add them to the allowlist too.
Running the server from home? Friends outside your network also need port forwarding before the whitelist even comes into play.
Minecraft whitelist questions
How do I whitelist someone on my Minecraft server?
Run whitelist add followed by their username in the server console, or /whitelist add in the game as an operator. On Bedrock Dedicated Server use allowlist add with their gamertag.
How do I turn off the whitelist?
On Java, run whitelist off in the console. On Bedrock Dedicated Server, set allow-list=false in server.properties and restart the server.
Do operators need to be whitelisted?
On Java Edition, no: operators can always join. On Bedrock, yes: every player, including operators, must be on the allowlist.
What does enforce-whitelist do?
When it is on, players who are online but not on the whitelist are kicked as soon as the whitelist is reloaded. When it is off, they stay until they disconnect.
Can I whitelist a player who is offline?
Yes. On Java, whitelist add works with any valid username, online or not, because the server looks up the account's UUID.
Why is my new server whitelisted when I did not turn it on?
Since Java Edition 26.3, new servers have white-list=true by default. Add your friends with whitelist add, or run whitelist off.