Skip to content

Wei / Gwei / ETH Converter

Three Ethereum denominations in one converter, with the math done in BigInt so the precision survives.

Ethereum’s native unit (ETH) is divisible into 10¹⁸ Wei — essentially Planck-scale precision for an internet currency. Gwei sits in the middle at 10⁹ Wei, and is the unit gas prices are quoted in. The converter below uses JavaScript BigInt throughout, so even values like 123,456,789,012,345,678 Wei round-trip without losing a single digit. Useful when reading a raw transaction object, debugging a smart-contract revert, or deciding whether a 30-Gwei gas price is reasonable today.

0.00000002

Computed with BigInt — exact integer math, no IEEE 754 rounding. Useful when reading transactions or sanity-checking gas estimates.

How to use

  1. Pick the from-unit

    Wei (raw), Gwei (gas-price unit), or ETH (the human-readable amount).

  2. Enter a value

    Any positive decimal. Wei is integer-only because there's no smaller unit — fractional Wei inputs are truncated.

  3. Read the result

    The arrow swaps the direction in one click. Conversions are exact for any value JavaScript BigInt can hold (effectively unlimited).

Reference

UnitIn ETHUse
1 Wei10⁻¹⁸ ETHAtomic unit; storage
1 Kwei (Babbage)10⁻¹⁵ ETHRarely used
1 Gwei (Shannon)10⁻⁹ ETHGas prices
1 Szabo10⁻⁶ ETHRarely used
1 Finney10⁻³ ETHRarely used
1 Ether1 ETHUser-facing balance

Frequently asked questions

Why does Ethereum use Wei?
Smart contracts store balances as integer Wei amounts — there's no floating point on-chain. Working in the smallest unit means every operation is exact arithmetic. ETH is the human-readable label on top.
Why is BigInt needed for this conversion?
10¹⁸ exceeds JavaScript's Number.MAX_SAFE_INTEGER (~9.007 × 10¹⁵), so storing Wei in a plain Number loses precision. Reading the raw value field of an ERC-20 transfer requires BigInt or a string.
What's the difference between Gwei and Shannon?
None — they're the same unit. "Shannon" honours Claude Shannon; "Gwei" is the giga-Wei contraction. Modern tooling uses Gwei almost exclusively.
Does this support other chains?
Most EVM-compatible chains (Polygon, BNB Chain, Arbitrum, etc.) use the same Wei/Gwei/native-token denomination — replace the "ETH" label with MATIC, BNB, ARB and the math is identical.
Does the calculator store my input?
No. Everything stays in your browser.

About

BigInt vs Number for crypto

Number gives you ~15-17 significant digits. That's enough for ETH values up to about 9 ETH (because 10¹⁸ Wei needs 19 digits). For anything larger — or for sub-Gwei precision — BigInt is mandatory. Most production libraries (ethers.js, viem) standardise on BigInt for exactly this reason.

Reading raw transaction data

Block explorers like Etherscan show transaction values in ETH because that's the human-readable form. Under the hood, the value field is a hex string representing the Wei count. Pasting that hex into a parser, converting to decimal, and pasting here gets you back to ETH cleanly.