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
- List the types in order, separated by commas.
- Put one value per line.
- 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.