Loading...
Loading...
Enter hex values and see the full binary expansion instantly. Each hex digit becomes 4 bits, giving you direct access to individual bit positions.
Hexadecimal value (0-9, A-F)
Binary (base-2)
The relationship between hexadecimal and binary is exact. Hex has 16 possible digit values (0-9 and A-F), and 2⁴ = 16, so every hex digit expands to precisely 4 binary bits. This 4-bit group is called a nibble. The hex digit 0 is 0000, the digit 5 is 0101, the digit A is 1010, and the digit F is 1111.
This means converting from hex to binary requires no arithmetic at all - just a symbol substitution. Replace each hex digit with its 4-bit binary equivalent in sequence. The hex value 3F expands to 0011 1111. The value A7 expands to 1010 0111. There is no carrying, no division, no multiplication. The bits map directly.
The tool above performs this substitution for any hex string. Input the 0x prefix or omit it - both are accepted. Output is grouped by nibble for readability.
Packet capture tools display raw bytes in hexadecimal. When you need to inspect individual bits within a byte - such as TCP header flags or the Type of Service field in an IP header - converting the hex byte to binary lets you read each flag directly without mental arithmetic.
For example, the TCP flags byte 0x18 expands to 00011000. Reading from the right: bit 3 (value 8) is the PSH flag, bit 4 (value 16) is the ACK flag. Both are set. The remaining bits are 0. That tells you this packet is acknowledging data and pushing it to the application layer.
Protocol RFCs define fields in binary notation. Hardware register maps also list individual bits and their meanings. Converting a captured hex value to binary lets you overlay it directly onto those bit-position tables.
Bitmask operations are common in low-level code. A flags register might use each bit position to indicate a different condition. When debugging, you often want to know which bits are set. Converting the hex value to binary makes every bit immediately visible - you can scan the output left to right and read off which positions are 1 and which are 0.
Paste a hex value here to check its bit pattern without having to perform any mental conversions or write a quick script.
Does the output preserve leading zeros?
Yes. Each hex digit always expands to exactly 4 bits, including leading zeros. The hex digit 3 produces 0011, not 11. This preserves the full bit width of the original value, which matters when you are reading bit positions.
Can I enter lowercase hex like 0xff?
Yes. The converter accepts both uppercase and lowercase hex digits and the optional 0x prefix. All input is normalized before conversion, so 0xFF, 0xff, FF, and ff all produce the same binary output: 11111111.
What is the binary output for the hex value 0xDEADBEEF?
D=1101, E=1110, A=1010, D=1101, B=1011, E=1110, E=1110, F=1111. The full binary output is 11011110 10101101 10111110 11101111. This is a 32-bit value commonly used as a memory sentinel in debugging.