← Back to tools

Address & Bytes32 Converter

Convert between address formats and bytes32 representation

How It Works

Encode (Address → Bytes32): Converts any blockchain address to its bytes32 representation. The protocol type is automatically detected when possible.

Decode (Bytes32 → Address): Converts a bytes32 value to an address in the specified protocol format.

  • 20-byte protocols (Ethereum, Cosmos): Use the last 20 bytes of the bytes32
  • 32-byte protocols (Solana, Starknet, Aleo, Radix): Use all 32 bytes
  • Cosmos chains require a chain-specific prefix (e.g., "cosmos", "osmo")

Examples

Encode: Address to Bytes32

Ethereum:

0x1234567890123456789012345678901234567890

Solana:

So11111111111111111111111111111111111111112

Decode: Bytes32 to Address

Bytes32:

0x0000000000000000000000001234567890123456789012345678901234567890

💡 Tip: Select your target protocol and specify a prefix for Cosmos chains.