EVMTools

Bytes32 / String Converter

Convert between bytes32 hex, UTF-8 strings, numbers, and addresses. Visualize padding for Solidity bytes32 values.

About Bytes32 Encoding

  • Strings are right-padded with zeros (UTF-8 bytes followed by 0x00)
  • Numbers are left-padded with zeros (big-endian representation)
  • Addresses are left-padded with 12 zero bytes (20 bytes to 32 bytes)
  • Solidity uses bytes32 for storage slots, mapping keys, and fixed-size data
  • Strings longer than 32 bytes cannot be stored in a single bytes32 slot