Sun to TRX Converter

TronGrid, TronScan raw data and smart contracts count in sun. Convert to TRX and back exactly.

Converted in your browser with JavaScript. Addresses are never uploaded or stored.

What is a sun to TRX converter?

A sun to TRX converter divides an integer sun count by 106 to express it in TRX and multiplies by 106 to go back. Sun is the smallest unit of Tron's native token: every amount in a TransferContract, every balance returned by a node and every fee figure in a transaction receipt is an integer in sun, and TRX with 6 decimals is the wallet display.

Tron units table

UnitSunTRX
sun10.000001
TRX1,000,0001

Examples

Worked example

A TronGrid account query returns "balance": 1234567890. Dividing by 1,000,000 gives 1,234.56789 TRX. A transaction receipt listing "fee": 345000 cost 0.345 TRX. To send 12.5 TRX you build a TransferContract with amount: 12500000. Because 106 is small, floating point rarely loses precision here, but mixing sun and TRX in the same calculation is the usual source of amounts that are a million times too large or too small.

Smallest units across chains

ChainSmallest unitUnits per coinDecimals
Tronsun1,000,0006
Bitcoinsatoshi100,000,0008
Solanalamport1,000,000,0009
Ethereumwei101818

Common mistakes

Related tools

Convert a T… address to hex for API calls with the Tron address converter, or generate a receiving code with the USDT TRC-20 QR generator.

Frequently asked questions

How many sun are in 1 TRX?

1,000,000 (106). One sun is 0.000001 TRX. The unit is named after Tron's founder, Justin Sun.

Where do I see sun?

In TronGrid API responses (balance fields), in the amount of raw transactions, and in TronScan's advanced views. Wallets like TronLink display TRX.

What are energy and bandwidth prices in sun?

Energy is priced at 100 sun per unit and bandwidth at 1,000 sun per byte when you have no staked resources, so a USDT TRC-20 transfer that burns about 65,000 energy costs roughly 6,500,000 sun = 6.5 TRX (prices are set by the network and may change).

Is sun the same as a TRC-20 token's smallest unit?

No. Sun is the smallest unit of TRX only. A TRC-20 token defines its own decimals in its contract; USDT happens to use 6 as well, but other tokens use 18 or other values.

What does a plain TRX transfer cost in sun?

A TRX transfer consumes roughly 250 to 270 bytes of bandwidth. Accounts receive a daily allowance of free bandwidth that usually covers a few transfers; beyond it, bandwidth is bought at 1,000 sun per byte, so one transfer burns around 270,000 sun (0.27 TRX).

Does USDT on Tron use sun?

No. USDT TRC-20 has 6 decimals of its own, so 1 USDT is stored as 1,000,000 in the contract. The numbers coincide with sun, but they are token units. Use the token decimals converter.