Token Unit Converter
Convert between all Ethereum units (Wei → ETH), Solana (Lamports → SOL), and Bitcoin (Satoshi → BTC). Real-time, BigInt precision — no floating-point errors.
Ethereum Units — type in any field
Smallest ETH unit
Standard for gas prices
1 ETH = 10¹⁸ Wei
Unit Reference — Ethereum
| Unit | Symbol | In base units |
|---|---|---|
| Wei | Wei | 100 |
| Kwei / Babbage | Kwei | 103 |
| Mwei / Lovelace | Mwei | 106 |
| Gwei / Shannon | Gwei | 109 |
| Szabo | Szabo | 1012 |
| Finney | Finney | 1015 |
| Ether | ETH | 1018 |
Uses BigInt arithmetic — no floating-point rounding errors up to 36 decimal places.
Ethereum Denomination Reference
Ethereum uses a denomination ladder of 7 units spanning 18 orders of magnitude. Smart contracts operate in Wei internally, while developers and users interact primarily in ETH and Gwei. The unit names pay tribute to pioneers in computer science, cryptography, and information theory.
| Unit | Symbol | Wei value | Common use |
|---|---|---|---|
| Wei | Wei | 1 | Solidity arithmetic, contract internals |
| Kwei / Babbage | Kwei | 1,000 | Rarely used |
| Mwei / Lovelace | Mwei | 1,000,000 | Rarely used |
| Gwei / Shannon | Gwei | 1,000,000,000 | Gas prices, base fee, tips |
| Szabo | Szabo | 1,000,000,000,000 | Historical reference |
| Finney | Finney | 1,000,000,000,000,000 | Historical reference |
| Ether | ETH | 1,000,000,000,000,000,000 | Wallet balances, prices |
Multi-Chain Unit Quick Reference
Each blockchain ecosystem has its own base unit and denomination conventions. This reference covers the units supported by this converter.
Ethereum / Polygon (EVM)
ETH / MATICWei is the atomic unit. Gwei (10⁹) is standard for gas. ETH is display unit.
Solana
SOL1 SOL = 1,000,000,000 Lamports. Network fees and rent are in Lamports.
Bitcoin
BTC1 BTC = 100,000,000 Satoshi. mBTC (10⁵) and μBTC (10²) are useful intermediates.
Polygon (MATIC)
MATICIdentical denomination structure to Ethereum. Gwei used for gas. MATIC = display unit.
Solidity and Web3 Unit Conversion Code Examples
Unit conversions appear constantly in smart contract development and Web3 frontend code. These examples show idiomatic patterns in Solidity and ethers.js.
Solidity — convert ETH to Wei
// 1 ETH in Wei uint256 amount = 1 ether; // = 1e18 // Using literal uint256 tip = 2 gwei; // = 2e9 Wei // Multiply manually uint256 fee = 21000 * 20 gwei;
ethers.js v6 — parseEther / formatEther
import { parseEther, formatEther,
parseUnits, formatUnits } from "ethers";
// String → BigInt (Wei)
const wei = parseEther("1.5"); // 1.5e18n
// BigInt (Wei) → string
const eth = formatEther(wei); // "1.5"
// Gwei
const gwei = parseUnits("20", 9);Frequently Asked Questions
Why does Ethereum have so many denomination units?
Ethereum's smallest unit (Wei) is 10⁻¹⁸ of one ETH. Without intermediate denominations, expressing common amounts like gas prices would require writing numbers like 0.000000020 ETH, which is error-prone. The denomination ladder — Wei, Kwei, Mwei, Gwei, Szabo, Finney, ETH — provides convenient scales for different contexts. Gwei (10⁹ Wei) is most commonly used for gas prices because typical base fees are in the range of 5–50 Gwei. Finney and Szabo were historically useful before ETH gained significant value. The unit names honour computer science and cryptography pioneers.
What is a Gwei and why is it used for gas?
Gwei (gigawei) equals 10⁹ Wei, or one billionth of one ETH. It is the standard unit for expressing Ethereum gas prices because it produces human-readable numbers — a base fee of 20 Gwei is easier to reason about than 0.00000002 ETH or 20,000,000,000 Wei. On the Ethereum network, the EIP-1559 base fee is typically 5–100 Gwei depending on demand. Priority fees (tips) are usually 0.5–5 Gwei. Smart contract developers work with Wei internally because Solidity operates on integer arithmetic.
Why does Solana use Lamports instead of fractions of SOL?
Solana uses Lamports (named after Leslie Lamport, a computer scientist who pioneered distributed systems) as its smallest indivisible unit. 1 SOL equals 10⁹ Lamports (one billion). Solana transaction fees and rent (storage costs) are denominated in Lamports because they involve very small amounts — often under 1,000 Lamports per transaction. This is similar to Ethereum's Wei: the network operates internally with integers, and the top-level token (SOL) is just a human-friendly representation of 10⁹ Lamports.
What is a Satoshi and how many are in one Bitcoin?
A Satoshi is the smallest unit of Bitcoin, named after its pseudonymous creator Satoshi Nakamoto. There are exactly 100,000,000 Satoshis (10⁸) in one Bitcoin. Bitcoin's blockchain records all balances and transaction amounts in Satoshis internally. Common sub-units include mBTC (millibitcoin, 10⁵ Satoshi) and μBTC (microbitcoin or bits, 10² Satoshi). At Bitcoin's current prices, 1 Satoshi is worth a fraction of a US cent, making it useful for micropayment channels (like the Lightning Network) and for expressing small transaction fees.
Why does this converter use BigInt instead of regular JavaScript numbers?
JavaScript's standard number type (IEEE 754 double-precision floating point) has only 53 bits of integer precision, meaning numbers above 2⁵³ lose accuracy. Ethereum's Wei values for even modest ETH amounts exceed this limit — for example, 1 ETH = 1,000,000,000,000,000,000 Wei, an 18-digit number. Standard floating-point math would introduce rounding errors that could cause incorrect conversion results. JavaScript BigInt provides arbitrary-precision integer arithmetic, eliminating all floating-point errors. This tool uses a 36-digit scaling factor to handle decimal inputs with full precision.