TRON Address Format Explained
TRON wallet addresses exist in two formats: the user-friendly Base58Check format starting with T, and the internal Hex format starting with 41. Understanding both formats helps developers and users work more effectively with the TRON blockchain.
Base58Check Format (T-address)
The Base58Check format is what users see in wallets and explorers. It has these properties:
- Always starts with the capital letter T
- Exactly 34 characters long
- Uses characters: 0-9, A-Z, a-z (excluding 0, O, I, l to avoid confusion)
- Includes a 4-byte checksum for error detection
Example: TNPeeaaFB7K9cmo4uQpcU32zGK8G1NYqeL
Hex Format (41-address)
The Hex format is used internally by the TRON protocol and APIs:
- Starts with 41 in hexadecimal
- Exactly 42 characters long
- Used in raw API calls and smart contracts
Example: 418840E6C55B9ADA326D211D818C34A994AECED808
Converting Between Formats
You can convert between the two formats using TronWeb:
// Base58 → Hex
tronWeb.address.toHex("TNPeeaaFB7K9cmo4uQpcU32zGK8G1NYqeL")
// Returns: "418840E6C55B9ADA326D211D818C34A994AECED808"
// Hex → Base58
tronWeb.address.fromHex("418840E6C55B9ADA326D211D818C34A994AECED808")
// Returns: "TNPeeaaFB7K9cmo4uQpcU32zGK8G1NYqeL"
TRON vs Ethereum Address Format
TRON and Ethereum use the same underlying cryptography (secp256k1 ECDSA). For addresses generated from the same private key:
- The Ethereum address uses the last 20 bytes of the public key hash with 0x prefix
- The TRON Hex address uses the same 20 bytes but with 41 prefix instead of 0x
This means you can derive the Ethereum equivalent of any TRON hex address by replacing the 41 prefix with 0x — though this does NOT mean they are the same wallet or interchangeable.
Address Validation Rules
A valid TRON wallet address must:
- Start with T (Base58) or 41 (Hex)
- Be exactly 34 characters (Base58) or 42 characters (Hex)
- Contain only valid Base58 characters (no 0, O, I, or l)
- Pass the 4-byte checksum verification
Wallets and exchanges validate these rules before allowing a transfer, which prevents most typo errors.
