A Bitcoin & Ethereum address validator checks whether a cryptocurrency address conforms to the format rules for its type. Bitcoin has three address types (Legacy P2PKH, SegWit P2SH, and native SegWit Bech32) with different encoding schemes. Ethereum addresses are 42-character hex strings with an optional EIP-55 checksum. Validating before sending funds prevents costly send-to-wrong-address errors.

Address Type Reference

Bitcoin Legacy (P2PKH) Starts with 1

Original Bitcoin address format. 25-34 characters. Uses Base58Check encoding (digits 1-9, A-Z, a-z, excluding 0, O, I, l).

Bitcoin P2SH (SegWit Wrapped) Starts with 3

Pay-to-Script-Hash addresses. Compatible with older wallets while supporting SegWit. 25-34 characters. Base58Check encoded.

Bitcoin Native SegWit (Bech32) Starts with bc1

Native SegWit (BIP 84/141). Lower transaction fees. 42-62 characters. Bech32 encoded (digits 0-9, lowercase a-z, excluding b, i, o, 1).

Ξ Ethereum (ERC-20) Starts with 0x

Ethereum mainnet address. Exactly 42 characters: 0x + 40 hex digits. Optional EIP-55 mixed-case checksum. Also used for ERC-20 tokens.