Short answer: type /seed in chat. On a server this needs operator status at permission level 2 or higher; click the number it prints to copy it. In the server console, type seed without the slash. The level-seed line in server.properties only shows a seed someone entered before the world was created, and it is empty when the world got a random one.
This guide covers those three ways for Java Edition, how to read the seed from the world files while the server is off, how to make yourself operator, what each permission level allows, the admin commands you will use most, why a seed map can disagree with a Paper or Spigot server, and how to keep the seed private. A short section at the end covers Bedrock Dedicated Server, which has no /seed at all.
| Where | How |
|---|---|
| In game, Java Edition | /seed, needs op level 2 |
| Server console | seed, no slash |
| server.properties | level-seed=, empty for a random seed |
| World files, 26.1 and later | world/data/minecraft/world_gen_settings.dat |
| World files, 1.21.x and older | world/level.dat |
| Bedrock Dedicated Server | Game settings, as an operator |
How do I find the seed with /seed?
Open chat with T or /, type /seed and press Enter. The game prints the seed, a whole number that can be negative, and a click on it copies it. In singleplayer the command works even in a world created without cheats. On a server it needs permission level 2, which in practice means the owner has made you operator; the levels are explained further down.
As an ordinary player there is no way around that. Servers do not send the seed to clients, and the F3 debug screen has not shown it since version 1.3.1, so without op the only source is whoever runs the server.
How do I run seed in the server console?
Commands typed into the server console take no leading slash. Where you type them depends on how the server was started:
# started in a terminal, screen or tmux: attach and type
seed
# running as a systemd service with RCON, as in our VPS guide
sudo -u minecraft /usr/bin/rconclt -c /etc/minecraft/rcon.conf mc seedIf the server runs inside screen or tmux, reattach to that session first. If it runs as a service with RCON, the way the Minecraft VPS guide sets it up, rconclt sends one command and prints the server’s answer. The console is also where the first operator is made, since op is a command no ordinary player may run.
Is level-seed in server.properties the seed?
Only sometimes. level-seed is the seed for the world the server generates, and it is blank by default, in which case the server picks a random seed. The seed is fixed when the world is created and stored in the world folder, so the line can mislead in three cases:
- It is empty: the world got a random seed. Use
/seedor the console. - It holds a word or a phrase: the game turned the text into a number with Java’s
String.hashCode()./seedshows that number. - The world was uploaded from singleplayer or another server: it brought its own seed, and the line says nothing about it.
grep '^level-seed=' server.properties
# level-seed= empty: a random seed, ask the consoleReading the seed from the world files
When the server is not running, the seed is still in the world folder (world, or whatever level-name says). Which file holds it depends on the version that last saved the world. Version 26.1 moved the world generation settings out of level.dat:
- 26.1 and later:
data/minecraft/world_gen_settings.dat. - 1.21.x and older:
level.dat, asData.WorldGenSettings.seedsince 1.16.
Both are NBT files, a binary format that is usually gzip-compressed, so cat shows nothing useful; an NBT viewer opens them. The quicker and version-proof route is to start the server for a minute and type seed in its console.
How do I make myself op on my own server?
Minecraft has no separate admin role: an admin is an operator, and the permission level decides how much that operator may do. Make yourself one from the console, with your exact Minecraft name:
op YourName # operator at the level set by op-permission-level
deop YourName # removes operator status againop adds the player to ops.json in the server folder, with the level that op-permission-level in server.properties sets: 4 by default, which allows every command. To give one person a lower level, run op for them first, so the entry has the right UUID, then stop the server and change their level:
[
{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"name": "FriendName",
"level": 2,
"bypassesPlayerLimit": false
}
]bypassesPlayerLimit lets that operator join when the server is full. A new op-permission-level, like any change to server.properties, takes effect after a restart and applies to players you op from then on.
Permission levels: who can run /seed?
Levels build on each other: level 3 can do everything level 2 can, and so on. These are the Java Edition levels, with examples from the command list:
| Level | Name | What it adds | Commands, for example |
|---|---|---|---|
| 0 | Operator | Debug extras such as the TPS graph | list, msg, help, which every player has |
| 1 | Moderator | Building inside spawn protection | No commands of its own |
| 2 | Gamemaster | Most gameplay commands, command blocks | seed, locate, gamemode, tp, give, time, weather |
| 3 | Admin | Managing players | kick, ban, ban-ip, pardon, whitelist, op, deop |
| 4 | Owner | Managing the server, every command | stop, save-all, save-off, save-on |
Two consequences matter for the seed. Anyone who can kick or ban (level 3) can also run /seed. And level 2 brings /locate, which finds the nearest structure of a type without any seed map.
Whitelist commands
Since 26.3, a freshly generated server.properties has white-list=true, so only players in whitelist.json can join. Operators always can. Manage the list from the console:
whitelist add FriendName
whitelist remove FriendName
whitelist list
whitelist on # or: whitelist off
whitelist reload # after editing whitelist.json by handA player does not need to be online to be added or removed. With enforce-whitelist=true, players who are online but no longer on the list are kicked when the whitelist is reloaded, and a ban always wins over the whitelist. What a refused player sees is in the connection error table of our server address guide.
The admin commands you will use most
Typed as shown in the console, or with a slash in front in chat. The level is the permission level each needs on a Java server.
| Command | Level | What it does |
|---|---|---|
op Name | 3 | Makes a player operator, at the level op-permission-level sets |
deop Name | 3 | Removes operator status |
whitelist add Name | 3 | Lets a player join while the whitelist is on |
whitelist remove Name | 3 | Takes a player off the whitelist |
whitelist on | 3 | Turns the whitelist on; whitelist off turns it off |
kick Name [reason] | 3 | Disconnects a player; nothing stops them rejoining |
ban Name [reason] | 3 | Bans the account, stored in banned-players.json |
ban-ip address | 3 | Bans an IP address, or the address of a named online player |
pardon Name | 3 | Lifts a ban; pardon-ip lifts an IP ban |
gamemode creative Name | 2 | Sets survival, creative, adventure or spectator |
difficulty hard | 2 | Peaceful to hard; on a server only until the restart reloads server.properties |
time set day | 2 | Also night, noon, midnight or a number of ticks |
weather clear | 2 | Or rain, thunder |
tp Name OtherName | 2 | Teleports a player to another, or to coordinates: tp Name 100 64 -200 |
save-all flush | 4 | Writes every chunk to disk now; the server pauses briefly |
stop | 4 | Saves the world, kicks everyone and shuts the server down |
list | 0 | Shows who is online |
Why doesn’t a seed map match the server?
A seed map such as Chunkbase draws a world from the seed alone. Anything else that shaped the world makes it disagree:
- Version. When an update changes world generation, the same seed produces different terrain, and chunks generated before the update keep their old shape. Set the map to the version that generated the area you are looking at.
- Edition. Java and Bedrock share terrain and biomes for a seed, but structures and features are placed differently.
- World type.
level-typeinserver.propertiescan belarge_biomes,amplified,flatorsingle_biome_surfaceinstead ofnormal. - Data packs and mods that add biomes or structures, as a modded server often has.
- Spigot and Paper settings, explained next.
Structure seeds in spigot.yml and Paper
Spigot gives each structure type its own seed under world-settings in spigot.yml, and Paper, which reads the same file, keeps them. The defaults are vanilla’s own values, so an untouched server matches the map. If an admin changed them, those structures sit somewhere else while terrain and biomes still follow the seed: the map shows a village where there is none.
world-settings:
default:
seed-village: 10387312
seed-desert: 14357617
seed-monument: 10387313
seed-ancientcity: 20083232
seed-trialchambers: 94251327
seed-slime: 987234911
seed-stronghold: default
seed-mineshaft: defaultseed-slime moves slime chunks as well. Paper adds feature-seeds to its world configuration (config/paper-world-defaults.yml, or paper-world.yml in a dimension folder): it sets the population seed of single generation features such as ore deposits. -1 keeps vanilla’s, and generate-random-seeds-for-all: true gives every feature you have not set a random one. Chunks generated before a change keep what they have. Which server software fits your plugins is covered in Paper vs Spigot and the others.
How do I hide the seed from players?
With the seed, anyone can load your world into a seed map and see where structures are. Treat it like a key:
- Keep level 2 and up for people you trust. Helpers who only need to build near spawn can have level 1 in
ops.json. - On Paper, hand out permissions instead of op. Every vanilla command has its own node, such as
minecraft.command.kickandminecraft.command.ban, and players do not haveminecraft.command.seedby default. A permissions plugin can give moderators the nodes they need without making them operators. - Do not share the world folder. A world download or a backup contains the seed, and
server.propertiesdoes too wheneverlevel-seedis set. - Change the structure seeds before the world is generated. With your own
seed-*values inspigot.yml, a leaked seed, or one reconstructed from the terrain, no longer shows where structures are.
Bedrock Dedicated Server: seed and operators
Bedrock has no /seed command. On a Bedrock Dedicated Server the seed is either in level-seed in server.properties, again blank for a random seed, or visible to operators, who can view the world seed in the game settings. Once the world exists, its seed is stored in the world’s own files, and changing level-seed no longer affects it.
op PlayerName # recorded in permissions.json
deop PlayerName
allowlist add PlayerName # operators need an entry too
allowlist remove PlayerNamepermissions.json identifies players by XUID, which needs online-mode=true. New players get default-player-permission-level: visitor, member (the default) or operator. The whitelist is called the allowlist on Bedrock (allow-list in server.properties, named white-list until 1.18.10), and unlike on Java it applies to operators as well. With allow-cheats=false, the default, even operators cannot run commands such as gamemode, time, weather or tp from chat, while the console still can.
Running the server on a Debian VPS
Everything above assumes you can reach the console, server.properties and the world folder, which you can on any server where you have root. Our Debian VPS is a KVM server with Debian 13, 12 or 11 and root over SSH, typically online about a minute after payment, with always-on DDoS protection in front of it. It runs in Amsterdam and you pay with PayPal or crypto, with no ID check; the plan table on that page also says which line suits a game server.
Install Java and the server as the Minecraft VPS guide describes, size the heap with the RAM calculator, and create a backup in the panel before you change world settings. To share the server, find its address and add your friends to the whitelist.
Frequently asked
How do I find the seed of a Minecraft server?
Type /seed in chat if you are an operator at permission level 2 or higher, then click the number to copy it. In the server console, type seed without the slash. level-seed in server.properties only shows a seed that was entered before the world was created and is empty for a random one. Without op, ask the admin: servers do not send the seed to players.
Why can't I use /seed on a server?
In multiplayer /seed needs permission level 2, so only operators at level 2 or higher can run it. Ordinary players and level 1 operators cannot. The admin can make you operator from the console with op and your name, or simply tell you the seed.
How do I make myself admin on my own Minecraft server?
Type op followed by your Minecraft name in the server console, without a slash. That makes you operator at the level set by op-permission-level in server.properties, 4 by default, which allows every command. For a lower level, stop the server and change the level of your entry in ops.json. deop and your name removes operator status again.
Is level-seed in server.properties the seed of my world?
Only if someone entered a seed before the world was generated. The seed is fixed when the world is created and stored in the world folder: in level.dat up to 1.21.x, in data/minecraft/world_gen_settings.dat since 26.1. An empty level-seed means a random seed, and a world uploaded from elsewhere keeps its own seed whatever the line says.
Does Bedrock Edition have a /seed command?
No, /seed exists only in Java Edition. On a Bedrock Dedicated Server, read level-seed in server.properties if one was set; otherwise an operator can view the world seed in the game settings.
Why does a seed map not match my server?
Check version and edition first: updates change what a seed generates, chunks made before an update keep their old shape, and Java and Bedrock place structures differently. Then check level-type, data packs and mods. On Spigot and Paper, changed seed-* values in spigot.yml move structures while terrain still matches the seed.