EVMTools

ETH Unit Converter

Convert between Ethereum units: Wei, Gwei, and ETH. Essential for gas and transaction calculations.

Quick Reference

  • 1 ETH = 1,000 Finney = 1,000,000,000 Gwei = 10^18 Wei
  • 1 Finney = 10^15 Wei (also called milliether)
  • 1 Gwei = 10^9 Wei
  • Gas prices are typically expressed in Gwei

How to Use This ETH Unit Converter

This tool converts between all Ethereum unit denominations instantly. Enter a value in any unit and see the equivalent in all other units. It handles arbitrarily large numbers without floating-point precision loss.

  1. Enter a value in any field — Wei, Gwei, or ETH. The other fields update automatically in real time.
  2. Use Wei for smart contract values — paste raw uint256 values from contract calls or events to see the human-readable ETH equivalent.
  3. Use Gwei for gas prices — enter gas prices to convert them to Wei (for contract calls) or ETH (for cost estimation).
  4. Copy the converted value for use in your code, transactions, or calculations.

All conversions run locally in your browser with arbitrary precision arithmetic. No data is sent to any server.

Common Use Cases

  • Gas price conversion — Convert between Gwei and Wei when configuring transaction gas prices in code or wallet interfaces.
  • Smart contract development — Convert ETH amounts to Wei for use in Solidity test assertions, contract parameters, and deployment scripts.
  • Transaction analysis — Convert raw Wei values from transaction data and event logs into human-readable ETH amounts.
  • DeFi calculations — Convert between units when calculating swap amounts, liquidity positions, and yield values.
  • Documentation — Quickly convert values for technical documentation, blog posts, and developer tutorials.

Related Tools

Frequently Asked Questions

What are the different Ethereum units?

Ethereum has several denominations of its native currency, similar to how dollars have cents. The smallest unit is Wei (1 ETH = 10^18 Wei). Gwei (gigawei) equals 10^9 Wei and is commonly used for gas prices. Other units include Kwei (10^3), Mwei (10^6), and Finney (10^15), though Wei, Gwei, and ETH are used most frequently.

Why is Gwei used for gas prices?

Gas prices are expressed in Gwei because it provides a human-readable number for typical gas costs. A gas price of 20 Gwei is much easier to understand and compare than 20,000,000,000 Wei or 0.00000002 ETH. Gwei strikes the right balance for the range of values typically seen in gas pricing.

How do I convert Wei to ETH?

To convert Wei to ETH, divide the Wei value by 10^18 (1,000,000,000,000,000,000). For example, 1,500,000,000,000,000,000 Wei = 1.5 ETH. In code, use libraries like ethers.js (formatEther) or viem (formatEther) to handle the large numbers accurately without floating-point errors.

Why do smart contracts use Wei instead of ETH?

Smart contracts and the EVM use Wei (unsigned 256-bit integers) because the EVM does not support floating-point arithmetic. Using the smallest denomination avoids rounding errors and ensures exact calculations. All msg.value amounts, balances, and transfer values in Solidity are denominated in Wei.

What is the maximum value in Wei?

Wei values are stored as uint256, which can hold up to 2^256 - 1 (approximately 1.16 x 10^77). The total ETH supply is around 120 million ETH (1.2 x 10^26 Wei), which is well within the uint256 range. This ensures there can never be an overflow in ETH-denominated calculations.