
Hexadecimal Is Not Hard Once You Stop Being Afraid of Letters in Numbers
Hexadecimal is base-16 numbering. Instead of digits 0-9 (base 10), it uses digits 0-9 plus A-F, where A=10, B=11, C=12, D=13, E=14, F=15. That is the entire concept. Every developer encounters hex regularly -- memory addresses, color codes, Unicode code points, MAC addresses, cryptographic hashes -- and understanding the conversion between hex, decimal, and binary makes debugging and data inspection significantly easier. Why hex exists Binary (base 2) is what computers actually use, but binary numbers are long and hard for humans to parse. The number 255 in binary is 11111111 -- eight digits for a small number. In hex, it is FF -- two digits. Hex works as a compact representation of binary because 16 is a power of 2 (16 = 2^4). Each hex digit maps exactly to four binary digits (bits): Hex Binary 0 0000 1 0001 2 0010 ... 9 1001 A 1010 B 1011 C 1100 D 1101 E 1110 F 1111 A byte (8 bits) is always exactly two hex digits. This perfect alignment makes hex the natural human-readable format fo
Continue reading on Dev.to Tutorial
Opens in a new tab




