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

home / ethereum / abi-encode-packed-hashlocal

abi.encodePacked and Hash Calculator

Pack values the way Solidity's abi.encodePacked does and get the Keccak-256 of the result.

abi-encode-packed-hashready · runs in this browser

Runs locally in your browser. Nothing you type is sent anywhere.

ethereum tools · free · runs in your browser · no sign-up · no wallet

01 // about this tool

abi.encodePacked joins values with no padding, which makes it compact but ambiguous, so be careful with several dynamic values. This tool shows the packed bytes and keccak256(abi.encodePacked(...)), often used for signatures and Merkle leaves.

02 // how to use it

  1. List the types in order, separated by commas.
  2. Put one value per line.
  3. Press Run.

03 // faq

Why is encodePacked risky?

Without padding, two different inputs can pack to the same bytes. Prefer abi.encode when mixing dynamic values.

Does it handle arrays?

Not in this version. Use basic types only.

04 // related tools

all 43 ethereum tools →