Hex to Binary Converter
Each hex digit maps to exactly four binary bits, which makes hex a compact way to write bit patterns. This converter expands hexadecimal into binary so you can inspect flags and packed fields in calldata and logs. 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.
One hex digit is four bits
Hexadecimal is base-16, so every digit represents four binary bits: 0x0 is 0000 and 0xF is 1111. This tidy relationship is why EVM data is written in hex. Converting to binary lets you see individual bits, which matters when a contract packs several boolean flags or small integers into a single 32-byte word.
Reading packed calldata
Solidity often bit-packs values to save storage. When you decode calldata or a log's data field, expanding a hex slice to binary reveals which bits are set, helping you interpret bitmask permissions, feature flags, or enum values encoded inside a word.
Frequently asked
How many bits will I get?
Four bits per hex digit. Leading zeros within each digit are preserved so the bit alignment stays correct for inspecting packed fields.
Is anything uploaded?
No. The conversion is done locally in your browser with no network request and no 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