Bytecode Decompiler
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
Bytecode Decompiler is a developer tool that translates raw EVM bytecode into a list of opcodes — the low-level instructions that the Ethereum Virtual Machine executes. Enter any contract bytecode (hex string starting with 0x), and the tool parses it into individual opcodes with their offsets and arguments. It displays each instruction with its position in the bytecode, the opcode name (e.g., PUSH1, ADD, SSTORE, CALL), and any push arguments. This is essential for developers debugging contracts, analyzing bytecode, understanding low-level EVM execution, or learning how Solidity compiles to EVM instructions.
HOW TO USE
Connect your wallet using the BGWallet bridge (MetaMask or any Web3 wallet). Paste the contract bytecode into the text area — this should be a hex string starting with 0x. Click "Decompile" to parse the bytecode. The tool displays the decompilation status, bytecode size in bytes, total opcode count, and a table of opcodes with offsets (hex), opcode names, and push arguments (if any). The table is scrollable and shows up to 500 opcodes. This is useful for analyzing contract behavior, identifying suspicious patterns, or understanding the structure of compiled code.
TECHNICAL MECHANISM
The tool parses EVM bytecode by iterating through each byte and looking up the opcode in a predefined map. The opcode map includes all standard EVM instructions from 0x00 to 0xff. For PUSH instructions (0x60-0x7f), the tool reads the following N bytes (where N = opcode - 0x60 + 1) as the push argument and displays them as hex. The tool calculates the bytecode size by subtracting the "0x" prefix and dividing by 2. The offset is displayed in hex for easy reference to the bytecode positions. The tool does not perform any control flow analysis or data flow analysis — it simply translates each byte to its opcode name. All operations are performed client-side — no data is stored or transmitted. The tool is read-only and does not sign any transactions.
WHAT IT CANNOT SEE
The tool cannot provide a full decompilation to Solidity or high-level code — it only produces low-level opcodes. It cannot reconstruct variable names or function names from bytecode alone — those are lost during compilation. It cannot handle obfuscated or optimized bytecode accurately — some patterns may be difficult to interpret. It cannot detect or decompile proxy patterns correctly — proxies may appear as simple delegatecall instructions. It cannot provide a complete control flow graph or data flow analysis — the tool only shows sequential opcodes. It cannot identify the compiler version or optimization settings. The tool is read-only and does not sign any transactions.
PLEASE NOTE
This tool works exclusively with EVM-compatible chains for the wallet connection, but the bytecode decompilation is chain-agnostic. Solana, Tron, Starknet, SUI, TON, Aptos, Bitcoin, Cosmos, and XRP are not supported for wallet connection but the decompilation works regardless. The tool displays raw opcodes — understanding them requires knowledge of EVM architecture. The tool does not store any data — all operations are performed client-side. The tool is provided as-is with no warranty or liability. Always verify decompiled output with the contract source code when available.