Learn

What is BIP39?

Last reviewed 1 December 2026.

If you have ever written down 12 or 24 ordinary words to back up a Bitcoin wallet, you have almost certainly used BIP39. BIP 39 — Mnemonic code for generating deterministic keys — turns a large random number into a sentence of dictionary words, then turns those words into a 512-bit binary seed. That seed can later generate a hierarchical deterministic wallet, most often with BIP32.

The words are usually called a mnemonic sentence, a seed phrase, or a recovery phrase. They are a human-readable copy of computer-generated randomness, not a password you invent. The BIP is clear that this is a way to transport a machine-made secret on paper or by voice, not a way to turn a phrase you made up — a “brainwallet” — into a wallet seed.

Safety note: Never type a real seed phrase into a website, chat message, email, or any device you do not fully trust. Anyone who sees the words — and, if you set one, the passphrase — can spend the funds. This page explains how BIP39 works. It does not ask you to enter, check, or generate a live backup.

A short history

BIP39 was assigned on 10 September 2013. Its authors are Marek Palatinus, Pavol Rusnak, Aaron Voisine, and Sean Bowe. The current text in the bitcoin/bips repository is marked Deployed. A widely used reference implementation, including the official word lists, is the python-mnemonic project. The format is now common in Bitcoin wallets and in other coins that reuse the same stack, but it is not universal.

How a mnemonic is generated

Generation starts with entropy: a random bit string whose length, called ENT, must be a multiple of 32 and between 128 and 256 bits.

A checksum is then added. The wallet computes the SHA-256 hash of the entropy and keeps the first ENT / 32 bits of that hash. Those bits are appended to the entropy, and the combined string is split into groups of 11 bits. Each group is a number from 0 through 2047, used as an index into a 2,048-word list. The corresponding words, in order, become the mnemonic sentence. The word count is (ENT + checksum) / 11.

Entropy (ENT)Checksum (ENT / 32)ENT + checksumWords
128413212
160516515
192619818
224723121
256826424

Twelve- and 24-word phrases are the usual lengths, encoding 128 and 256 bits of entropy respectively.

An ideal word list, in the BIP’s terms, is chosen so the first four letters identify a word uniquely, similar words are avoided, and the list is sorted. Words may include non-ASCII letters, but they must be encoded in UTF-8 and processed in Unicode Normalization Form KD (NFKD).

The checksum is only a typo check, not encryption. The BIP notes that it is short and gives only modest odds of catching random errors: 4 bits for 12 words, 8 bits for 24 words. The checksum lesson goes further on what that check does and does not prove.

From mnemonic to seed

The words are not the wallet’s master secret. They are converted into a 512-bit (64-byte) seed with PBKDF2, using HMAC-SHA512 as the pseudorandom function and 2,048 iterations.

  • The password is the mnemonic sentence, in UTF-8 NFKD.
  • The salt is the string mnemonic plus an optional passphrase, also in UTF-8 NFKD. If no passphrase is set, the passphrase is the empty string, so the salt is just mnemonic.

This conversion is independent of how the sentence was produced, so any string of words will yield some seed. The BIP requires software to warn if the checksum is invalid. Do not invent your own phrase: you lose the intended entropy and a meaningful checksum. Because the seed is hashed from the words themselves, translating a phrase into another language list produces a different wallet. The mapping is also one-way: you cannot express an arbitrary BIP32 seed as a BIP39 sentence.

The optional passphrase

A user may protect the mnemonic with a passphrase. Every passphrase, including a wrong one, produces a valid seed and a valid-looking wallet. Only the correct passphrase yields the intended wallet. The BIP describes this as a form of plausible deniability.

If you forget the passphrase, there is no recovery: the checksum on the words will still be valid, and nothing in the phrase records that a passphrase was used. The passphrase can be any string, not a word from the BIP39 list, even though it is sometimes nicknamed a “25th word.” The passphrase lesson covers that distinction.

From seed to keys: BIP32 and BIP44

The 512-bit seed is the input to a hierarchical deterministic wallet. Under BIP32 (assigned in 2012, authored by Pieter Wuille), a single seed produces a tree of key pairs, so one backup can regenerate many addresses. The BIP32 lesson is the version of that on this site.

BIP44 defines a common path for organizing that tree:

m / purpose' / coin_type' / account' / change / address_index

For BIP44, purpose is 44'. Later specifications reuse the same idea with a different purpose value so that one seed can derive several Bitcoin script types, such as BIP49, BIP84, and BIP86. Restore a phrase into the wrong path and you may see an empty wallet even though the backup is correct. BIP39 has no version field for the intended address format. Those standards are covered in the derivation paths and address types lessons.

Word lists in ten languages

The bitcoin/bips repository publishes official 2,048-word lists for English, Japanese, Korean, Spanish, Chinese (Simplified), Chinese (Traditional), French, Italian, Czech, and Portuguese. Some lists have extra rules: Japanese phrases are separated by ideographic spaces, and several European lists are built so the first four letters uniquely identify each word. The word lists on this site are those ten files.

The BIP strongly discourages generating mnemonics with non-English lists, because most BIP39 wallets support only English. For a phrase that must be recoverable in more than one application, English is the portable choice.

Security basics

  • Generate the phrase in a wallet you trust, ideally offline, and treat the words as you would a private key.
  • Write the backup on paper or another offline medium, and keep a copy you can still reach after a fire, a lost device, or a failed drive.
  • Do not photograph the phrase, store it in email or cloud notes, or type it into a website to “validate” it.
  • The checksum can catch some writing mistakes. It does not hide the phrase or stop someone who has a copy of the words.
  • If you set a passphrase, you need both the words and the passphrase to recover the same wallet.
  • Not every wallet uses BIP39. Electrum uses its own seed version system and does not generate BIP39 phrases by default, though it can import them in a separate mode. Monero’s widely used legacy backup is a 25-word mnemonic from a 1,626-word list. SLIP-0039, a later Shamir secret-sharing scheme proposed by the BIP39 authors as a successor, is not compatible with a BIP39 phrase. Electrum and SLIP39 are both discussed in the SLIP39 and Electrum lesson.

FAQ

Is a 12-word phrase safe enough?

A correctly generated 12-word BIP39 phrase has 128 bits of entropy, the BIP’s lower bound; a 24-word phrase has 256 bits. Guessing either is not a practical attack. Typical failures are a leaked backup, a forgotten passphrase, or the wrong derivation path.

Does the checksum encrypt my wallet?

No. It only helps software detect some errors when the phrase is entered again.

Can I choose my own words?

You should not. BIP39 encodes computer-generated randomness. A made-up phrase will almost certainly have far less entropy than it appears to, and it may fail the checksum.

Why did a phrase restore to an empty wallet?

A wrong passphrase, a different language word list, or a different derivation path or address type are common causes. A valid checksum only means the words form a well-formed BIP39 sentence.

Do all wallets use BIP39?

No. Many Bitcoin and multi-coin wallets do, but Electrum and Monero, among others, use different mnemonic schemes. Similar length does not make the formats interchangeable.

On this site

Sources