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

Try another value

Edit this value or switch its base. Your changes are calculated in your browser with exact integer arithmetic.

Input base:
Decimal127
Hex0x7F
Binary0b1111111
Octal0o177

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

This tool runs entirely in your browser - nothing you enter is uploaded or stored.

Want to learn the method behind this tool? Read How to Convert Hexadecimal to Decimal - the full step-by-step guide.