Convert 101101 to hexadecimal
101101 has six bits, which is not a multiple of four, so pad it on the left with two zeros to make 00101101. Split from the right into 0010 and 1101. From the nibble table, 0010 is 2 and 1101 is D. So 101101 in binary is 2D in hexadecimal. Decimal check: 45 both ways.
| Stage | Value |
| Original binary | 101101 |
| Padded to a multiple of 4 | 00101101 |
| Split into groups from the right | 0010 | 1101 |
| Each group as a hex digit | 2 | D |
| Result | 2D |
| Decimal check | 45 |
Convert 11111111 to hexadecimal
Eight bits — one full byte, and the largest value a byte can hold. It splits cleanly with no padding into 1111 and 1111, giving F and F. So 11111111 is FF, which is 255 in decimal. This is the value you see constantly in colour codes and byte fields precisely because it is the ceiling of a single byte.
Convert 1011111011101111 to hexadecimal
Sixteen bits, so four clean nibbles and no padding: 1011, 1110, 1110, 1111. Those map to B, E, E and F, giving BEEF — a real hex value and a long-running programmer joke, used as a recognisable filler pattern in memory. In decimal it is 48,879. Sixteen binary digits reduced to four characters is the compression that makes hex worth using.