Binary to Decimal Converter

Binary is how machines store integers, but base-10 is how people read them. This converter turns a bit string into a decimal value so you can interpret flags and packed fields you extracted from EVM data. It runs entirely in your browser.

Enter a non-negative integer. Hex is prefixed 0x; parsing accepts values of any size.

Runs entirely in your browser. No API key, no data leaves this page.

From bits back to a number

Each binary position is a power of two, so 1010 is 8 + 2 = 10. When you have isolated a run of bits from a packed 32-byte word, converting it to decimal gives you the underlying integer, such as an enum index, a small counter, or a bitmask value.

Where packed bits come from

Contracts pack multiple small values into one storage slot or one calldata word to cut gas. After you slice out the relevant bits from a hex value, binary to decimal conversion tells you what the field actually holds.

Frequently asked

Can I include spaces between nibbles?

Group your bits however is convenient. Only the sequence of 0s and 1s determines the decimal value.

Does this tool call any server?

No. Conversion runs locally in the browser. There is no network request and no API key.

Related tools

Top up, get a key, ship.

Self-serve. Pay in crypto or card. Metered by credits — heavy primitives cost more, simple ones are cheap.

Get API key