Skip to main content

Data Types Explorer

Select a Solidity type, enter a value, and see its binary representation, storage layout, and ABI encoding.

uint25632B

256-bit unsigned integer. The default and most gas-efficient integer type in Solidity. Fills an entire storage slot.

1/slot Left-padded
Binary (256 bits)
192 leading bits hidden
0
0
0
0
1
1
0
1
1
1
1
0
0
0
0
0
1
0
1
1
0
1
1
0
1
0
1
1
0
0
1
1
1
0
1
0
0
1
1
1
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Decimal

1000000000000000000

Hexadecimal

0x0000000000000000000000000000000000000000000000000de0b6b3a7640000

Binary

0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110111100000101101101011001110100111011001000000000000000000

32-Byte Storage Slot
32B
08162431
Same-Type Packing
1per slot
Padding
Left-padded
Value in rightmost bytes
ABI Encoding (32 bytes)

0x0000000000000000000000000000000000000000000000000de0b6b3a7640000

Solidity Usage
// 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.

Previous: Solidity Playground
Back to Solidity playground