BIP39

On this page 7

BIP39 is the Bitcoin Improvement Proposal that defines how a mnemonic sentence of 12 to 24 words encodes random entropy and how that sentence is converted into a 512-bit binary seed from which a wallet derives all of its private keys. In Wallets & custody, it is the de facto format for the seed phrase: the same words restore the same accounts in almost any compatible software or hardware wallet, across Bitcoin, Ethereum and many other networks.

Proposed in 2013 by Marek Palatinus, Pavol Rusnak, Aaron Voisine and Sean Bowe, BIP39 solved a practical problem of self-custody: raw keys and binary seeds are hard to copy correctly by hand, while a short list of common words is easy to write down, read aloud and verify. The standard covers only the backup layer; key derivation itself is handled by BIP32 and the account structure by BIP44 and related proposals.

How BIP39 turns entropy into words

BIP39 starts from random entropy of 128 to 256 bits, chosen in steps of 32 bits. The wallet computes the SHA-256 hash of that entropy and appends its first ENT/32 bits as a checksum, so 128 bits of entropy receive a 4-bit checksum and 256 bits receive an 8-bit checksum.

The combined bit string is then cut into groups of 11 bits. Each group is a number from 0 to 2047, which serves as an index into a wordlist of exactly 2,048 words. The result is the mnemonic: every word carries 11 bits, and the last word carries both entropy and checksum bits.

The following table shows the five permitted lengths and how entropy, checksum and word count relate.

Entropy bitsChecksum bitsTotal bitsWords
128413212
160516515
192619818
224723121
256826424
Permitted BIP39 mnemonic lengths

The checksum is the reason most random 12-word combinations are invalid. Only about one in 16 random 12-word sequences passes the check, and only about one in 256 for 24 words, which lets a wallet catch many transcription errors before any funds are at stake.

From mnemonic to seed and keys

The words are not used as a key directly. BIP39 feeds the normalized sentence into PBKDF2 with HMAC-SHA512 and 2,048 iterations, using the string “mnemonic” followed by an optional passphrase as the salt. Both inputs are first normalized with Unicode NFKD, so that accented or composed characters produce identical bytes on every device.

The output is a 512-bit seed. A wallet following BIP32 then applies HMAC-SHA512 to that seed to produce a master private key and chain code, and from there derives an unlimited tree of child keys. Paths such as m/84'/0'/0'/0/0 for native SegWit Bitcoin or m/44'/60'/0'/0/0 for Ethereum select the specific address, which is why the same phrase can serve many networks.

Each stage in this pipeline has a defined role, summarized below.

StageDefined byOutput
Entropy and checksumBIP3911-bit word indexes
Mnemonic to seedBIP39512-bit seed
Seed to master keyBIP32Master key and chain code
Account structureBIP44, BIP49, BIP84, BIP86Derivation path per coin and script type
Address encodingEach networkSpendable receiving address
Stages from entropy to an address

The wordlist and the optional passphrase

The English wordlist is by far the most widely supported. Its words were selected so that the first four letters identify each word uniquely, which means a backup engraved on steel can store just four letters per word. Similar-looking words were avoided to reduce confusion when reading handwriting.

Official lists also exist for Japanese, Korean, Spanish, French, Italian, Czech, Portuguese and both Chinese scripts. Many wallets, however, accept only English, so a phrase created in another language may not restore everywhere; English remains the safest choice for portability.

The BIP39 passphrase, often called the 25th word, changes the salt and therefore produces an entirely different seed and wallet. It adds protection if the words alone are stolen and enables plausible deniability through decoy wallets. The trade-off is severe: there is no checksum on the passphrase, so a forgotten or mistyped passphrase opens a valid but empty wallet and cannot be recovered.

BIP39 compared with other backup schemes

BIP39 is not the only way to back up a wallet, and several projects deliberately chose alternative backup formats. The comparison below covers the schemes a practitioner is most likely to meet.

SchemeMain ideaKey difference from BIP39
BIP39Entropy encoded as 12-24 wordsReference format with the broadest support
Electrum seedWords plus a version numberEncodes the script type, not BIP39-compatible
SLIP-39Shamir secret sharing in word sharesSplits the secret into threshold shares
Monero seed25 words with its own wordlistDifferent derivation, not interchangeable
Raw xprv backupExtended private key as textNo word encoding and no error-friendly checksum
Seed backup schemes compared

A key criticism of BIP39 is that the mnemonic carries no version or script-type information. Restoring a phrase therefore requires knowing which derivation path the original wallet used; otherwise the software may scan the wrong branch and show a zero balance even though the funds are intact.

Security practices and common mistakes

The security of BIP39 rests entirely on entropy quality and offline storage. A 12-word phrase provides 128 bits of security, which is beyond brute force; the realistic risks are weak randomness, human-chosen words and exposure of the written backup.

MistakeConsequenceBetter practice
Choosing words manuallyLow entropy and invalid checksumLet a trusted device generate the phrase
Storing words in cloud notes or photosRemote theft of the whole walletWrite on paper or metal and keep offline
Forgetting the passphrasePermanent loss of the passphrase walletBack up the passphrase separately
Ignoring the derivation pathRestored wallet shows zero balanceRecord the wallet type and path
Entering words on a websiteImmediate phishing theftEnter words only into the wallet itself
Frequent BIP39 mistakes and how to avoid them

Splitting a 24-word phrase into two halves stored in different places is a common but weak practice, because each half reduces the attacker’s work dramatically. When distribution is needed, SLIP-39 shares or a multisig wallet provide proper threshold protection.

In everyday language

BIP39 is a shared recipe for turning a huge random number into a short list of ordinary words. Those words are the master copy of a crypto wallet. Anyone who has them controls the money, and anyone who loses them, with no other backup, loses access for good.

Because almost every wallet follows the same recipe, the words work like a universal spare key. If a phone breaks, the owner types the 12 or 24 words into a new wallet app, and the same balances reappear. The key point is simple: keep the words offline and private.

Seen in the real world

A small business owner holds company reserves in bitcoin on a hardware wallet. During setup, the device generates a 24-word BIP39 phrase, which she stamps onto two steel plates kept in separate safes, and she adds a passphrase stored with the company lawyer.

Two years later the device is damaged in an office flood. She buys a hardware wallet from a different manufacturer, enters the 24 words and the passphrase, and selects the native SegWit account type she noted during setup. The wallet derives the same addresses and the full balance within minutes.

The outcome shows why BIP39 matters: the backup was independent of any single vendor or device, and the separate passphrase meant that the steel plates alone would not have been enough for a thief.