The smallest atomic unit.
1 Ether = 1018 Wei. Gas costs returned by eth_gasPrice are in Wei as hex. Converting the raw hex gives you the exact Wei amount without rounding.
Every Ethereum RPC response — gas prices, balances, block numbers — comes back as a hex string. Here's what the three denominations mean when you decode them.
← Try the live converter1 Ether = 1018 Wei. Gas costs returned by eth_gasPrice are in Wei as hex. Converting the raw hex gives you the exact Wei amount without rounding.
EIP-1559 base fees come back as hex integers in Wei. Divide by 109 to get the Gwei figure you see on gas trackers. Our tool does this instantly alongside the raw decimal.
eth_getBalance returns hex Wei. Divide by 1018 to get the ETH figure a wallet shows the user. Our Ether output handles this conversion precisely using BigInt.
JSON has no native 256-bit integer type. Ethereum represents all integers as "0x..." hex strings so they can be transmitted precisely over HTTP without floating-point loss.
One hex digit = 4 bits = one nibble. A 32-byte hash (256 bits) becomes 64 hex characters. Binary would require 256 characters; decimal would be an unwieldy 78-digit number.
The Ethereum Virtual Machine (EVM) operates on 32-byte (256-bit) words. Hex maps directly to these words — one 64-char hex string, one EVM word.
| RPC Method | Hex Field | Meaning | Unit |
|---|---|---|---|
| eth_blockNumber | result | Current block height | block number |
| eth_getBalance | result | Account ETH balance | Wei |
| eth_gasPrice | result | Current gas price | Wei |
| eth_maxFeePerGas | result | EIP-1559 max fee | Wei |
| eth_getTransactionByHash | value | ETH transferred | Wei |
| eth_getTransactionByHash | gas | Gas limit | gas units |
| eth_getTransactionByHash | nonce | Sender tx count | count |
| eth_getTransactionReceipt | gasUsed | Gas actually used | gas units |