home / data / bytes32-padding-toollocal
32-Byte Word Pad and Unpad Tool
Left-pad or right-pad a value to a 32-byte word, or extract the address from a padded word.
bytes32-padding-toolready · runs in this browser
Runs locally in your browser. Nothing you type is sent anywhere.
data tools · free · runs in your browser · no sign-up · no wallet
01 // about this tool
The EVM works in 32-byte words. Numbers and addresses are padded on the left with zeros; fixed-size bytes values are padded on the right. This tool pads either way, or pulls an address out of a padded word, such as a log topic.
02 // how to use it
- Paste the hex value.
- Choose the padding mode.
- Press Run.
03 // faq
Why are log topics padded addresses?
Indexed addresses are stored as 32-byte words, so the address sits in the last 20 bytes.
Left or right padding?
Left for numbers and addresses, right for bytesN and string data.