Wei / Gwei Units

wei/gwei/ether and sun/TRX conversion with any token decimals — no precision loss.

A free on-chain unit converter between wei, kwei, mwei, gwei, szabo, finney and ether, plus TRON’s sun / TRX, and any token decimals for ERC20 / TRC20 amounts. All math uses BigInt, so large values stay exact.

How to use

  1. Pick the chain (Ethereum / TRON / custom token).
  2. Enter the amount and choose its unit or decimals.
  3. The equivalent in every other unit is listed, each copyable.

FAQ

Why not use an ordinary number converter?
Most converters use JavaScript floating-point numbers, whose safe integer limit is about 2^53. On-chain uint256 amounts (1 ether = 10^18 wei) far exceed that and would silently lose precision. This tool uses BigInt throughout.
Why does it error instead of truncating extra decimals?
Silent truncation would give you a wrong amount. On a 6-decimal token, 1.1234567 cannot be represented — rather than quietly dropping a digit, the tool tells you it exceeds the precision.
How do TRX and sun relate?
1 TRX = 1,000,000 sun (6 decimals). sun is TRON’s smallest unit, analogous to wei on Ethereum.

Related tools