ETH Unit Converter

Share:

Convert between the seven Ethereum units — wei to ether — exactly, with BigInt. Gas-fee calculator (gas × base fee + tip) and an optional USD value.

RT-CRY-004 · Crypto & Web3
Your browser is too old for this tool’s interactive features. Please update to Safari 13.1, Chrome or Edge 80, Firefox 74 or newer.

ETH Unit Converter

wei
10⁰
kwei (babbage)
10³
mwei (lovelace)
10⁶
gwei (shannon)
10⁹
szabo (micro)
10¹²
finney (milli)
10¹⁵
ether
10¹⁸
ETH price (USD) — optional
Value of entered amount
—

Gas fee calculator

The defaults are the worked example from ethereum.org's "Gas and fees" page (10 gwei base fee, 2 gwei tip), not today's prices; read the current base fee from a gas tracker or your wallet. Under the current rules only the plain transfer has a fixed gas figure; a token transfer or contract call uses whatever its code consumes, so take that number from your wallet's estimate. The tip here is the tip actually paid: EIP-1559 caps it at your maximum fee minus the base fee. Since the Fusaka upgrade (4 Dec 2025, SGT), EIP-7825 limits any one transaction to 16,777,216 gas (224), so the calculator refuses more.

—
📅 Research current as of 05 Nov 2026 · Sources: Ethereum Yellow Paper (Shanghai version, 2025-02-04): 1 ether = 10^18 wei; named units wei, gwei, szabo, finney, ether; G_transaction = 21,000 gas. ethers.js v6 units (wei, kwei, mwei, gwei, szabo, finney, ether); web3.js unit map for the babbage, lovelace and shannon aliases. ethereum.org, Gas and fees: fee = gas used × (base fee + priority fee), base fee burned. EIP-7825: at most 16,777,216 gas per transaction since Fusaka (4 Dec 2025).
Standards, published formulas, and reference data are revised over time — check against a current authoritative source before relying on these figures.
Advertisement
After results · AD-W1 Responsive · Post-tool — peak engagement

How to use the ETH unit converter

Type into any row

Enter a value into any of the seven unit rows (wei, kwei, mwei, gwei, szabo, finney, ether) and the others update instantly. A point is the decimal separator and a comma only groups thousands, so 1,500 is fifteen hundred and 1.5 is one and a half; the line under the rows says how your input was read. The maths uses BigInt, exact to the wei, and an amount finer than one wei is refused rather than rounded away.

See USD value (optional)

Type an ETH price in US dollars into the dark card on the right. The tool shows what your entered amount is worth at that price, rounded once to the cent. Nothing is fetched: take the price from a source you trust and type it in.

Calculate a gas fee

The gas fee calculator works the way ethereum.org describes it: gas used × (base fee + priority fee). It shows the total in ETH (and USD, if you entered a price), split into the base fee, which is burned, and the tip, which goes to the validator. Under the current rules a plain ETH transfer uses 21,000 gas; for anything else, take the gas figure from your wallet's estimate, and the base fee from a gas tracker.

Copy or compare

The values are displayed in real time. Select and copy any unit's value to paste into a wallet, smart contract, or block explorer. The conversion is exact to the wei.

Advertisement
After how-to · AD-W2 Responsive

Ethereum units — why ether splits into 18 decimal places

Bitcoin counts in eight decimal places — Bitcoin Core defines one coin as 100,000,000 of its smallest unit. Ethereum counts in eighteen. The base unit is the wei, and the Yellow Paper, Ethereum's original formal specification (its current text covers forks up to Shanghai), says plainly: "One Ether is defined as being 1018 Wei", and any value in the specification is counted in wei. To make those large numbers manageable, a ladder of named units sits in between. The Yellow Paper's Shanghai text names five — wei, gwei, szabo, finney and ether. Gwei joined its table only in July 2024; every earlier version listed four. The extra names kwei (babbage) and mwei (lovelace), and shannon for gwei, come from the older Homestead documentation and from libraries such as web3.js; the Yellow Paper does not use them.

The seven units — and what each is actually used for

wei (10⁰) is the base unit: a transaction's value field and an account's balance are both denominated in wei. kwei (10³) and mwei (10⁶) are rarely seen; ethers.js still lists them among its seven units. gwei (10⁹) is the workhorse; ethereum.org's "Technical intro to ether" calls it the unit "often used to describe gas costs". szabo (10¹²) and finney (10¹⁵) appear in the Yellow Paper's table but seldom in a wallet. ether (10¹⁸) is the everyday display unit. Where the names come from is less documented than it looks: ethereum.org's "Gas and fees" page says wei is named after Wei Dai, creator of b-money, and the older Homestead documentation says only that some units "bear the family name of seminal figures" in computer science and cryptoeconomics, without saying whose.

