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

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

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 Decimal to Hexadecimal - the full step-by-step guide.