Data Types Explorer
Select a Solidity type, enter a value, and see its binary representation, storage layout, and ABI encoding.
256-bit unsigned integer. The default and most gas-efficient integer type in Solidity. Fills an entire storage slot.
1000000000000000000
0x0000000000000000000000000000000000000000000000000de0b6b3a7640000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110111100000101101101011001110100111011001000000000000000000
0x0000000000000000000000000000000000000000000000000de0b6b3a7640000
// uint256 declaration uint256 public value = 1000000000000000000; // Hex: 0x0000000000000000000000000000000000000000000000000de0b6b3a7640000 // Range: 0 to 115792089237316195423570985008687907853269984665640564039457584007913129639935 // Safe math (Solidity >=0.8.0) uint256 result = value + 1; // reverts on overflow
uint256 is the most gas-efficient integer type. Using smaller types like uint8 can actually cost more gas due to masking operations.