1 ether = 1,000,000,000,000,000,000 wei. JavaScript's regular Number type loses precision above 2⁵³ ≈ 9 quadrillion. Always use BigInt or a library like ethers.js for ETH math.

Why precision matters — the floating-point trap

JavaScript's standard Number type is IEEE 754 double-precision floating point, which can represent integers exactly only up to about 9 quadrillion (2⁵³). One ether is one quintillion wei, about 111 times Number's exact range. Multiply 1.1 by 10¹⁸ as a Number and the value held is 1,100,000,000,000,000,128, which is 128 wei too many, although JavaScript prints it as 1100000000000000100. Either way it is wrong if you are writing or auditing contract code where one wei matters. The ethers.js v4 documentation notes that the largest whole number of wei a Number can hold exactly is "only around 0.009 ether (in wei)". Staying below that does not make a float conversion safe, though: 0.009 ether itself, converted as 0.009 × 10¹⁸, comes out 8,999,999,999,999,999 wei, one short. This calculator uses BigInt (standardised in ECMAScript 2020) for every conversion and reads what you type digit by digit, so 1.1 ether is exactly 1,100,000,000,000,000,000 wei.

Which unit you will actually meet

In practice three of the seven units do all the work. Wallets and block explorers display balances in ether; gas prices, in ethereum.org's words, "are usually quoted in gwei"; and every contract, RPC response and signed transaction carries values in wei, because the protocol has no fractions. EIP-1559 itself writes every fee as a bare integer and never uses the word gwei. Whether you are reading a block-explorer receipt in Singapore, a wallet in Seoul or a Solidity unit test, the translation between those three is the one you will do again and again. On another EVM chain, check its documentation for the native token's decimals before relying on the same ladder.

What this tool doesn't do

It doesn't fetch the live ETH price: an external price service would see every request, so you type the price yourself and the conversion stays on your device. It doesn't connect to a wallet, sign transactions or query the blockchain; for that you need a library such as ethers.js or viem. It doesn't convert between ETH and other tokens, which needs live exchange-rate data. It is a pure unit converter, the arithmetic underneath every wallet, block explorer and dApp.

Ether's named units, and why a plain transfer costs 21,000 gas

01

The Yellow Paper's Shanghai text names five units — wei, gwei, szabo, finney and ether — and says every value "should be assumed to be counted in Wei". Gwei joined that table in July 2024; earlier versions listed four.

02

The JavaScript library ethers.js recognises exactly seven unit names: wei, kwei, mwei, gwei, szabo, finney and ether — 1,000 times apart.

03

web3.js accepts more aliases for the same amounts: babbage and femtoether for kwei, lovelace and picoether for mwei, shannon and nanoether for gwei.

04

ethereum.org's "Gas and fees" page says wei is named after Wei Dai, creator of b-money. The older Homestead documentation says some unit names "bear the family name of seminal figures", without saying whose.

05

Bitcoin Core defines one bitcoin as 100,000,000 of its smallest unit — eight decimal places against ether's eighteen.

06

Under the current rules a plain transfer costs 21,000 gas, the Yellow Paper's Gtransaction, "paid for every transaction". Since the Fusaka upgrade (4 Dec 2025, SGT) no single transaction may use more than 16,777,216 gas (EIP-7825).

07

EIP-1559, activated in the London upgrade on 5 August 2021, split the gas price into a base fee, which the protocol burns, and a priority fee paid to the block producer — so the base-fee part of every transaction's fee, paid in ether, is burned.

08

ethereum.org's own worked example: 21,000 gas at a 10 gwei base fee and a 2 gwei tip costs 0.000252 ETH — 0.00021 burned, 0.000042 to the validator. It is this calculator's default.

09

A JavaScript Number is exact only up to 2⁵³ − 1 (9,007,199,254,740,991). One ether is 10¹⁸ wei, so 1.1 ether computed as a Number holds 128 wei too many, though JavaScript prints it as 1100000000000000100.

10

JavaScript's BigInt — used by this tool — was standardised in ECMAScript 2020 and represents integers of any size exactly, which is what 18-decimal wei arithmetic needs.

