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

home / ethereum / abi-encoderlocal

ABI Encoder

ABI-encode values for uint, int, address, bool, bytesN, bytes and string. Add a function name to get full calldata.

abi-encoderready · 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 encoding turns values into the 32-byte words contracts expect. Give a signature such as transfer(address,uint256) and the tool also prepends the 4-byte selector, producing complete calldata. Arrays and tuples are not supported yet.

02 // how to use it

  1. Enter the types, either as a list (address,uint256) or a full signature (transfer(address,uint256)).
  2. Enter one value per line, in the same order.
  3. Press Run to get the encoded data, and the calldata if you gave a signature.

03 // faq

Which types are supported?

uint and int of any size, address, bool, bytes1 to bytes32, bytes and string. Arrays and tuples are not.

How do I enter a string?

Put the text on its own line, with no quotes.

04 // related tools

all 43 ethereum tools →