RULE 1 — Split into Nibbles
Always group binary from RIGHT to LEFT into groups of 4 bits. Pad with leading zeros if needed.
RULE 2 — 4 Bits = 1 Hex Digit
Each nibble (0000–1111) maps to one hex digit (0–F). Values 10–15 use letters A–F.
RULE 3 — Convert Each Nibble Independently
Convert the left nibble first, then the right. Combine the two hex digits for your answer.
RULE 4 — Hex Prefix
Hex values are written with a 0x prefix in computing (e.g. 0xFF). In networking, you may see it without (e.g. FF).