Struct Packing Visualizer
Build a Solidity struct and visualize how its members pack into 32-byte EVM storage slots with byte-level precision.
Quick Templates
Build Struct
Members (4)
1addressowner20B
2uint256totalSupply32B
3uint8decimals1B
4boolpaused1B
3
Slots
4
Members
54B
Used
42B
Wasted
Efficiency
56.3%
Storage Slots
Slot 020/32 bytes used(12B wasted)
owner
12B
address owner @ offset 0
Slot 132/32 bytes used
totalSupply
uint256 totalSupply @ offset 0
Slot 22/32 bytes used(30B wasted)
30B
uint8 decimals @ offset 0bool paused @ offset 1
Packing Efficiency
56.3%efficient
Total Slots3
Bytes Used54B
Bytes Wasted42B
Est. Gas Cost60,000 gas
Slot Map
| Member | Type | Slot | Offset | Size |
|---|---|---|---|---|
| owner | address | 0 | 0 | 20B |
| totalSupply | uint256 | 1 | 0 | 32B |
| decimals | uint8 | 2 | 0 | 1B |
| paused | bool | 2 | 1 | 1B |
Solidity packs struct members right-to-left within a 32-byte slot. Grouping small types together can save thousands of gas per transaction.