What a seed is and why you might want it
A seed in Minecraft is a string of numbers (or sometimes words) that tells the game engine how to generate the world — where mountains appear, where villages spawn, which biomes sit next to each other. If you know the seed, you can recreate that exact world on a different server, on a different computer, or share it with someone else so they see the same landscape you do.
You might want the seed because you found a village near your base and want to show a friend, because you want to back up the world layout before making major changes, or because you want to test something on a copy of your current world without risking the original.
Finding the seed depends on whether you run the server yourself, whether someone else runs it, and what kind of server software it uses. The method is different for a local server on your home network than for a server hosted elsewhere.
Key Takeaways
- On a server you run yourself, the seed is stored in the server.properties file in your server folder, and you can open it with any text editor.
- If someone else runs the server, you can use the /seed command in-game, but only if the server owner gave you permission to use it.
- Single-player worlds store their seed in the level.dat file, which requires a tool like NBTExplorer to read.
- Once you have the seed, you can paste it into a new world creation screen to generate an identical landscape.
- Some servers disable the /seed command for privacy or security reasons, in which case you will need to ask the server owner directly.
Finding the seed on a server you run
If you set up the server yourself on your home network, the seed is stored in a plain text file called server.properties. This file sits in the main folder where your server software lives — the same folder that contains the world data and the server startup script.
Open that folder, find the file named server.properties, and open it with Notepad (Windows), TextEdit (Mac), or any text editor. Search the file for the line that starts with level-seed=. The number or text after the equals sign is your seed. If that line shows level-seed= with nothing after it, the server generated a random seed when it first started, and that random seed is now locked into the world.
Copy the seed value exactly as it appears. If you want to create a new world with the same layout, you will paste this value into the seed field when you create a new world in single-player or on a different server.
Using the /seed command in-game
If you are playing on a server someone else runs, or if you want to check the seed without opening files, you can type a command directly in the game. Open the chat window (press T on most servers) and type /seed, then press Enter.
If the server owner allowed the /seed command, the chat will display the seed as a number. Write it down or take a screenshot. If the command does not work, you will see a message saying you do not have permission — this means the server owner turned off the /seed command, and you will need to ask them for the seed directly.
The /seed command works on any server running vanilla Minecraft or most common server software like Spigot or Paper. Some heavily modified servers or private servers may have it disabled.
Finding the seed in single-player worlds
Single-player worlds store their seed in a file called level.dat, which is not readable in a normal text editor. You will need a tool called NBTExplorer (free, available on GitHub) to open it.
Navigate to your Minecraft saves folder. On Windows, this is usually at C:\Users\[YourUsername]\AppData\Roaming\.minecraft\saves. On Mac, it is at ~/Library/process Support/minecraft/saves. Find the folder for the world you want, open it, and look for level.dat inside.
read and run NBTExplorer, open the level.dat file from your world folder, and look for a tag called Seed in the tree on the left. Click it, and the seed value will appear on the right side of the window. Copy that number.
What to do if the server owner disabled /seed
Some server owners turn off the /seed command because they want to keep the world layout private, or because they use a custom-generated world that is not based on a standard seed. If /seed does not work, your only option is to ask the server owner directly.
Send them a message explaining why you want the seed — showing a friend a location, backing up the world layout, or testing something. Many owners will share it if you ask politely. If they refuse, respect that decision; the world belongs to them, and they have the right to keep that information private.
Do not try to extract the seed from the server files without permission. If you have access to the server folder, you could find it in server.properties, but using that information without the owner's consent is a violation of trust.
Pasting a seed into a new world
Once you have the seed, you can use it to create a new world with the same layout. In single-player, click Create New World, then look for a field labeled Seed for World Generation (the exact label varies by version). Paste the seed number or text into that field, and the world will generate with the same terrain, villages, and biomes as the original.
On a server, the seed is set when the server first starts, and you cannot change it without stopping the server and editing server.properties. If you want to test a seed on your own server, stop the server, open server.properties, change the level-seed line to your seed, save the file, and restart the server. The next time the server loads, it will generate a new world with that seed.
Keep in mind that the seed only controls terrain generation. Structures like villages and temples will be in the same places, but any blocks you or other players have placed will not transfer to the new world.
Seeds on modded servers
If your server runs mods, the /seed command still works, but the seed may not produce the same world on a different modded server if the mods are different. A world generated with Mod Pack A will not look the same when loaded with Mod Pack B, even if the seed is identical, because mods change how terrain generates.
If you want to share a modded world with someone else, you are better off sharing the world folder itself rather than just the seed. The world folder contains all the terrain data, and it will load correctly on any server running the same mods.
Frequently Asked Questions
Can I change the seed of a world that already exists?
No. The seed is set when the world is first created, and changing it in server.properties will not regenerate existing terrain. It will only affect new chunks that have not been explored yet. To use a different seed, you must create a new world.
What if the seed is a really long number or contains letters?
Minecraft accepts both numeric seeds and text seeds. A text seed like "MyWorld" will generate the same world every time you use it. Copy it exactly as it appears, including capitalization and spaces.
Does the seed affect mob spawning or loot?
The seed controls terrain and structure placement, not mob spawning or loot drops. Two worlds with the same seed will have villages in the same places, but mobs will spawn randomly each time.
Can I find the seed of a world someone gave me?
If it is a single-player world file, you can use NBTExplorer to read level.dat. If it is a server world, you would need access to the server files or the /seed command to work. You cannot determine a seed just by looking at the terrain.
Why does my seed produce a different world than someone else's with the same seed?
Different Minecraft versions generate terrain differently, even with the same seed. A seed from Java Edition 1.19 will not produce the same world in 1.20. Make sure both players are using the exact same game version.