Skip to content

127 in Hexadecimal

Decimal 127 equals 0x7F in hexadecimal.

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).

127 in all number bases

Decimal127
Hexadecimal0x7F
Binary0111 1111
Octal177

How 127 converts from decimal to hexadecimal

Divide by 16 repeatedly and keep each remainder, then read the remainders from bottom to top:

127÷ 16 =7remainder15 → F
7÷ 16 =0remainder7

Result (remainders bottom to top): 7F