A Bitcoin address is the string of characters you share to receive bitcoin, a bit like an account number for a single payment. You will see addresses that start with 1, 3, bc1q or bc1p. All of them are valid Bitcoin addresses and can send to one another, but they differ in age, cost and features. This guide explains the formats, how they protect you against typos and how to use them without giving away your privacy.
What an address really is
An address is not an account and does not "contain" bitcoin. It is a compact, human-friendly encoding of a spending condition: the rule that must be met to spend coins sent to it. In the most common case, that rule is "prove you hold the private key that matches this public key."
When someone pays your address, the network records a new output locked to that condition. Your wallet watches the blockchain for outputs it can unlock and adds them up as your balance.
The four main formats
| Format | Starts with | Encoding | Typical length | Introduced |
|---|---|---|---|---|
| Legacy (P2PKH) | 1 | Base58Check | 26 to 34 characters | 2009 |
| Script hash (P2SH) | 3 | Base58Check | 34 characters | 2012 |
| Native SegWit (P2WPKH, P2WSH) | bc1q | Bech32 | 42 or 62 characters | 2017 |
| Taproot (P2TR) | bc1p | Bech32m | 62 characters | 2021 |
Legacy addresses (P2PKH): starting with 1
Pay-to-public-key-hash addresses are the original format. They encode a hash of a public key, and spending requires the matching public key and signature. Legacy addresses still work everywhere, but spending from them uses the most block space, so they are the most expensive to use.
Script hash addresses (P2SH): starting with 3
Pay-to-script-hash addresses arrived with an upgrade in 2012. Instead of a public key, they encode the hash of a script, which can describe more complex conditions such as "any two of these three keys," known as multisig. The sender does not need to know the details; the script is revealed only when the coins are spent.
P2SH is also used for "wrapped" or "nested" SegWit, a transition format that let SegWit wallets receive from older wallets that could not yet send to bc1 addresses. Wrapped SegWit is cheaper than legacy but more expensive than native SegWit.
Native SegWit (bech32): starting with bc1q
The SegWit upgrade, activated in 2017, introduced a new address format called bech32. Single-key addresses (P2WPKH) are 42 characters long; script addresses (P2WSH, often used for multisig) are 62 characters. Native SegWit transactions are much cheaper to spend than legacy ones because signature data receives a discount in block weight.
Taproot (bech32m): starting with bc1p
The Taproot upgrade, activated in November 2021, introduced Pay-to-Taproot addresses using a slightly modified encoding called bech32m. Taproot uses Schnorr signatures and can hide complex spending conditions behind what looks like an ordinary single-signature payment, which improves privacy and efficiency. Taproot inputs are the smallest of all address types, though Taproot outputs are slightly larger than native SegWit ones.
Almost all modern wallets and exchanges can send to every format. If an older service refuses a bc1p address, that is a limitation of that service, not a problem with your address. For how address types affect costs, see Bitcoin transaction fees.
Checksums: built-in typo protection
Every Bitcoin address format includes a checksum: a few characters calculated from the rest of the address. When you paste or type an address, your wallet recomputes the checksum. If a character is wrong, the check fails and the wallet refuses to send.
- Base58Check (addresses starting with 1 or 3) uses a checksum derived from a double SHA-256 hash. The chance that a random typo produces another valid address is around one in four billion. Base58 also leaves out characters that are easily confused: zero (0), capital O, capital I and lowercase l.
- Bech32 and bech32m (bc1 addresses) use a checksum designed specifically to catch human errors. It is guaranteed to detect any error affecting up to four characters, and it can even point to where a mistake is. Bech32 addresses use only lowercase letters and digits (uppercase is allowed only if the whole address is uppercase, which is useful for QR codes), and they leave out 1, b, i and o after the separator. Bech32m fixes a small weakness of the original bech32 for certain kinds of mistakes, which is why Taproot uses it.
A checksum protects against accidents, not against fraud. A scammer's address has a perfectly valid checksum. Our address validator tells you whether an address is well formed and which type it is, but no tool can tell you who controls it.
Testnet and other networks
Bitcoin has test networks where coins have no value, used by developers to try software safely. Their addresses use different prefixes so they cannot be confused with real ones:
| Network | Legacy | Script hash | SegWit and Taproot |
|---|---|---|---|
| Mainnet (real bitcoin) | 1 | 3 | bc1q, bc1p |
| Testnet and signet | m or n | 2 | tb1q, tb1p |
| Regtest (local testing) | m or n | 2 | bcrt1q, bcrt1p |
Wallets reject addresses from the wrong network, which is exactly the point. If someone offers to sell you "testnet bitcoin" as if it were real, it is a scam.
Note also that some exchanges list other blockchains when you withdraw bitcoin. An address from another blockchain may look different or, in some cases, similar to a Bitcoin address. Always choose the Bitcoin network when sending to a Bitcoin wallet.
Address reuse and privacy
The Bitcoin blockchain is public. Anyone can look up an address and see every payment it has received and sent. Your name is not written there, but if anyone learns that an address is yours, every transaction connected to it is linked to you.
That is why wallets generate a new address for every payment you receive. All of these addresses come from the same seed phrase, so there is no extra backup work. Reusing one address over and over:
- lets anyone who pays you see your other payments and your balance,
- links your payments together, making your financial history easier to trace,
- reveals more information to anyone who analyzes the blockchain.
Your wallet also sends your change to a fresh address of its own. For the best privacy, use a new receiving address each time, and be careful when combining many coins in one transaction, since that links them together.
Checking an address before you send
Because Bitcoin payments cannot be reversed, a few habits are worth adopting:
- Copy and paste, never retype. Then compare the first and last several characters, and some in the middle, against the original.
- Beware of clipboard malware, which silently swaps an address you copied for the attacker's. Checking the full address on screen is the defense.
- Use your hardware wallet's screen. It shows the real destination even if your computer is compromised.
- Do not copy addresses from your transaction history. Scammers sometimes send tiny amounts from look-alike addresses, hoping you will copy theirs by mistake.
- Send a small test payment first for large amounts.
Our guide to Bitcoin scams and security covers these attacks in more detail.
Other things that look like addresses
You may also come across:
- Payment links and QR codes beginning with
bitcoin:, which contain an address and sometimes an amount and label. - Lightning invoices, long strings usually beginning with
lnbc, used for payments on the Lightning Network. These are not on-chain addresses. - Extended public keys (beginning with xpub, ypub, zpub and similar), which can generate all the addresses of a wallet. Never paste one into a send field, and be careful who you share it with, since it reveals your entire wallet history.
Summary
- Addresses starting with 1, 3, bc1q and bc1p are all valid Bitcoin addresses.
- Native SegWit (bc1q) and Taproot (bc1p) are the most efficient and are the default in modern wallets.
- Checksums catch typos but not scams. Always verify the address itself.
- Use a new address for each payment to protect your privacy.