Logo

Solidity Function Selector

Calculate the 4-byte function selector for any Solidity function signature using keccak256.

Function Selector Calculator

Compute the 4-byte function selector from a Solidity function signature. The selector is the first 4 bytes of the Keccak-256 hash of the canonical signature.

0xa9059cbb
0xa9059cbb2ab09eb219583f4a59a5d0623ade346d962bcd4e46b11da047c9049b

Common Examples

The selector is used in the first 4 bytes of transaction calldata to identify which function to call.

Privacy & Cookie Preferences

We use cookies to enhance your experience, analyze site performance, and support our marketing efforts. Your privacy matters, and you can withdraw consent at any time.