How Long Are Bitcoin Addresses [Bitcoin Address Formats]?

|
Want to learn more about crypto?
Explore more on our blog!
Learn more
A man in a suit standing next to a pile of bitcoins, showcasing their value and wealth.
Table of Contents
A man in a suit standing next to a pile of bitcoins, showcasing their value and wealth.

Key Takeaways:

  • A Bitcoin wallet address can have between 34 to 62 alphanumeric characters
  • The characters “0”, “o”, “l”, and “i” are omitted from Bitcoin addresses to avoid confusion
  • Understanding the length and format of Bitcoin addresses is essential for safe transactions

How Long is a Bitcoin Address?

A Bitcoin wallet address is between 34-62 alphanumeric characters. 

Most resources claim that there are up to about 35 characters, which is not completely correct. 

The newer address types of Bitcoin can have much more characters which we will explain in this article. They don’t use all the characters available. 

The characters 0 (zero), O (capital o), l (lower L) and I (capital i) are omitted because in some fonts they are displayed identically. Wallet addresses are long and inconvenient, so it is possible to convert them into QR codes. 

Bitcoin wallet addresses are generated randomly, but they always start with the characters “1”, “3” or “bc1”. This prefix in the Bitcoin address is an identifier of its type. 

The reason for this is that these addresses use different format types for Bitcoin payments and were generated under different circumstances. These crypto addresses always undergo a checksum calculation, which verifies if they are valid. 

Another important factor is the case sensitivity of these addresses. They can include lower- and uppercase characters, which have to be typed in correctly.

If you not only understand the pure length of Bitcoin addresses but also their formats, you’ll be able to use them safely for your transactions.

Different Bitcoin Address Formats

Besides the character length of an address, it is important to note that addresses can be generated with specific prefixes depending on the format used. 

This way you are not only able to identify the kind of address, but they also offer distinct advantages. 

They are generally divided into 4 groups of addresses. Starting with the oldest address, we have Legacy, Script, SegWit and Taproot. 

These four types were developed over time because Bitcoin needed to adapt to its environment and increased use. The last two types, SegWit and Taproot, are based on the same encoding scheme, called Bech32. 

This allows them to be faster and more secure and efficient. Your address type may depend on the service you use. Especially the two newer types are not supported by all exchanges and wallets. 

In the end, all addresses work on the same concept of Bitcoin and its algorithms.

P2PKH Address (Legacy Address)

This is the original address format of Bitcoin. 

It means paying to the public key hash of the recipient and locking bitcoins to it. 

A P2PKH, or Pay-to-Public-Key-Hash address, always starts with a “1”. This address has a slight disadvantage over the other addresses. 

The P2PKH output can be unlocked (spent) with the corresponding public key and digital signature created by the private key. This format doesn’t support multisig. The SegWit standard doesn’t allow the usage of these addresses anymore. 

This is good to know if you use a wallet with this newer standard. This lets this legacy address disappear and all brand new Bitcoin addresses aren’t created in this format anymore. 

If you want to send a transaction from this format to a newer SegWit type, the fees are relatively high.

P2SH Address (Script Address)

The P2SH, or Pay-to-Script-Hash address, is a newer type than the P2PKH but has the same structure. 

This address always starts with a “3”. 

This new address type was introduced because of the “SegWit” upgrade. In this upgrade, the transaction time of Bitcoin was lowered.

This lower transaction time was achieved with a reduction of the transaction data needed to be included in a block. This led to lower fees for transactions with P2SH addresses. It allows users to use a single address for multiple transactions. 

Instead of paying to 3 different Bitcoin addresses, all transactions can be received into one address. This is especially helpful for businesses which need to get a lot of transactions from customers with the ability to monitor it with little organization. 

A typical example would be a BTC address to receive a donation from many people. They could gather everything in one place and then transfer the funds to other places from there. 

Having one address in a transaction instead of multiple ones reduces the amount of bytes needed to be stored for this transaction. Because of the same structure, it can be converted to a P2PKH address.

P2WPKH Address (SegWit Address)

The P2WPKH, or Pay-to-Witness-Public-Key-Hash address, was introduced with the SegWit Upgrade in Bitcoin. 

This is a more efficient address format with the use of Bech32. 

The prefix of this type is “bc1q”. This type introduced reduced transaction fees and faster Bitcoin network transactions by allowing to separate the signature data from the remaining transaction data. It provides more security against input errors. 

These addresses are not case sensitive and use code to correct errors. This helps to secure the users even more from potential mistakes. Unlike traditional addresses, these types contain only the single public key hash. 

It is possible because users have to provide proof of ownership by the corresponding private key in order to process transactions. This improves security and protects privacy because less data has to be sent. 

This allows faster transactions, lower fees and improved anonymity because of less data. The smaller size of data allows more of these transactions to be put into one block. This is more efficient and cost-effective.

P2TR Address (Taproot Address)

