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
- Pick the chain (Ethereum / TRON / custom token).
- Enter the amount and choose its unit or decimals.
- 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
- Base58 · TRON Address — Convert & validate TRON (T…), hex (41…) and EVM (0x…) addresses; plus generic Base58.
- Keccak-256 · Selector — Keccak-256 digests, function selectors and event topics (not the same as SHA3-256).
- ABI Calldata Decoder — Decode transaction input data into a function and its arguments; common ERC20/721 auto-detected.
- Request Echo — See what the server actually received: every header, the real IP, the proxy chain.
- HTTP Testbed — Return any status, delay, redirect or payload size to exercise client retry and timeout logic.
- Webhook Box — Generate a temporary URL to capture third-party callbacks and inspect headers and body in full.