BIP39 Mnemonic Generator & Validator | Seed Phrase Checker & Multi-Chain Wallet
Token Generation How It Works
What Is BIP39?
BIP39 is a protocol for generating deterministic keys from mnemonic phrases — human-readable word sequences (12, 15, 18, 21, or 24 words) selected from a standardized 2048-word list. The mnemonic encodes entropy with a checksum, making it resistant to typos. From the mnemonic, a 512-bit seed is derived via PBKDF2-HMAC-SHA512 (2048 iterations), which then feeds into BIP32/BIP44 hierarchical deterministic (HD) key derivation to generate wallet addresses for multiple blockchains.
When to Use BIP39
- Wallet backup & recovery — BIP39 mnemonics are the standard backup format for cryptocurrency wallets (MetaMask, Ledger, Trezor)
- Multi-chain wallet generation — a single mnemonic can derive addresses for Bitcoin, Ethereum, Solana, and 15+ other chains via BIP44 paths
- Hardware wallet integration — hardware wallets use BIP39 mnemonics as the master seed for all derived keys
- Passphrase protection — an optional "25th word" passphrase modifies the seed, creating a completely different wallet from the same mnemonic
- Validating seed phrases — check checksum integrity before restoring a wallet to catch transcription errors
BIP39 Word Count & Entropy
| Words | Entropy (bits) | Checksum (bits) | Total (bits) | Use case |
|---|---|---|---|---|
| 12 | 128 | 4 | 132 | Standard wallet (most common) |
| 15 | 160 | 5 | 165 | Medium security |
| 18 | 192 | 6 | 198 | High security |
| 21 | 224 | 7 | 231 | Very high security |
| 24 | 256 | 8 | 264 | Maximum security (hardware wallets) |
Bitcoin Address Derivation Paths
| Format | Prefix | BIP44 Path | Recommendation |
|---|---|---|---|
| Legacy | 1... | m/44'/0'/0'/0/0 | Legacy compatibility only |
| SegWit | 3... | m/49'/0'/0'/0/0 | Good, but Native SegWit better |
| Native SegWit | bc1q... | m/84'/0'/0'/0/0 | Recommended (lower fees) |
| Taproot | bc1p... | m/86'/0'/0'/0/0 | Newest, best privacy |
Standards Compliance
- BIP39 — Mnemonic code for generating deterministic keys
- BIP32 — Hierarchical Deterministic Wallets (xprv/xpub key derivation)
- BIP44 — Multi-account hierarchy for multiple coins (m/44'/coin'/account'/change/address_index)
- SLIP-0010 — Ed25519 key derivation (used by Solana, Cardano, etc.)
- PBKDF2 — NIST SP 800-132 — Password-Based Key Derivation Function (2048 iterations, SHA-512)
Last updated:
Code Examples
JavaScript (Browser — PBKDF2 Seed Derivation)
// BIP39 seed derivation (PBKDF2-HMAC-SHA512)
const mnemonic = 'abandon abandon ... about'; // 12 words
const passphrase = ''; // optional "25th word"
const encoder = new TextEncoder();
const password = encoder.encode(mnemonic.normalize('NFKD'));
const salt = encoder.encode(('mnemonic' + passphrase).normalize('NFKD'));
const key = await crypto.subtle.importKey(
'raw', password, 'PBKDF2', false, ['deriveBits']
);
const seed = await crypto.subtle.deriveBits(
{ name: 'PBKDF2', salt, iterations: 2048, hash: 'SHA-512' },
key, 512
);
console.log(Array.from(new Uint8Array(seed))
.map(b => b.toString(16).padStart(2, '0')).join('')); // 64-byte hex Python
import hashlib
# Mnemonic checksum validation
words = 'abandon abandon ... about'.split()
wordlist = open('english.txt').read().split()
idx = [wordlist.index(w) for w in words]
bits = ''.join(bin(i)[2:].zfill(11) for i in idx)
entropy_bits = bits[:128] # for 12 words
checksum_bits = bits[128:] # last 4 bits
expected = hashlib.sha256(bytes.fromhex(
hex(int(entropy_bits, 2))[2:].zfill(32)
)).digest()[0] >> 4
assert checksum_bits == bin(expected)[2:].zfill(4)
print('Checksum valid') Go
package main
import (
"crypto/sha256"
"fmt"
)
func validateChecksum(words []string, wordlist []string) bool {
var bits string
for _, w := range words {
for i, wl := range wordlist {
if wl == w {
bits += fmt.Sprintf("%011b", i)
break
}
}
}
entropyBits := bits[:len(bits)-len(words)/3]
checksumBits := bits[len(bits)-len(words)/3:]
entropy, _ := strconv.ParseUint(entropyBits, 2, 256)
hash := sha256.Sum256([]byte{byte(entropy)})
expected := fmt.Sprintf("%08b", hash[0]>>(8-len(checksumBits)))
return checksumBits == expected
}
func main() { /* ... */ } Rust
use sha2::{Sha256, Digest};
use pbkdf2::pbkdf2_hmac;
fn derive_seed(mnemonic: &str, passphrase: &str) -> [u8; 64] {
let mut seed = [0u8; 64];
let salt = format!("mnemonic{}", passphrase);
pbkdf2_hmac::<Sha256>(
mnemonic.as_bytes(),
salt.as_bytes(),
2048,
&mut seed,
);
seed
}
fn main() {
let mnemonic = "abandon abandon ... about";
let seed = derive_seed(mnemonic, "");
println!("Seed: {:x?}", seed);
} Node.js
const crypto = require('crypto');
function deriveSeed(mnemonic, passphrase = '') {
const salt = 'mnemonic' + passphrase;
return crypto.pbkdf2Sync(
mnemonic.normalize('NFKD'),
salt.normalize('NFKD'),
2048,
64,
'sha512'
).toString('hex');
}
const mnemonic = 'abandon abandon ... about';
console.log('Seed:', deriveSeed(mnemonic)); Common Pitfalls
Security Notes
Disclaimer
This tool is provided for educational and development purposes. Never enter real wallet mnemonics into any web tool — use air-gapped hardware wallets or offline tools for production secrets. All computation occurs entirely in your browser using the Web Crypto API.
Further Reading
- BIP39 — Mnemonic Code for Generating Deterministic Keys
- BIP32 — Hierarchical Deterministic Wallets
- BIP44 — Multi-Account Hierarchy for Multiple Coins
- SLIP-0010 — Ed25519 Key Derivation
Related Concepts
- BIP39 Mnemonic Phrase — Complete Guide
- Key Management — Secure Key Storage & Derivation
- Random Bytes — Generating Entropy for Mnemonics
- BIP39 Mnemonic Validator
Related Tools
Need to generate the random entropy for a custom mnemonic? Use the Random Byte Generator. For human-readable secrets instead of raw bytes, try the Passphrase Generator. To check the strength of your passphrase, see the Entropy Calculator.
Frequently Asked Questions
How do I generate a new mnemonic?
With the tool in Generate mode, choose your word count (12, 15, 18, 21, or 24) using the "Word count" selector and click "Generate N-Word Mnemonic". The phrase lands in its own read-only box, so it can never overwrite words you pasted in Validate mode — switch to Validate if you need to edit words by hand. Set any passphrase in the field below, then press "Validate & Compute Seed". Generation uses cryptographically secure random entropy from the Web Crypto API, entirely in your browser.
What is the 512-bit seed?
The seed is computed via PBKDF2-HMAC-SHA512 with 2048 iterations, using the mnemonic as the password and "mnemonic" + passphrase as the salt. This 64-byte seed is the root input to BIP32 hierarchical deterministic key derivation, which generates all wallet addresses from a single seed.
What are xprv and xpub extended keys?
xprv (extended private key) and xpub (extended public key) are Base58Check-encoded serializations of BIP32 key material. The xpub lets you derive all child public keys and addresses without exposing the private key. The xprv encodes the full private key chain — treat it with the same secrecy as your mnemonic.
What is a passphrase ("25th word")?
A BIP39 passphrase is an optional string added to the PBKDF2 salt; it never changes the mnemonic words themselves, only the seed they produce. Two different passphrases with the same mnemonic open completely different wallets, and a mistyped one silently opens a third — which is why this tool asks you to enter the passphrase twice before it computes a seed, and warns you when an edit invalidates the results on screen. The passphrase field sits under the phrase in both Generate and Validate mode, so you can set it while creating a wallet or type the one you used years ago; leave it empty if you never set a passphrase.
Is it safe to enter my real mnemonic here?
This tool runs entirely in your browser — no data is transmitted to any server. All computation (generation, validation, seed derivation, BIP32 key derivation) uses the Web Crypto API and local JavaScript. However, as a general security practice, avoid entering real mnemonics into any web tool. For maximum security, use an offline or air-gapped device.
Why would a mnemonic fail validation?
Common reasons: a typo in one or more words, wrong word count (not 12/15/18/21/24), words from a different language wordlist, or an incorrect checksum. The validator tells you exactly which check failed so you can fix the issue.
Why does Bitcoin have multiple address formats?
Bitcoin supports four address types: Legacy (P2PKH, 1...), SegWit (P2SH-P2WPKH, 3...), Native SegWit (P2WPKH, bc1q...), and Taproot (P2TR, bc1p...). Each uses a different BIP44 derivation path (m/44', m/49', m/84', m/86'). Native SegWit is recommended for most users — it has lower fees and better privacy. Our tool lets you derive all four formats from the same mnemonic.
Which address format should I use?
For Bitcoin: Native SegWit (bc1q...) is recommended — it's the modern standard with lower transaction fees. For Ethereum and EVM chains (BSC, Polygon, Avalanche): there's only one format (0x...). For Litecoin: Native SegWit (ltc1q...) is recommended. Our tool pre-selects the recommended formats by default.
Privacy: This tool runs entirely in your browser — nothing is uploaded or stored. · Disclaimer: For educational purposes only. Not professional security advice.
More in Tokens
Random Byte/Hex Generator
Generate cryptographically secure random bytes online as hex, Base64, URL-safe Base64, or binary with batch mode for keys, secrets, and IVs.
OTP Token Generator
Generate TOTP (time-based) and HOTP (counter-based) one-time passwords online. SHA-1/256/512, 6-8 digits, Google Authenticator compatible.