Why does each hex digit equal exactly 4 binary digits?
Hexadecimal is base-16, and 2⁴ = 16 — so any 4-bit chunk of binary maps to exactly one of the 16 hex digits (0–9, A–F). That's why a byte (8 bits) is always written as 2 hex characters.
Is this the same as converting a web color code?
Web colors like #39FF8D are exactly this: three hex byte-pairs (red, green, blue). Paste any two of those pairs as binary here to see the underlying bits.
This converts numbers — how do I convert plain text to hex instead?
Use the
Hex Translator, which maps each character of text to its hex byte value, not raw binary numbers.
What about converting straight to decimal?