Solidity Compiler
Last updated
Last updated
The Solidity Compiler lets you compile your smart contracts directly in your browser without installing external tools. It’s a powerful and flexible tool tailored for Ethereum developers who want an integrated, smooth experience for compiling .sol
files within a smart contract IDE.
Smart file detection – automatically shows all .sol
files in your workspace
Multiple compiler versions – choose the version that fits your contract requirements
Advanced compilation settings – set optimizer, EVM version, and more
Auto-compile – contracts can compile automatically when edited
Artifact generation – generates and saves ABI and Bytecode for your contracts
Warnings and error handling – shows helpful feedback for fixing your code
To compile a smart contract, first select a .sol
file in the File Explorer. If you have multiple files open, make sure the one you want to compile is the active tab in the Editor.
If no file is currently active or no contract has been compiled yet, the Solidity Compiler panel will appear empty, prompting you to choose or open a contract file.
Once you open a workspace, all Solidity (.sol
) files will be listed in the file dropdown. Select the one you want to compile.
Select the Solidity version your contract requires. The list includes popular stable releases.
You can configure the following:
Auto-compile: Automatically compile the contract when it changes.
Advanced Settings (optional):
Language: Solidity or Yul
EVM Version: Select the Ethereum Virtual Machine version
Enable Optimizer: Optimize contract size and gas usage
Optimizer Runs: Number of optimizer iterations.
Click the "Compile" button to manually compile the contract. If auto-compile is enabled, it may already compile after a change.
After compiling:
A green tick means compilation was successful.
If there’s an error, it will be displayed at the bottom.