Overview
Learn the difference between TRON Hex and Base58 address formats. Hex addresses start with 41 and are 42 characters. Convert between formats using TronWeb SDK.
TRON hex addresses vs Base58 wallet addresses
Hex Format: 42 Characters: TRON hex addresses are 42 characters long, starting with 41. Example: 418840E6C55B9ADA326D211D818C34A994AECED808
Base58 to Hex Conversion: tronWeb.address.toHex() converts a 34-char Base58 address to 42-char hex. Example output: 418840E6C55B9ADA326D211D818C34A994AECED808
Ethereum Similarity: Remove the 41 prefix from a TRON hex address to get the corresponding Ethereum address. TRON and Ethereum use the same secp256k1 key generation algorithm.
TronWeb makes hex and Base58 conversion simple
TRON internally uses hex format for smart contracts and low-level operations. The TronWeb SDK provides tronWeb.address.toHex() and tronWeb.address.fromHex() for seamless conversion. The Hex format is required when interacting with Solidity contracts deployed on TRON.
How to convert TRON addresses in 4 steps
Step 1 – Install TronWeb: npm install tronweb: the official JavaScript SDK for TRON provides all address conversion utilities.
Step 2 – Base58 to Hex: tronWeb.address.toHex('TYourAddress') converts the 34-char Base58 address to 42-char hex format.
Step 3 – Hex to Base58: tronWeb.address.fromHex('41YourHexAddress') converts a hex address back to readable Base58 format.
Step 4 – Verify the result: After conversion, compare on tronscan.org to confirm the Base58 and hex addresses match the same account.
Related TRON Address Format Guides
- What Is Tron Wallet Address Format?
- TRX Address Examples
- TRC20 Wallet Address Format
- TRON Address Base58Check Encoding
- How to Validate a TRON Wallet Address
- How to Get a TRC20 Wallet Address
Key Facts About TRON Wallet Address Format
A TRON wallet address in Base58Check format is always exactly 34 characters long and always begins with the capital letter T. This format uses Base58 encoding with a built-in checksum, making it case-sensitive and resistant to typos. The Hex format equivalent starts with 41 and is 42 characters long. TRC20 tokens including USDT on the TRON network use the exact same address format as native TRX, so one wallet address can hold both TRX and any TRC20 token simultaneously.
When validating a TRON address, first confirm it starts with T and contains exactly 34 characters. Use tronWeb.isAddress() for programmatic validation or check on tronscan.org. Never send TRX or TRC20 tokens to an ERC20 address (starting with 0x) as these transactions cannot be reversed on the TRON blockchain.