When interacting with the Bitcoin network, one of the most common questions for new users is: How long are Bitcoin addresses? The answer is not a single fixed number, as the length depends entirely on the address format (or script type) being utilized. Bitcoin has evolved over the years, introducing new address structures to improve efficiency, security, and privacy.
Table of contents
Legacy Addresses (P2PKH)
The original Bitcoin addresses, often called Legacy addresses, typically start with the number 1. These addresses are encoded using Base58Check. In terms of length, they generally range from 26 to . These addresses were the standard in the early days of Bitcoin and remain widely supported across all wallets and exchanges.
Pay-to-Script-Hash (P2SH) Addresses
P2SH addresses were introduced to allow for more complex transaction types, such as multi-signature wallets. These addresses always begin with the number 3. Like Legacy addresses, they are also encoded in Base58 and typically fall within the 26 to 35 character range. Because they look similar in structure to Legacy addresses, users must be careful to distinguish between the two when sending funds.
SegWit and Bech32 Addresses (Native SegWit)
With the introduction of Segregated Witness (SegWit), a new address format known as Bech32 was created. These addresses are distinct because they are case-insensitive and begin with the prefix bc1q. These addresses are longer than their predecessors, often spanning . The shift to Bech32 provided lower transaction fees and better error detection for users.
Taproot Addresses (Bech32m)
The most recent major upgrade to Bitcoin, known as Taproot, introduced a new address format that starts with the prefix bc1p. These addresses use the Bech32m encoding scheme. Because of the way Taproot handles data, these addresses can be longer, frequently reaching up to . The increased length is a trade-off for the advanced privacy and efficiency features that Taproot offers.
Why do lengths vary?
- Encoding Schemes: Older formats use Base58, which excludes characters like 0, O, I, and l to prevent visual confusion. Newer formats use Bech32, which is more efficient for QR codes.
- Protocol Upgrades: Each upgrade (SegWit, Taproot) requires a different cryptographic structure, which naturally changes the data density and character count of the resulting address.
- Security and Privacy: Longer addresses often contain more complex script data, which is necessary for advanced features like multi-sig or smart contract-like functionality on the Bitcoin blockchain.
| Address Type | Starts With | Typical Length |
|---|---|---|
| Legacy (P2PKH) | 1 | 26-35 |
| P2SH | 3 | 26-35 |
| Native SegWit (Bech32) | bc1q | 42 |
| Taproot (Bech32m) | bc1p | 62 |
