Skip to content
CRYPYBetaCRYPY home
All tools

Developer

ABI Encoder & Decoder

How do I encode or decode data with this ABI?

Paste a contract ABI to check it, list its functions, events and errors, encode a call, or decode call data and event logs.

A JSON ABI, a build artifact with an "abi" field, or one Solidity signature per line.

Runs in your browser: what you type isn't sent anywhere.

How to use it

  1. Paste the ABI (from an explorer, a build artifact or Solidity lines).
  2. Pick encode, decode call data or decode an event log.
  3. Fill in the values or paste the data, then copy the result.

What you'll get

  • Validates JSON ABIs, build artifacts and human-readable ABIs
  • Encodes function calls with exact numbers
  • Decodes call data and event logs with your ABI

Questions and answers

Where do I get an ABI?

Verified contracts show their ABI on block explorers such as Etherscan and BscScan (Contract tab). Projects also publish it, and Hardhat or Foundry build artifacts contain it under "abi".

Does encoding send a transaction?

No. It only builds the bytes. Nothing is signed or sent, and the tool has no access to your wallet.

How do I enter arrays and structs?

Write them as JSON: ["0x…", "0x…"] for an array, and [value, value] or {"name": value} for a struct (tuple). Write big numbers as strings to keep them exact.

Why won't my log decode?

Topic 0 must be the event's hash, and the indexed values go in the other topics. Anonymous events have no topic 0 and can't be matched by it.

Is my input sent anywhere?

No. Everything runs in your browser.