Skip to content

7F in Decimal

Hexadecimal 7F equals 127 in decimal.

Why this number matters: 127 is the largest positive value of a signed 8-bit integer (int8) and the loopback IP octet (127.0.0.1).

7F in all number bases

Decimal127
Hexadecimal0x7F
Binary0111 1111
Octal177

How 7f converts from hexadecimal to decimal

Multiply each digit by 16 raised to its position (starting at 0 from the right), then add the results:

7× 161 = 7 × 16 = 112
F× 160 = 15 × 1 = 15

Sum: 127