Updated:

Java: the /seed command

/seed

Type it in chat and the game shows something like Seed: [-1234567890]. Click the number to copy it. In single player it works even when cheats are off.

Find the seed of a server

Bedrock: check the settings

Bedrock has no /seed command. Open the world settings (Settings from the pause menu, then Game) and the seed is listed there. Realms and other people's servers may hide it.

Create a world from a seed

Text works too. Java turns text into a number with a fixed formula, so the same text always gives the same world.

Same seed, different world?

What to do with your seed

Enter the seed and version in the seed map to see villages, strongholds and ancient cities on a map. To find the nearest structure in game, /locate also works.

Common problems

Common questions

Check your command

The Command Error Doctor checks common syntax mistakes in your browser.