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
- Paste the ABI (from an explorer, a build artifact or Solidity lines).
- Pick encode, decode call data or decode an event log.
- 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.
Related tools
- Transaction Data DecoderTurn raw transaction data into a readable function and values, with warnings for risky approvals.
- Keccak-256 Hash & Function SelectorGet the Keccak-256 and SHA-256 hash of any text or hex, and the 4-byte selector or event topic of a Solidity signature.
- Transaction CheckerPaste a transaction hash and see what happened in plain language: result, assets moved, cost, and why it failed.