P2TR, or Pay-to-Taproot, is the last and newest and most advanced type of Bitcoin address that provides an extra layer of security and privacy. 

It was introduced at the end of 2021

This type starts with the prefix “bc1p”. With Taproot, Schnorr Signatures were implemented, which has some advantages over the currently used ECDSA (Elliptic Curve Digital Signature Algorithm). 

The biggest one is that it allows for key aggregation. Multiple parties can sign a transaction by combining their public keys to one aggregated key. They all need to sign the transaction. 

It is not possible to differentiate between this multisig and single signature transaction. This increases privacy, as now one public key could be generated by multiple users instead of only one. 

This aggregation further allows to verify these signatures in batches which reduces times. Taproot is more efficient, private, and provides faster verification processes. It doesn’t replace the current ECDSA, so it will take time to be adapted by the whole blockchain. 

Both SegWit and Taproot start with the prefix “bc1” because they both support Bech32 encoding.

Bech32 Address Format

This address format starts with a “bc1”. 

It is an encoding scheme used by SegWit and Taproot. 

It comprises 42-62 characters. This format was introduced with the native SegWit. It is designed for even more block space efficiency, which makes it the preferred address type for today’s Bitcoin transactions. 

They are more efficient and provide lower fees than the older addresses. Not all Bitcoin wallets or crypto exchanges support this new type format yet. Another advantage of this type is the use of only lowercase letters compared to the other two types.

It further excludes the number “1” and the letters “o”, “i” and “b”. This makes it less prone to typing errors. Before Bech32, Bitcoin used the Base58 encoding scheme only. This is, of course, still used by the older address types. 

This older encoding scheme uses a mixed case letter and is more likely prone to typing errors. With Bech32, addresses with more characters were introduced. The two older addresses Legacy and Script comprise 34 characters. 

SegWit addresses increased the length to 42 characters. The newest type, Taproot, even comprises 62 characters.

FAQ

Can a Bitcoin Address Have 42 Characters?

Yes, a Bitcoin address can be 42 characters long. 

This question arises often because many resources state that every address can have up to about 26-35 alphanumeric characters. 

This leads to people thinking that if they have a longer address, then maybe something is not correct. The older address type has a limit of 34 digits. The newer types introduced more digits. 42 characters are the length of the SegWit address. 

If you see an address with this many digits and with the prefix “bc1q” then you know that this is a SegWit address. There is no reason to be afraid in such a case. 

This address even means that you are using a more modern type of address with more security and efficiency. Most wallets provide you automatically with this type of address instead of the legacy ones.

What Does a BTC Address Look Like?

A Bitcoin address contains a string of alphanumeric characters that is unique. 

A BTC address looks for example like this: bc1qmhcs7eczvqzklrg8feipbmar32frgjbmsdg3qt

This public address is unique and is used to send and receive transactions (note that this address was randomly picked so don’t use it for anything!).

How Many Characters is a Bitcoin Hash?

A Bitcoin hash has 64 characters. 

It is 256 bits long determined by the SHA256 algorithm used by Bitcoin. 

It differs from an address and is a unique string of characters as well. Addresses result from this hash in the cryptographic process. The length is fixed and is not dependent on the input. 

No matter how much information is put into the hashing process, the result has always the same fixed length. This predictable size of the result is one of the reasons it is so popular to use for cryptography and this cryptocurrency.

Conclusion: How Long is a Bitcoin Address?

A Bitcoin wallet address can have between 34 to 62 alphanumeric characters. The newer address types have more characters compared to the old ones. The characters “0”, “o”, “l”, and “i” are omitted to avoid confusion. Understanding the length and format of Bitcoin addresses is essential for safe transactions.

Sources

Disclaimer:

The information provided on this blog is for general informational and educational purposes only. It is not intended as financial, legal, or investment advice. Cryptocurrency investments are volatile and high risk in nature; it is possible to lose your entire investment. We are not financial advisors, nor do we purport to be.

While we strive to provide accurate and up-to-date information, we cannot guarantee the accuracy, completeness, or applicability of any information provided. The views and opinions expressed on this blog are solely those of the authors and should not be construed as professional advice. We do not endorse or guarantee the performance of any cryptocurrencies, projects, or companies mentioned herein.

Readers are encouraged to conduct their own research and consult with a professional financial and legal advisor before making any investment decisions. The owner of this website and the authors of its content will not be liable for any losses, injuries, or damages from the display or use of this information. Use of this information is at your own risk.

About the Author:
Morgan Davis, an expert in digital currency and economic analysis, offers a unique perspective on cryptocurrency within the global financial landscape. With a background in International Economics, Morgan's insights delve into how macroeconomic factors influence the crypto market. Their writing simplifies complex economic and cryptocurrency concepts, making them accessible to a broad audience. Morgan is actively engaged in discussions about the impact of blockchain on finance, and their work empowers readers to understand and navigate the world of digital currencies.