MC-008
Minecraft seed converter
Type the text you put in the seed box. See the number the game turns it into.
Seed
0
In a world, type /seed in chat to see its seed. You can paste that number back into the seed box to make the same world.
The rule
This is how Java Edition reads the seed box.
- If the box is empty, the game picks a random seed.
- If the text is a whole number between -9223372036854775808 and 9223372036854775807, that number is the seed.
- Anything else is turned into a number with Java's
String.hashCode().
How the hash works
Start with h = 0. For each character, in order, do h = 31 * h + character code. Keep only the low 32 bits after every step, as a signed number. The final h is the seed.
Example: the text a has character code 97, so its seed is 97. The text ab gives 31 * 97 + 98 = 3105.
Different words, same seed
The hash only has about 4.3 billion possible values, so different texts can land on the same one. A known pair is Aa and BB. Both give 2112. The same worlds are made from the same seed, so these two texts open the same world.
Common mistakes
- Adding a space by accident.
catandcatgive different seeds. - Expecting a number with a letter in it, like
12a, to stay a number. It is text, so it is hashed. - Sharing the text with a friend on another edition. This tool follows the Java rule. Bedrock Edition does not need to match it.
More Minecraft tools
- Skin galleryFree Minecraft skins to download or edit: animals, hoodies, knights, ninjas and more.
- Skin editorPaint a 64×64 skin, watch it on a 3D model, download the PNG.
- Command generatorBuild /give, /summon, /effect, /enchant and other commands from menus.
- Crafting recipesEvery crafting-table recipe, one page per item.
- Item listAll items with ID, stack size, recipe and give command.
- EnchantmentsMax level, what each one goes on, and which ones clash.