ThisCalculator

Home and garden

Seed Key Calculator: How It Works

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

Seed Key Calculator: How It Works

A seed key calculator works out the cryptographic seed (a long random number) from a shorter input such as a passphrase, a mnemonic phrase, or a previous key. You enter your seed phrase or passphrase and the calculator derives the corresponding seed, private key, and often the public address. The result is a hexadecimal string or a set of key pairs you can use in wallets and other cryptographic tools.

Formula

The calculator uses the BIP39 standard to turn a mnemonic phrase into a seed. The formula is:

Seed = PBKDF2(PRF = HMAC-SHA512, Password = mnemonic, Salt = “mnemonic” + passphrase, iterations = 2048, dkLen = 64 bytes)

Where:

  • mnemonic – the space-separated list of words from the BIP39 wordlist (e.g., 12, 18, or 24 words).
  • passphrase – an optional extra string that adds a salt to the derivation.
  • PBKDF2 – a key derivation function that applies HMAC-SHA512 2048 times.
  • dkLen – the output length in bytes; 64 bytes gives a 512-bit seed.

The seed is then used to generate a master private key and chain code via HMAC-SHA512 with the key “Bitcoin seed”. From the private key, a public key and address are derived using elliptic curve cryptography (secp256k1) and hashing (SHA-256 and RIPEMD-160).

Worked Example

Take the default input: a 24-word mnemonic (represented here as “24” for simplicity) and no passphrase. In reality, you would enter the actual words. The calculator computes:

  1. Step 1: Concatenate the mnemonic words with spaces. Example: “abandon abandon … about” (24 words).
  2. Step 2: Apply PBKDF2 with HMAC-SHA512, password = mnemonic, salt = “mnemonic” + passphrase (empty here), 2048 iterations.
  3. Step 3: The output is a 64-byte seed. In hex, it starts with something like 5eb00bbddcf069084889a8ab9155568165f5c453ccb85e70811aaed6f6da5fc19a5ac40b389cd370d086206dec8aa6c43daea6690f20ad3d8d48b2d2ce9e38e4.
  4. Step 4: The first 32 bytes of the seed become the master private key. The remaining 32 bytes become the chain code.
  5. Step 5: From the private key, the public key is computed via elliptic curve multiplication. The address is derived by hashing the public key and encoding it in Base58Check.

The result for the default (24 words, no passphrase) is a seed of 512 bits, a private key of 256 bits, and a public address that is a string of about 34 characters. The exact values depend on the mnemonic words you enter.

When to Use a Seed Key Calculator

You use a seed key calculator when you need to recover a wallet from a mnemonic phrase, verify that a phrase is valid, or generate a new seed for testing. It is also useful for developers who need to convert a mnemonic to a private key for signing transactions or for educational purposes to understand how keys are derived.

Common scenarios include:

  • Recovering a cryptocurrency wallet after losing access to the device.
  • Migrating a wallet from one software to another that requires a private key.
  • Testing a seed phrase you wrote down to ensure it is correct.
  • Learning how BIP39 and BIP32 work.

How to Choose a Seed Key Calculator

When selecting a seed key calculator, consider the following factors:

  • Standards compliance: It should implement BIP39, BIP32, and BIP44 correctly.
  • Offline capability: For security, the calculator should work entirely in your browser or on a device that is not connected to the internet.
  • Open source: The code should be publicly available so you can verify it does not leak your seed.
  • Support for multiple word counts: It should handle 12, 18, and 24-word phrases.
  • Output options: It should show the seed, private key, public key, and address in various formats (hex, WIF, Base58).

Common Mistakes and Misconceptions

One common mistake is entering the mnemonic words in the wrong order. The order is crucial; changing even one word or its position produces a completely different seed. Another mistake is using a passphrase that differs from the one used when the wallet was created. The passphrase is part of the salt, so a different passphrase yields a different seed.

A frequent misconception is that the seed is the same as the private key. In BIP39, the seed is an intermediate value; the private key is derived from it using HMAC-SHA512. Some calculators show the seed as the private key, but that is not standard. Always check that the calculator follows BIP32 derivation.

Also, be aware that some online calculators are scams that steal your mnemonic. Never enter a real seed phrase into a website you do not trust. Use an offline tool or a hardware wallet.

Safety and Security Considerations

Your seed phrase is the master key to your funds. Anyone who knows it can steal your cryptocurrency. Therefore, when using a seed key calculator, follow these safety rules:

  • Use offline tools: Download a trusted open-source tool and run it on an air-gapped computer.
  • Never share your seed: Do not enter it into any online service, including a calculator website.
  • Be wary of phishing: Some sites mimic legitimate calculators but send your seed to a server.
  • Use a hardware wallet: Hardware wallets derive keys on the device itself and never expose the seed to your computer.

If you must use an online calculator, do so only with a test seed that has no funds, and clear your browser history afterward.

Alternatives to a Seed Key Calculator

If you need to derive keys from a seed, you have several alternatives:

  • Hardware wallets: They handle derivation securely and never expose the seed.
  • Software wallets: Most wallets have a “restore from seed” option that does the derivation internally.
  • Command-line tools: Tools like bx (Bitcoin Explorer) or python-mnemonic can be used offline.
  • Manual calculation: For learning, you can implement BIP39 yourself in Python or another language.

Each alternative has trade-offs between convenience and security. For everyday use, a wallet is best. For development, a command-line tool is more flexible.

Frequently Asked Questions

Can I use a seed key calculator to recover a wallet?

Yes, but only if the calculator outputs the private key or seed that your wallet expects. Most wallets use BIP39 and BIP32, so the derived keys should match. However, some wallets use different derivation paths, so you may need to specify the path. It is safer to use the wallet’s own recovery feature.

What is the difference between a seed and a private key?

A seed is a 512-bit number generated from the mnemonic phrase. It is used to derive a master private key and chain code. The private key is a 256-bit number that is used to sign transactions. The seed is like a master key, and the private key is a specific key derived from it.

Does the passphrase make the seed more secure?

Yes, the passphrase adds an extra layer of security. It is used as part of the salt in PBKDF2, so even if someone knows your mnemonic, they cannot derive the seed without the passphrase. This is often called a “25th word” or “BIP39 passphrase”.

Can two different mnemonics produce the same seed?

No, due to the cryptographic hash function, the probability is astronomically low. Each mnemonic maps to a unique seed, and the reverse is also true: each seed corresponds to exactly one mnemonic (given the same wordlist and checksum).

Is it safe to use an online seed key calculator?

Generally, no. Online calculators can be compromised or malicious. Even if the site is honest, your seed could be intercepted. Always use an offline tool or a hardware wallet for real funds. If you use an online calculator, do so only with a dummy seed.

What is a BIP39 checksum?

The mnemonic includes a checksum to detect errors. The last word contains a few bits of a SHA-256 hash of the entropy. This ensures that a mistyped word is caught. The calculator can verify the checksum and warn you if the phrase is invalid.

Related

Formula used
in m | Mnemonic words | - | 24 | 0
in p | Passphrase (optional) | - |  | 0
out seed | Seed (hex) | hex | m | 2
out priv | Private key (hex) | hex | m | 2
out addr | Public address | - | m | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.