loading prices...
prices by coingecko
onchain.search tools/local · 0 uploads/links/about

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

  1. Paste the hex value.
  2. Choose the padding mode.
  3. 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.

04 // related tools

all 19 data tools →