Ethereum contract calls use a 4-byte function selector—the first 4 bytes of the Keccak-256 hash of the function signature. The Function Selector Generator produces this selector from a Solidity function signature or ABI JSON so you can build calldata, decode calldata, or verify function signatures in ABI.
A function selector is the first 4 bytes of the Keccak-256 hash of a Solidity function signature. It uniquely identifies a function in Ethereum smart contracts and is used in contract calls. The tool accepts the function signature (e.g. transfer(address,uint256)) or ABI JSON and outputs the 4-byte selector. All processing is performed locally in your browser; no function signatures or ABI data are sent to any server. Use it to get the 4-byte selector for contract calls, to decode calldata, or to verify function signatures in ABI. Function selectors let smart contracts identify which function to execute when receiving a transaction. The same standard works for all EVM-compatible chains (e.g. Polygon, BNB Chain, Avalanche).
eth_call or transaction data. Use with Event Topic Generator, ABI Encoder & Decoder, and Keccak256 Hasher.A function selector is the first 4 bytes of the Keccak-256 hash of a Solidity function signature. It uniquely identifies a function in Ethereum smart contracts and is used in contract calls.
Enter your Solidity function signature (e.g., transfer(address,uint256)) or paste ABI JSON. The tool will instantly compute the 4-byte selector.
Function selectors allow smart contracts to identify which function to execute when receiving a transaction, ensuring correct contract behavior and interaction.
Yes. All processing is performed locally in your browser. No function signatures or ABI data are sent to any server.
Yes. Function selector generation follows the Ethereum standard and works for all EVM-compatible chains such as Polygon, BNB Chain, and Avalanche.
Use it to get the 4-byte selector for contract calls, to decode calldata, or to verify function signatures in ABI.
Function Selector Generator gives you the 4-byte selector in one place: enter signature or ABI, get selector. No server, no account. For events use Event Topic Generator, for calldata use ABI Encoder & Decoder, and for raw hash use Keccak256 Hasher.
Use the Function Selector Generator tool to generate 4-byte function selectors.