Free tools › Wei, gwei and ETH converter

Wei, gwei and ETH converter

Convert between wei, gwei and ETH, turn raw ERC-20 amounts into readable numbers for any decimals, and convert lamports to SOL. Exact to the last digit.

Wei · Gwei · ETH

ERC-20 token amount

Lamports · SOL

Quick gas fee

Fee–
Create your own ERC-20Pick the name, symbol and supply. Tokens use 18 decimals, like ETH.
Open the token creator →

Ethereum units explained

ETH is stored on-chain as whole numbers of wei, the smallest unit. One ETH is 1,000,000,000,000,000,000 wei (1018). Gwei sits in the middle at 1,000,000,000 wei (109) and is the unit wallets use for gas prices.

UnitWeiETH
Wei10.000000000000000001
Gwei1,000,000,0000.000000001
ETH1,000,000,000,000,000,0001

ERC-20 tokens work the same way. A token with 18 decimals stores "1 token" as 1 followed by 18 zeros. Explorers and contract calls often show the raw number, which is why a supply of one billion tokens appears as a 28-digit figure. Tokens with 6 decimals, such as USDC, use far fewer zeros.

On Solana the smallest unit is the lamport: one SOL is 1,000,000,000 lamports. For live network costs, use the ETH gas calculator, and see Ethereum gas fees explained.

Questions people ask

How many wei are in 1 ETH?

1,000,000,000,000,000,000 wei, which is 10 to the power of 18.

How many gwei are in 1 ETH?

1,000,000,000 gwei, which is 10 to the power of 9.

How do I convert gwei to ETH?

Divide the gwei amount by 1,000,000,000. For example, 20 gwei is 0.00000002 ETH.

Why does my token balance look so large in a contract call?

Contracts store balances as raw integers. Divide the raw number by 10 to the power of the token's decimals to get the readable amount.

How many lamports are in 1 SOL?

1,000,000,000 lamports.