Bitcoin BIP39 Mnemonic Phrases: Seeds, Passphrases, and Recovery
BIP39 describes a way to encode entropy as a list of words and convert those words into a binary seed. A mnemonic is not a Bitcoin address, a transaction signing key, or a complete specification of the wallet's address layout.
How are mnemonic words constructed?
BIP39 supports initial entropy sizes of 128, 160, 192, 224, or 256 bits. A checksum derived from SHA-256 is appended, and the resulting bits are split into 11-bit indices into a 2048-word list. This yields 12, 15, 18, 21, or 24 words. A valid checksum helps detect some input errors but does not prove that a backup belongs to a particular wallet.
How does a mnemonic become a seed?
BIP39 uses PBKDF2-HMAC-SHA512 with 2048 iterations to derive a 512-bit seed. The password is the mnemonic sentence and the salt is the string 'mnemonic' followed by the optional passphrase, using the specified Unicode normalization. Different passphrases produce different seeds, potentially different wallets, and no automatic indication of a mistyped passphrase.
Why can the same words restore different addresses?
Wallets may choose different BIP32 paths, script types, networks, account indices, and passphrases. For example, a native SegWit account and a Taproot account typically use different purpose fields. Recovery software needs the relevant derivation and script information, not just the words.
Security and compatibility
Never paste mnemonic words into a public website, an AI prompt, an issue tracker, or a diagnostic log. Test backups using an offline, trusted recovery procedure. Not every Bitcoin wallet uses BIP39: descriptors, hardware devices, and custom wallet formats may follow different recovery schemes.
Primary references
- BIP39 — Mnemonic Code for Generating Deterministic Keys: https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki
- BIP32 — Hierarchical Deterministic Wallets: https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki
