Developer
Contract Bytecode Comparer
Is this contract the same code as that one?
Compare two pieces of EVM bytecode: identical, the same code with different compiler metadata, or different code. See code hashes, compiler version and proxies.
Paste runtime code (what an explorer shows as Deployed Bytecode) on both sides, or creation code on both sides.
Matching code doesn't make a contract safe: the owner, settings and any proxy target matter too.
Compared in your browser; nothing is looked up or sent.
How to use it
- Copy the bytecode of each contract (an explorer's Contract tab, or eth_getCode).
- Paste one in each box.
- Read whether they are identical, the same code, or different, and where the first difference is.
What you'll get
- Separates the Solidity metadata from the program itself
- Code hashes, compiler version and IPFS hash of the source
- Spots minimal proxies, EIP-7702 delegations and creation code
Questions and answers
Why do two builds of the same contract differ?
The Solidity compiler appends metadata to the code: a hash of the source files and settings, and the compiler version. A changed comment or file path changes that hash but not the program. This tool compares the code with and without it.
What is the code hash?
The Keccak-256 hash of a contract's deployed (runtime) code, as returned by EXTCODEHASH. Two contracts with the same code hash run exactly the same code.
The code is the same length but a few bytes differ. Why?
Often these are immutable values written into the code at deployment, such as an owner, token or router address. They can change what the contract does, so check what they are.
Does the same code mean the contract is safe?
No. It only shows the code matches. A copy of a well-known contract can still have a different owner, settings or a proxy pointing elsewhere. Check the token or contract with CRYPY's security tools too.
Is the bytecode sent anywhere?
No. Everything is compared in your browser.
Related tools
- Token Security ScannerHoneypot, tax, mint and ownership risk signals for any token contract.
- 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.
- Raw Transaction & RLP DecoderPaste a raw signed transaction (0x02…, 0xf8…) to see every field, who signed it and the hash it will have. Any other RLP data is shown as a tree.