Skip to main content

EVM Unit Converter

Input

Converted Values

Understanding Ethereum Units

Ethereum's native currency (Ether) has multiple denominations. Understanding the relationship between Wei, Gwei, and Ether is essential for smart contract development, gas calculations, and DeFi applications.

Wei — The Smallest Unit

Named after Wei Dai, a pioneer of cryptography and cryptocurrency. 1 Wei = 1 (10^0). It's the base unit — every value in the EVM is ultimately denominated in Wei. Smart contracts always operate in Wei, never Ether.

Gwei — Gas Pricing Unit

Short for "gigawei" (10^9 Wei). Gas prices on Ethereum are measured in Gwei. During network congestion, Gwei can spike from 5-10 to 100-500+. Monitoring Gwei helps you time transactions for lower fees. Common ranges:

  • < 30 Gwei: Low network activity — good time for transactions
  • 30-80 Gwei: Moderate activity — standard transactions
  • 80-150 Gwei: High activity — consider waiting
  • > 150 Gwei: Very high — expensive for complex operations

Ether — The Human-Readable Unit

1 ETH = 10^18 Wei. Used for display purposes and user-facing applications. When building smart contracts, always convert user-input Ether to Wei before processing.

Common Conversion Mistakes

  • Forgetting decimals: 1 ETH ≠ 1000000000000000000 — use parseEther("1.0")
  • Mixing Gwei and Wei: Gas price is in Gwei, but msg.value is always Wei
  • Using Number instead of BigInt: JavaScript Number can't safely represent Wei values above ~53 bits. Always use BigInt for EVM calculations.

Frequently Asked Questions

What is the difference between Wei and Gwei?

Wei is the smallest unit of Ether (10^-18 ETH). Gwei (gigawei) is 10^9 Wei, or 10^-9 ETH. Gas prices are typically quoted in Gwei because individual Wei values are too small to be practical for discussion.

Why does my smart contract use Wei instead of Ether?

The EVM operates exclusively in Wei to avoid floating-point precision issues. Solidity doesn't support floating-point numbers, so all values are integers in Wei. Convert to Ether only for display purposes using formatUnits(value, 18).

How much is 1 Gwei in Ether?

1 Gwei = 0.000000001 ETH (10^-9). So if gas costs 20 Gwei and your transaction uses 21,000 gas units, the total gas fee = 21000 × 20 Gwei = 420,000 Gwei = 0.00042 ETH.

Is this converter accurate for mainnet and L2s?

Yes. All EVM-compatible chains (Ethereum mainnet, Polygon, Arbitrum, Optimism, Base, etc.) use the same Wei/Gwei/Ether denomination system. The conversion math is identical across all EVM networks.

About the Evm Converter

Convert between wei, gwei, and ether online with exact BigInt arithmetic - no floating-point errors. A free, private unit converter for Ethereum developers checking gas prices and transaction values on any EVM chain.

EVM chains express value in wei, the smallest unit (10^-18 ether). Gas prices are quoted in gwei, wallets display ether, and smart contracts operate in wei — so developers constantly convert between the three while debugging transactions and reading contract state.

Convert instantly between wei, gwei, and ether (and other denominations like finney and szabo). Precise BigInt arithmetic handles 18-decimal values without floating-point errors. Works for every EVM chain: Ethereum, Polygon, Arbitrum, Base, Optimism, and L2s.

Use cases and examples

Decode a gas cost: a 25 gwei gas price on a 21,000-gas transfer equals exactly how much ether.

Verify wallet balance displays by converting raw wei values from an RPC response.

Cross-check smart contract math that must not lose precision to floating point.

How to use

  1. Enter an amount in any unit — wei, gwei, or ether.
  2. All other denominations update instantly.
  3. Verify gas costs by converting gwei prices to ether.
  4. Copy the exact value for your transaction or contract call.

Frequently Asked Questions

Why do I get different results than a JavaScript calculator?

JavaScript numbers lose precision beyond 15–16 digits, and wei values have up to 18 decimals. This tool uses BigInt arithmetic, so every digit is exact.

Does this work for Polygon, Arbitrum, and other EVM chains?

Yes. Every EVM-compatible chain uses the same wei/gwei/ether denomination system, so the conversions are identical across Ethereum, Polygon, Arbitrum, Base, Optimism, and other L2s.

Is this tool free to use?

Yes! This tool is 100% free. No signup, no credit card, no limits. It's part of Formatho's privacy-first developer toolkit.

Is my data safe? Does this tool send data to a server?

Absolutely. This tool runs entirely in your browser. Your data never leaves your device. Zero server-side processing, zero tracking.