A deployed EVM contract is a string of bytes. Each byte is an opcode, and a handful of opcodes (PUSH1 through PUSH32) carry their operand inline in the bytes that follow. Disassembling the bytecode means walking it one instruction at a time and printing the mnemonic and operand for each, annotated with the byte offset where it lives. That offset listing is what jump targets, debuggers and the dispatcher all refer to.
This tool does that inside your browser. You paste runtime or creation bytecode as hex, or load a file, and the page prints the opcode listing, decodes the compiler metadata trailer separately, and lists the function selectors it finds in the dispatcher. The bytecode never leaves your machine.
How to use
- Get the bytecode as hex:
eth_getCodefor an address on a node you use, thedeployedBytecodeorbytecodeof a Hardhat or Foundry artifact, orsolc --bin-runtime. - Paste it into the box above (a
0xprefix and whitespace are fine) and press Disassemble, or load a file with hex text or raw bytes. - Read the Summary and Compiler metadata first (is there a trailer, which solc version, which IPFS hash), then the function selectors, then the opcode listing with its byte offsets.
Real example output
We fetched the runtime code of Multicall3 on Ethereum mainnet with eth_getCode (the command is below), pasted it into this page and copied what it displayed. Layout condensed (label and value on one line, the listing cut); every value is verbatim.
Sample: the runtime bytecode of Multicall3 at 0xcA11bde05977b3631167028862bE2a173976CA11 on Ethereum mainnet (source on GitHub, MIT license, Copyright (c) 2023 Matt Solomon), fetched from a public RPC node on 2026-11-02 (github.com/mds1/multicall3)
Summary
Input Pasted hex
Input size 3808 B
Code size 3755 B
Instructions 2146
Metadata trailer Found
Selectors 16
Function selectors (16)
0x0f28c97d 0x174dea71 0x252dba42 0x27e86d6e 0x3408e470 0x399542e9 0x3e64a696 0x42cbb15c
0x4d2301cc 0x72425d9d 0x82ad56cb 0x86d516e8 0xa8b0574e 0xbce38bd7 0xc3077fa9 0xee82ac5e
Compiler metadata
ipfs 0x1220bb2b5c71a328032f97c676ae39a1ec2148d3e5d6f73d95e9b17910152d61f162
solc 0.8.12 (00080c)
Opcode listing (2146)
0000: PUSH1 0x80
0002: PUSH1 0x40
0004: MSTORE
0005: PUSH1 0x04
0007: CALLDATASIZE
0008: LT
0009: PUSH2 0x00f3
000c: JUMPI
000d: PUSH1 0x00
000f: CALLDATALOAD
0010: PUSH1 0xe0
0012: SHR
0013: DUP1
0014: PUSH4 0x4d2301cc
0019: GT
001a: PUSH2 0x008a
001d: JUMPI
…
0ea6: PUSH1 0x00
0ea8: DUP1
0ea9: REVERT
0eaa: INVALIDWhat it does
Input. Paste hexadecimal bytecode into the text area. A 0x prefix is optional and whitespace is ignored, so you can paste a copied block as is. You can also load a file containing hex text or the raw bytes. Limit: up to 256 KiB of bytecode (well above the 24 KiB on-chain deployed-code limit, with room for creation code).
Opcode listing. Every instruction is shown as offset: MNEMONIC operand, with the offset as a hexadecimal byte address. PUSH1..PUSH32 show the pushed value; PUSH0 and all other opcodes show just the mnemonic. A byte that is not a defined opcode is shown as 0xXX and marked invalid rather than guessed at. The listing covers opcodes through the Cancun upgrade, including PUSH0, TLOAD/TSTORE, MCOPY, BLOBHASH and BLOBBASEFEE.
Metadata trailer. The Solidity compiler appends a CBOR-encoded metadata block to the end of the runtime code, followed by two bytes giving its length. The tool reads that length, decodes the CBOR map in front of it, and shows it as a separate section rather than disassembling it as code. It decodes the solc version (three bytes, shown as major.minor.patch) and the ipfs, bzzr0 or bzzr1 hash when present. The bytes covered by the trailer are excluded from the opcode listing.
Function selectors. Solidity and Vyper dispatchers compare the first four bytes of the call data against each function’s selector with a PUSH4 … EQ sequence. The tool collects those PUSH4 operands and lists them as 4-byte selectors. To turn selectors into argument types, state mutability and a storage layout, use the dedicated EVM function selector extractor.
You can export the whole result as JSON.
How it works
The disassembler is a small, dependency-free pass written for this page and run in a Web Worker so the page stays responsive. It walks the bytes from offset zero: for each opcode it looks up the mnemonic, and for a PUSH it consumes the next N bytes as the operand and advances past them, which is what keeps the offsets correct (a PUSH operand is data, not the next instruction). The metadata decoder reads the last two bytes as a length, parses the CBOR map immediately before it, and only treats it as metadata if the map parses cleanly and consumes exactly those bytes; otherwise everything is disassembled as code.
How your bytecode stays private
Your bytecode is not uploaded. That follows from how the page is built:
- The disassembler runs in a separate frame served from
rea-reverse.com, and the disassembly runs in a Web Worker inside it, on your device. There is no WebAssembly and no external library to download; the whole analysis is a few kilobytes of JavaScript served fromrea-reverse.com. - The worker runs under a Content Security Policy with
connect-src 'none': it cannot make any network request at all. The browser blocks it. - This page shows one ad, below the article. The ad script runs on
tools.rea-reverse.com; the frame is a different origin, so the browser does not let the ad script, or any other script on this page, read the bytecode you paste or the results. - The frame’s Content Security Policy blocks every request its scripts could make (
connect-src 'none', no third-party resources at all). The frame cannot open windows or navigate this page by itself; only a link you click in the report can open a page. The only things it passes to this page are its height and the analytics events below. - The only analytics event is
disasm_run. It carries success or an error code, whether a metadata trailer was found, and coarse buckets for the instruction count, selector count, input size and duration. It never contains bytecode, selectors or any other content. The frame hands it to this page, which sends it. The full list of events is on the privacy page. - Prefer no ads and no analytics at all? Open the disassembler on its own page.
How to verify this yourself
- Open your browser’s developer tools on the Network tab and load this page. Requests to
rea-reverse.comare the frame: its HTML, styles, fonts and scripts, and the worker script/_astro/disasm-worker-*.js. Requests to Google domains are the ad on this page. - Clear the log, then paste bytecode and run the disassembler. Type
domain:rea-reverse.comin the filter box. At most the worker script/_astro/disasm-worker-*.jsappears again (a fresh worker is prepared for the next run); no request carries your data. Ad requests may continue, but they come from this page and carry nothing from the frame. - Click the
evm-disassembler/document fromrea-reverse.comand open Headers: itsContent-Security-Policyhasconnect-src 'none', andframe-ancestors https://tools.rea-reverse.com. In Chrome, Application > Frames also shows the frame’s origin and policy. The worker runs underdefault-src 'none'; script-src 'self'; connect-src 'none'. - Check the isolation: in the Console, with the context set to
top, rundocument.getElementById('tool-frame').contentDocument. It returnsnull.frames[0].documentthrows aSecurityError. That is what the ad script gets too. - Or load the page, go offline, and run it. It still works.
Limitations
- The listing is a linear sweep, not a control-flow analysis. It disassembles bytes in order. It does not follow jumps, mark basic blocks or tell data apart from code beyond the metadata trailer. A
PUSHoperand that happens to contain opcode-like bytes is correctly shown as the operand, but constant data embedded elsewhere is still decoded as instructions. - Selector detection is a heuristic. It matches the common
PUSH4 … EQdispatcher shape. Binary-search dispatchers, proxies and hand-written assembly may report fewer selectors, or none. Treat the list as a starting point and confirm with the selector extractor. - Names are not recovered. A selector is a hash prefix and cannot be reversed. This tool shows the 4-byte value, not a function name.
- EOF is not special-cased. Bytecode in the EVM Object Format (starting with
0xEF00) is disassembled byte by byte like legacy code; its section structure is not parsed.
Compliance
Use this tool on contracts you wrote, contracts you are authorized to review, or public contracts whose bytecode is published on chain. Recovering a disassembly does not grant any right to the code.
Command-line equivalent
Fetch the runtime code with a plain JSON-RPC call (any node you are allowed to use; output cut in the middle):
$ curl -s -X POST -H 'content-type: application/json' --data '{"jsonrpc":"2.0","id":1,"method":"eth_getCode","params":["0xcA11bde05977b3631167028862bE2a173976CA11","latest"]}' https://ethereum-rpc.publicnode.com
{"jsonrpc":"2.0","id":1,"result":"0x6080604052600436106100f35760003560e01c80634d2301cc1161…64736f6c634300080c0033"}With the result hex saved as multicall3.hex, the metadata trailer is its last 53 bytes: the two-byte length 0x0033 (51) and the 51-byte CBOR map in front of it, a2 (a map of two), ipfs with a 34-byte multihash and solc with 00080c, version 0.8.12. The 107 characters are those 106 hex digits plus the final newline:
$ tail -c 107 multicall3.hex
a2646970667358221220bb2b5c71a328032f97c676ae39a1ec2148d3e5d6f73d95e9b17910152d61f16264736f6c634300080c0033Foundry's cast disassembles bytecode too. It is shown without output: Foundry was not installed on the machine we captured this page with, so we did not run it.
$ cast disassemble "$(cat multicall3.hex)"FAQ
How do I turn EVM bytecode into opcodes?
Paste the hex here and press Disassemble. The page walks the bytes from offset zero, prints each opcode with its byte offset, and reads the operand of every PUSH1 to PUSH32 from the bytes that follow, so offsets stay aligned with jump targets.
How do I read the Solidity metadata hash and solc version from bytecode?
Look at Compiler metadata. solc appends a CBOR map to the runtime code and puts its length in the last two bytes; the page decodes it into the ipfs (or bzzr0, bzzr1) hash and the solc version, 0.8.12 for Multicall3 above. Those trailer bytes are left out of the listing.
What is the difference between this and the selector extractor?
This tool shows you the raw opcode listing and decodes the metadata trailer. The EVM function selector extractor runs EVMole to infer argument types, state mutability and a storage layout for each selector. Use the disassembler to read the code, the extractor to recover the interface.
Can I paste creation (init) code?
Yes. The listing will show the constructor, the CODECOPY that lays out the runtime code and a RETURN. The metadata trailer is attached to the runtime code, so for creation code it may be decoded only if the runtime section's trailer happens to sit at the very end.
Why is a byte shown as 0xXX?
Because that byte is not a defined opcode. On chain it would halt execution as an invalid instruction. It often marks the boundary between code and data, or a newer opcode this table does not know.
Updated
Related guides
- Etherscan Verification Failed? Read solc Version from Bytecode: use the metadata section to read the solc version and metadata hash, then find which setting breaks verification.
- Unverified Contract? Tell a Proxy from a Token by Its Bytecode: what the selectors and bytecode patterns tell you about an unknown contract.