How to Convert Binary to Hexadecimal
Converting binary to hexadecimal is efficient because hex is base-16 (2^4), which means 4 binary digits equal 1 hex digit.
Step 1: Group the binary digits into sets of 4, starting from the right. Add leading zeros if needed.
Step 2: Convert each 4-bit group (a nibble) to its hex equivalent:
Step 3: Join the converted hex digits in the same order.
Example: Binary 11010111 groups as 1101 0111, so 1101 = D and 0111 = 7. The hexadecimal result is D7.
Step-by-Step Binary to Hex Examples
101101→ pad and group as0010 1101→2D11111111→ group as1111 1111→FF100000000→ group as0001 0000 0000→100
The grouping method works because every hexadecimal digit represents exactly four binary bits. You do not need to convert the full binary number to decimal first.
Common Binary to Hex Conversions
Here are some useful values for quick checks:
| Binary | Hexadecimal |
|---|---|
0000 |
0 |
1101 |
D |
1111 |
F |
00101101 |
2D |
10101010 |
AA |
11110111 |
F7 |
11111111 |
FF |
100000000 |
100 |
For the reverse direction, use the hex to binary converter. To compare the same value across number systems, check the binary to decimal converter or the broader base converter. For a compact reference across all three systems, use the binary, decimal, and hex cheat sheet.