devpocket.dev

ABI Encoder & Decoder

Encode and decode Solidity ABI parameters, calldata, selectors and event topics locally.

Runs locally
Loading tool…

How to use

Choose a mode, then enter a Solidity signature such as transfer(address,uint256).

  1. Selectors calculates function/error selectors or an event's Topic0, one signature per line.
  2. Encode calldata accepts a JSON array. Use decimal strings for large integers and 0x strings for bytes.
  3. Decode calldata verifies the first four bytes before decoding.
  4. Decode raw data accepts a comma-separated ABI type list without a selector.

Mixed-case addresses must have a valid EIP-55 checksum.

FAQ

Does this ABI decoder upload calldata?

No. Signature parsing, Keccak-256 hashing, encoding and decoding all run locally in your browser.

How should I enter uint256 values in JSON?

Use a decimal or 0x-prefixed hexadecimal string for values beyond JavaScript safe integers. Safe integers may also be JSON numbers.

Are nested tuples and arrays supported?

Yes. Static and dynamic arrays, nested tuples, strings and bytes use the standard ABI head-and-tail offset rules.

Related tools