Bitcoin Address Validator

Validate Bitcoin address formats and identify address types for mainnet and testnet.

Bitcoin Address Validator

Validate Bitcoin address formats and types.

₿ About Bitcoin Addresses

Bitcoin addresses are identifiers used to receive Bitcoin payments. This validator checks format and basic structure for mainnet and testnet addresses.

Supported formats:
  • Legacy P2PKH: Starts with "1" (e.g., 1A1zP1eP5...)
  • Legacy P2SH: Starts with "3" (e.g., 3J98t1WpE...)
  • SegWit (Bech32): Starts with "bc1" (e.g., bc1qw508d...)
  • Testnet: Starts with "m", "n", "2", or "tb1"

Note: This performs format validation only. It doesn't verify if the address exists on the blockchain.


Supported Address Formats

Legacy Addresses (Base58Check)
1.

P2PKH (Pay to Public Key Hash): Starts with 1

Example: 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa

Most common legacy format

2.

P2SH (Pay to Script Hash): Starts with 3

Example: 3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy

Used for multi-signature and other scripts


SegWit Addresses (Bech32)

1.

P2WPKH (Native SegWit): Starts with bc1, 42 characters

Example: bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4

Lower fees, better for small transactions

2.

*P2WSH (Native SegWit Script): Starts with bc1, 62 characters

Example: bc1qrp33g0q5c5txsp9arysrx4k6zdkfs4nce4xj0gdcccefvpysxf3qccfmv3

For complex scripts with SegWit benefits


Testnet Addresses

Testnet P2PKH: Starts with m or n

Testnet P2SH: Starts with 2

Testnet Bech32: Starts with tb1


Validation Features

Format Validation: Checks character set and structure

Checksum Verification: Validates address checksums

Type Detection: Identifies specific address type

Network Detection: Distinguishes mainnet vs testnet

Not Validated: Existence on blockchain (format only)


Common Use Cases

Payment Processing: Validate addresses before sending

Wallet Integration: Verify user-entered addresses

API Development: Input validation for Bitcoin services

Educational: Learn about Bitcoin address formats

Debugging: Troubleshoot address-related issues

Security Note

This validator only checks format and structure. It doesn't verify if an address exists on the Bitcoin blockchain or has any associated balance.

Did you find this page useful?