Skip to content
LearnBitcoin

LearnGlossary

BIP 173 (Bech32)

Introduced the bech32 address format, a SegWit-compatible encoding with improved error detection.

BIP-173 defines bech32, the address format used for native SegWit outputs. Bech32 addresses are recognizable by their bc1q prefix (mainnet) or tb1q (testnet).

Why bech32 exists and is worth caring about:

  • Better error detection. Bech32's checksum is mathematically designed to detect typos and adjacent-character swaps - the kind of mistakes humans actually make. The previous Base58Check format was strong but less rigorous; bech32 catches more errors with better mathematical guarantees.
  • One case, 32 characters. The data part uses the digits and the lowercase letters minus 1, b, i and o, a set BIP 173 chose from data on which characters people mistake for each other. Easier to read aloud, dictate over the phone, and re-key by hand.
  • QR code friendly. Bech32 never mixes case, so a wallet can put the address in a QR code in uppercase, which lets the code use its alphanumeric mode. BIP 173 puts that mode at 45% more compact than byte mode, the one a mixed-case Base58 address needs.
  • Native SegWit support. The whole point: bech32 was designed to be the witness-version-0 address format. Spending from bech32 saves ~30-40% in fees compared to legacy P2PKH.

Designed by Pieter Wuille and Greg Maxwell and proposed in 2017, bech32 became the default address format for new SegWit deployments through the late 2010s.

A successor, bech32m (BIP-350), was introduced for Taproot addresses (prefix bc1p). It uses essentially the same format with one constant changed, fixing a subtle weakness in bech32 that mattered for the new witness versions.

In 2026, most wallets default to bech32 or bech32m addresses for new receives. Legacy formats (1..., 3...) still work but are gradually being phased out in everyday use. See P2WPKH and Taproot for the script formats bech32/bech32m wrap.

Bech32 checksum

The last six characters of a bech32 address are a checksum of everything before them. Edit the address, or use the buttons, and see what a wallet would say.

The checksum matches. A wallet would accept this address.

BIP 173 built the checksum to catch any change to four characters or fewer, and to let a bigger mistake through less than once in a billion tries.

Example address from BIP 173. Its private key is public (it is the number 1), so anyone can take coins sent to it. Never send coins to it.

Key takeaways

  • Uses base32 encoding and a robust checksum
  • Native SegWit support reduces fees and malleability
  • Easier to type and scan with fewer errors

On the mailing list

BIP 173 came up in 14 threads on bitcoin-dev between July 2017 and July 2025. Read them in the archive.

The topic timeline: Address formats (156 threads).

Corrected

  • Was: The entry said bech32 leaves out look-alike characters such as l and 0, said an all-lowercase bech32 address makes a smaller QR code than Base58, and named Pieter Wuille as its only designer.

    Now: BIP 173 leaves 1, b, i and o out of the data part; l and 0 are in it. The QR saving comes from uppercase: a bech32 address never mixes case, so it can go into a QR code in uppercase and use the alphanumeric mode, which the BIP puts at 45% more compact than the byte mode a mixed-case Base58 address needs. The BIP's authors are Pieter Wuille and Greg Maxwell. The entry now says so and lists BIP 173 and BIP 350 in its sources. Details

Sources (3)

External references (3)

Related terms (9)

Published . Revised . One correction logged for this page.

Edit this page on GitHub