Minecraft Seed Generator

Get a random world seed and copy it with one press, or type any word to see the number Minecraft Java Edition makes from it.

Your Minecraft seeds

Loading the calculator. It needs JavaScript.

ToolMoth is a fan-made site. It is not affiliated with Mojang or Microsoft, and it uses no Minecraft artwork or logos.

Two things this tool does

The first is a random seed. It is the big number at the top of the results, with its two buttons right under it. Press New random seed and the tool makes 64 random bits in your browser and shows them as a seed number. The numbers are not sent anywhere. Press Copy seed and paste it into the seed box when you create a world.

The second is a text-to-seed lookup. Type a word and the tool shows the exact number Java Edition builds from it. That is handy when you want to share a world by number, or compare two worlds without guessing.

How a typed seed becomes a number

The Minecraft Wiki says that in Java Edition a word or phrase is converted into a 32-bit integer using the hashCode method. The page also says that text with characters other than digits (a leading minus or plus is fine), or a number outside the Java long range, is hashed this way. Java removes spaces before and after a seed, and since snapshot 22w03a the seed 0 works as a normal seed.

Here is the maths. Start with 0. For each character, multiply the running total by 31 and add the character code. Keep only the lowest 32 bits after every step, as a signed number. That wrap-around is why a long word can give a negative seed. The word polygenelubricants lands exactly on -2,147,483,648, the smallest 32-bit value.

Worked example

Take the word abc. The codes are 97, 98 and 99.

  1. Start: 0 x 31 + 97 = 97
  2. Next: 97 x 31 + 98 = 3,105
  3. Last: 3,105 x 31 + 99 = 96,354

So abc is seed 96,354. Longer words pass 2,147,483,647 and wrap to a negative number, like "Hello World" at -862,545,276.

Numbers are treated differently

If you type 12345, Java does not hash it. It uses 12,345 directly. The same goes for -42 or any whole number up to 9,223,372,036,854,775,807. Go one past that limit and the game hashes the digits as text instead, so 9223372036854775808 becomes -1,773,151,197. The small table under the results shows a few of these.

Java and Bedrock

Java Edition accepts any signed 64-bit number. Bedrock started with 32-bit seeds, and the wiki records that worlds can use 64-bit seeds from beta 1.18.20.21. We could not confirm the exact Bedrock limits on the page, so the tool also shows a 32-bit version of the random seed. Use it if you play an older Bedrock version. A seed from the full range gives the same land and biomes in both editions, but structures and caves differ.

Tips

  • Copy the number, not the word, if you want others to get the same world in both editions. We did not verify that Bedrock hashes text the same way Java does.
  • Spaces inside a phrase count as characters. "my world" and "myworld" are different seeds.
  • Capital letters matter. Hello and hello give different numbers.
  • Leave the seed blank in Java to get a random world. To share a new world, copy a seed from this tool before you start.
  • Tell friends your edition and version along with the seed. Big updates can change the land a seed makes.

Questions

What is a Minecraft seed?

A seed is the number that decides how a world is built. To share a world, share the seed, the game edition and the version. With the same world settings, a friend gets the same starting world. Big game updates can change what a seed makes.

How does Minecraft turn a word into a seed?

Java Edition runs the text through Java's String.hashCode() method and uses the resulting 32-bit number. The word Hello becomes 69609650. This tool shows that number for anything you type.

What happens if my seed is already a number?

A whole number inside the signed 64-bit range is used as it is, and a leading minus or plus sign is allowed. Text with letters, and numbers too big for that range, are hashed instead.

How long can a Minecraft seed be?

Java Edition accepts any signed 64-bit whole number, from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807. Bedrock Edition has allowed 64-bit seeds since beta 1.18.20.21.

Does a seed work in both Java and Bedrock?

A seed from the 64-bit range makes the same basic land and biomes in both editions. Structures, caves and mob spawns are different, so the worlds will not match exactly.

What if I leave the seed box empty?

Java Edition picks a random seed for you. For Bedrock, the Minecraft Wiki's notes on a blank seed do not agree with each other, so we do not say what it does. Either way, if you want a world you can share, copy a seed from this page before you start.

Facts checked 2026-11-29. Sources: Seed (level generation), Minecraft Wiki.

Related tools