Convert between token units across multiple blockchain networks
Blockchain networks use different denominations to represent values ranging from very small to very large amounts. Understanding these units is essential for working with smart contracts, calculating gas fees, and conducting transactions.
Most EVM-compatible chains follow a similar unit structure based on powers of 10:
| Unit | Value in Wei | Decimal Places |
|---|---|---|
| Wei | 1 | 0 |
| Kwei (Kilowei) | 1,000 | 103 |
| Mwei (Megawei) | 1,000,000 | 106 |
| Gwei (Gigawei) | 1,000,000,000 | 109 |
| Szabo (Microether) | 1,000,000,000,000 | 1012 |
| Finney (Milliether) | 1,000,000,000,000,000 | 1015 |
| Ether/MATIC/BNB/AVAX | 1,000,000,000,000,000,000 | 1018 |
Gwei (Gigawei) is the most commonly used unit in blockchain transactions, especially for specifying gas prices. When you interact with a blockchain, you'll typically see gas prices displayed in Gwei because:
The original smart contract platform uses ETH as its native token. Gas prices typically range from 10-100+ Gwei depending on network congestion.
A Layer 2 scaling solution for Ethereum using MATIC tokens. Transaction fees are significantly lower, often measured in fractions of a cent.
Binance's blockchain network using BNB as the native token. Offers lower fees than Ethereum mainnet with faster block times.
High-throughput blockchain using AVAX tokens. Features sub-second finality and low transaction costs.
If a transaction uses 21,000 gas at 50 Gwei:
When writing smart contracts, amounts are always stored in the smallest unit (Wei). If you want to transfer 1 ETH, you specify 1000000000000000000 Wei.
Most tokens use 18 decimal places, matching Ether's precision. However, some tokens like USDC use 6 decimals, so always check the token's decimals property.