Home

Awesome

Bitcoin MIT license

Bitcoin address format

A Bitcoin address is an identifier (like an account number), starting with 1, 3 or bc1 on the mainnet, containing 27-34 alphanumeric Latin characters and digits (except 0, O, I).

Full list of Bitcoin address prefixes

A Bitcoin address, or simply address, is an identifier of 27-34 alphanumeric characters, beginning with the number 1, 3 or bc1, that represents a possible destination for a bitcoin payment. Addresses can be generated at no cost by any user of Bitcoin. It is also possible to get a Bitcoin address using an account at an exchange or online wallet service. Also, you can generate it offline and store on paper or at any digital storage.

There are currently four address formats in use in Bitcoin mainnet:

  1. P2PKH (Pay 2 Public Key Hash) which begin with the number 1
  2. P2SH (Pay 2 Script Hash) type starting with the number 3.
  3. Bech32 type starting with bc1.
  4. Taproot type starting with bc1p.
Example useLeading symbol(s)Example
Pubkey hash (P2PKH address)117VZNX1SN5NtKa8UQFxw ...
Script hash (P2SH address)33EktnHQD7RiAE6uzMj2Z ...
SegWit mainnet (P2WPKH address)bc1bc1qw508d6qejxtdg4y5 ...
SegWit Testnet (P2WPKH address)tb1tb1qw508d6qejxtdg4y5 ...
SegWit mainnet (P2WSH address)bc1bc1qrp33g0q5c5txsp9a ...
SegWit Testnet (P2WSH address)tb1tb1qrp33g0q5c5txsp9a ...
Private key (WIF, uncompressed pubkey)55Hwgr3u458GLafKBgxts ...
Private key (WIF, compressed pubkey)K or LL1aW4aubDFB7yfras2S1 ...
BIP32 pubkeyxpubxpub661MyMwAqRbcEYS8 ...
BIP49 pubkeyypubypub6XiW9nhToS1gjVsF ...
BIP49 pubkeyzpubzpub6qeoQyhseR78SC69 ...
BIP32 private keyxprvxprv9s21ZrQH143K24Mf ...
Testnet pubkey hashm or nmipcBbFg9gMiCh81Kj8t ...
Testnet script hash22MzQwSSnBHWHqSAqtTVQ ...
Testnet Private key (WIF, uncompressed pubkey)992Pg46rUhgTT7romnV7i ...
Testnet Private key (WIF, compressed pubkey)ccNJFgo1driFnPcBdBX8B ...
Testnet BIP32 pubkeytpubtpubD6NzVbkrYhZ4WLcz ...
Testnet BIP32 private keytprvtprv8ZgxMBicQKsPcsbC ...
RegTest BIP32 addressbrct1bcrt1q4gfcga7jfjmm02 ...

Hierarchical Deterministic Wallet

A HD wallet, or hierarchical deterministic wallet is a system of deriving keys from a single starting point known as a seed. The seed allows a user to easily back up and restore a wallet without needing any other information and can in some cases allow the creation of public addresses without the knowledge of the private key. Seeds are typically serialized into human-readable words in a Seed phrase.