Solidity Code Formatter
Format and beautify Solidity smart-contract source: re-indent by brace depth, normalize spacing around operators and punctuation, reorder function visibility/mutability modifiers, sort the pragma/import header, and normalize NatSpec comments — all in your browser.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Solidity Code
Solidity Version
keep, ^0.8.30, ^0.8.26, ^0.8.24, ^0.8.20, ^0.8.0 Indentation
4, 2, tab Brace Style
attach, allman Column Limit
60 <= x <= 200Reorder function modifiers (visibility → mutability → virtual → override)
Pragmas first, then imports sorted alphabetically
Normalize NatSpec /// comments (single space after slashes)
Collapse 2+ blank lines into a single blank line
Response
Tool output
The tool's slug, echoing the {slug} in the request path.
Output-contract version for this tool.
Credits this call consumed, after any settlement refund. 0 when metering is disabled.
Credits left in the current monthly allowance, or null when metering is disabled.
Correlation id, also sent as x-request-id.