FAQ

  • Exactly 1,000,000,000,000,000,000 (one quintillion = 10¹⁸) — the Yellow Paper's definition. 1 ether = 10⁹ gwei = 10⁶ szabo = 10¹⁸ wei. Wei is the smallest unit; nothing smaller exists, which is why this converter refuses a fraction of a wei.

  • Because at the wei level gas prices are long numbers: 2 gwei is 2,000,000,000 wei, or 0.000000002 ether. ethereum.org says simply that "Gas prices are usually quoted in gwei". The protocol itself counts in wei: EIP-1559 writes every fee as a plain integer and never uses the word gwei.

  • The amounts you type are never sent anywhere: the conversion runs in your browser, with no wallet connection and no blockchain query, and the ETH price is one you type yourself. The page itself loads our usual analytics and ads, subject to your consent choices, so your browser's Network panel will show those requests.

  • An external price API would see every request the page made to it. Entering the price yourself keeps the conversion on your device.

  • Since EIP-1559, what you pay per unit of gas is the base fee plus the tip, which the EIP calls the effective gas price. You also set a maximum fee per gas, and ethereum.org notes that the difference between it and base fee + tip is refunded. The gas limit is the most gas the transaction may use; you pay only for gas actually used. Total cost = gas used × (base fee + tip).

  • 21,000 is the Yellow Paper's Gtransaction, the gas "paid for every transaction", and under the current rules (the fork in force since 4 Dec 2025, SGT) it is all a plain ETH transfer costs. Contract calls (token transfers, swaps, mints) add whatever their code consumes. It is a rule of the fork in force, and a later fork can change it.

  • The Aug 2021 upgrade that changed gas pricing from "bid what you want" to "base fee + priority tip". The base fee is set by the protocol for each block from demand and is burned — EIP-1559: "The base fee per gas is burned." The tip goes to the validator. The upgrade went live in London on 5 August 2021.

  • For the unit conversion, yes, wherever the chain's native token uses 18 decimals as ether does — check the chain's documentation. For fees, not directly: a layer-2 rollup prices its transactions its own way, so the single gas × (base fee + tip) model here describes Ethereum mainnet only.

  • JavaScript's regular Number is IEEE 754 double — precise only to 2⁵³ ≈ 9 quadrillion. One ether is 10¹⁸ wei = 1 quintillion, about 111 times that. Without BigInt, conversions lose precision at the wei level. BigInt (ES2020) has no upper limit and produces exact results.

  • No — this tool converts only between Ethereum's internal units. Cross-token conversion needs live exchange rates, which this tool does not fetch.

Method & sources

How it computes

Exact conversion between the seven ethers.js units (wei to ether; 1 ether = 10^18 wei) on a BigInt wei value read digit by digit; an amount finer than 1 wei is refused, and the page shows how it read the input. Gas fee = gas used × (base fee + priority fee), base fee burned (EIP-1559), at most 16,777,216 gas per transaction (EIP-7825). USD value in integer cents from a typed price. Nothing is fetched (EthUnitsKernel).

What this tool implements

  • Ethereum Yellow Paper (Shanghai version, 2025-02-04) §2.1: "One Ether is defined as being 10^18 Wei"; named units wei (10^0), gwei (10^9), szabo (10^12), finney (10^15), ether (10^18). Gwei entered that table in July 2024 (commit 8455623); earlier versions list four. kwei, mwei, babbage, lovelace and shannon come from the Homestead documentation and the libraries (ethers.js, web3.js), not the Yellow Paper, and the page says so.
  • Exact arithmetic: every amount is an integer number of wei in JavaScript BigInt, parsed from the typed digits without a float; a fraction of a wei is refused with a message rather than truncated.
  • Separators: a point is the decimal separator and a comma groups thousands. A lone three-digit group ("1.500", "1,500"), which a reader who writes 1.234,5 would mean the other way round, is converted as read but flagged, and the page states how it read every input. "0,5" and "1.234,5" are refused.
  • Gas fee per EIP-1559 and ethereum.org ("Gas and fees"): units of gas used × (base fee + priority fee), the base fee burned, the tip taken as the tip actually paid. A plain transfer is the Yellow Paper's G_transaction = 21,000 gas under the current rules. EIP-7825 (Final, live since Fusaka, 4 Dec 2025 SGT) caps a transaction at 16,777,216 gas; the calculator refuses more. Defaults are ethereum.org's worked example (10 + 2 gwei), not a live price.
  • USD value: the typed price read to 6 decimals, the product computed in BigInt and rounded half up to the cent once.
  • Corrected 2026-11-05: the meta description promised a "live" USD value and named the units micro/milli; an FAQ asserted that named price services log IPs; a how-to named an exchange as a price source; "no API calls" did not describe the page's own analytics and ads; "1.500" was read as 1.5 with no notice; no gas cap; silent "—" on errors; namesakes over-attributed to the Homestead docs. Corrected 2026-10-19: sub-wei amounts truncated, float USD, undated gas defaults.

Sources

What can make this go out of date

  • None at runtime: no price, gas or chain data is fetched; the ETH/USD price and the base fee are typed by the reader.
Advertisement
Pre-footer · AD-W3 728 × 90