| Unit | Wei | ETH | Use Case |
|---|---|---|---|
| Wei | 1 | 10⁻¹⁸ | Smallest unit, gas calculations |
| Kwei (Babbage) | 10³ | 10⁻¹⁵ | Rarely used |
| Mwei (Lovelace) | 10⁶ | 10⁻¹² | Rarely used |
| Gwei (Shannon) | 10⁹ | 10⁻⁹ | Gas prices (standard) |
| Microether (Szabo) | 10¹² | 10⁻⁶ | Micro transactions |
| Milliether (Finney) | 10¹⁵ | 10⁻³ | Milli ETH |
| Ether | 10¹⁸ | 1 | Base unit |
| Value | Binary | Hex | Bits | Usage |
|---|---|---|---|---|
| 256 | 100000000 | 0x100 | 9 bits | AES-256, SHA-256 |
| 512 | 1000000000 | 0x200 | 10 bits | SHA-512 |
| 1024 | 10000000000 | 0x400 | 11 bits | 1 KB, RSA-1024 |
| 2048 | 100000000000 | 0x800 | 12 bits | BIP39 wordlist |
| 2⁵⁵ (36,028,797,018,963,968) | 1 + 55 zeros | 0x8000000000000000 | 56 bits | secp256k1 order / 2 |
| 2²⁵⁶ | 1 + 256 zeros | 0x100…00 | 257 bits | SHA-256 max, Bitcoin private keys |
| 4,294,967,295 | 32× 1s | 0xFFFFFFFF | 32 bits | Max uint32 |
| 21,000,000 | — | 0x1406F40 | — | BTC Max Supply |
| 10¹⁸ (1e18) | — | 0x0DE0B6B3A7640000 | — | 1 ETH in Wei |
| 3.14159 (π) | — | 0x3.243F6A8885A3 | — | Pi in hex (fractional) |
| Decimal | Binary | Octal | Hex | Meaning |
|---|---|---|---|---|
| 0 | 0 | 0 | 0x0 | Zero |
| 1 | 1 | 1 | 0x1 | One |
| 2 | 10 | 2 | 0x2 | Two |
| 8 | 1000 | 10 | 0x8 | Byte |
| 10 | 1010 | 12 | 0xA | Decimal base |
| 15 | 1111 | 17 | 0xF | Max nibble |
| 16 | 10000 | 20 | 0x10 | Hex base |
| 31 | 11111 | 37 | 0x1F | 2⁵−1 |
| 32 | 100000 | 40 | 0x20 | Base32 |
| 64 | 1000000 | 100 | 0x40 | Base64 |
| 128 | 10000000 | 200 | 0x80 | 2⁷ |
| 255 | 11111111 | 377 | 0xFF | Max byte |
| 256 | 100000000 | 400 | 0x100 | 2⁸, AES-256 |
| 1024 | 10000000000 | 2000 | 0x400 | 1 KB |
| 65536 | 1 + 16 zeros | 200000 | 0x10000 | 2¹⁶ |
| 4294967295 | 32× 1s | 37777777777 | 0xFFFFFFFF | Max uint32 |