Skinstashery
Minecraft
Home / Minecraft / Seed converter
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.

  1. If the box is empty, the game picks a random seed.
  2. If the text is a whole number between -9223372036854775808 and 9223372036854775807, that number is the seed.
  3. 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

More Minecraft tools