65535 in Binary

Binary1111 1111 1111 1111
Decimal
65,535
Binary
1111 1111 1111 1111
Hexadecimal
FFFF
Octal
177777
Bits needed
16

65535 = 1111111111111111₂

The decimal number 65535 is 1111 1111 1111 1111 in binary.

Step by step

  1. 65535 ÷ 2 = 32767 remainder 1
  2. 32767 ÷ 2 = 16383 remainder 1
  3. 16383 ÷ 2 = 8191 remainder 1
  4. 8191 ÷ 2 = 4095 remainder 1
  5. 4095 ÷ 2 = 2047 remainder 1
  6. 2047 ÷ 2 = 1023 remainder 1
  7. 1023 ÷ 2 = 511 remainder 1
  8. 511 ÷ 2 = 255 remainder 1
  9. 255 ÷ 2 = 127 remainder 1
  10. 127 ÷ 2 = 63 remainder 1
  11. 63 ÷ 2 = 31 remainder 1
  12. 31 ÷ 2 = 15 remainder 1
  13. … continue until the quotient is 0.
  14. Read the remainders from bottom to top: 1111111111111111.

Check the answer by adding the place values: 1×32768 + 1×16384 + 1×8192 + 1×4096 + 1×2048 + 1×1024 + … = 65,535. Each 1 bit adds its power of two and each 0 bit adds nothing.

Details

Binary
1111 1111 1111 1111
8-bit form
Needs 16 bits
Hexadecimal
FFFF
Octal
177777
Bits needed
16
Number of 1 bits
16

How it works

Binary is base 2: each digit is a bit worth a power of two (1, 2, 4, 8, 16, 32 …). To convert a decimal number to binary, divide it by 2 again and again, writing down each remainder (0 or 1), until the quotient reaches 0. The binary number is the remainders read from the last one to the first. To check, add the powers of two where the bits are 1.

Nearby values

DecimalBinary
5001 1111 0100
5111 1111 1111
51210 0000 0000
100011 1110 1000
102311 1111 1111
1024100 0000 0000
20481000 0000 0000
40961 0000 0000 0000
655351111 1111 1111 1111

Related conversions

Frequently asked questions

What is 65535 in binary?

1111111111111111.

How do you convert 65535 to binary?

Divide by 2 repeatedly and read the remainders from bottom to top.

How many bits are needed for 65535?

16 bits.

What is 65535 in hexadecimal?

FFFF.

Related tools