TeachMeBitcoin

The Base32 Alphabet

From TeachMeBitcoin, the free encyclopedia Reading time: 2 min

The Base32 Alphabet

Bech32 uses a custom 32-character alphabet. Like Base58, it is carefully designed to remove confusing characters, but it goes even further by eliminating all uppercase letters to optimize for modern user interfaces.

1. The Characters

The Bech32 alphabet consists of: qpzry9x8gf2tvdw0s3jn54khce6mua7l

2. Why 32 characters?

The number 32 is a "Power of Two" ($2^5$). This is mathematically significant.

3. QR Code Optimization

Standard QR codes have a special "Alphanumeric Mode" that is extremely efficient.

4. The Mapping

Every character in the alphabet corresponds to a 5-bit value (0 to 31).

Index Char Index Char
0 q 16 s
1 p 17 3
5 9 31 l

In the next section, we will discuss the HRP and Separator.

☕ Help support TeachMeBitcoin

TeachMeBitcoin is an ad-free, open-source educational repository curated by a passionate team of Bitcoin researchers and educators for public benefit. If you found our articles helpful, please consider supporting our hosting and ongoing content updates with a clean donation:

Ethereum: 0x578417C51783663D8A6A811B3544E1f779D39A85
Bitcoin: bc1q77k9e95rn669kpzyjr8ke9w95zhk7pa5s63qzz
Solana: 4ycT2ayqeMucixj3wS8Ay8Tq9NRDYRPKYbj3UGESyQ4J
Address copied to clipboard!