65535 in Binary
Decimal 65535 equals 1111111111111111 in binary.
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
Try another value
Edit this value or switch its base. Your changes are calculated in your browser with exact integer arithmetic.
Input base:
Decimal
65535Hex
0xFFFFBinary
0b1111111111111111Octal
0o177777How 65535 converts from decimal to binary
Divide by 2 repeatedly and keep each remainder, then read the remainders from bottom to top:
65535÷ 2 =32767remainder1
32767÷ 2 =16383remainder1
16383÷ 2 =8191remainder1
8191÷ 2 =4095remainder1
4095÷ 2 =2047remainder1
2047÷ 2 =1023remainder1
1023÷ 2 =511remainder1
511÷ 2 =255remainder1
255÷ 2 =127remainder1
127÷ 2 =63remainder1
63÷ 2 =31remainder1
31÷ 2 =15remainder1
15÷ 2 =7remainder1
7÷ 2 =3remainder1
3÷ 2 =1remainder1
1÷ 2 =0remainder1
Result (remainders bottom to top): 1111111111111111
This tool runs entirely in your browser - nothing you enter is uploaded or stored.