Skip to content

65535 in Hexadecimal

Decimal 65535 equals 0xFFFF in hexadecimal.

Why this number matters: 65535 is the maximum unsigned 16-bit value (0xFFFF) and the highest TCP/UDP port number.

65535 in all number bases

Decimal65535
Hexadecimal0xFFFF
Binary1111 1111 1111 1111
Octal177777

How 65535 converts from decimal to hexadecimal

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

65535÷ 16 =4095remainder15 → F
4095÷ 16 =255remainder15 → F
255÷ 16 =15remainder15 → F
15÷ 16 =0remainder15 → F

Result (remainders bottom to top): FFFF