512 in Binary

Binary10 0000 0000
Decimal
512
Binary
10 0000 0000
Hexadecimal
200
Octal
1000
Bits needed
10

512 = 1000000000₂

The decimal number 512 is 10 0000 0000 in binary.

Step by step

  1. 512 ÷ 2 = 256 remainder 0
  2. 256 ÷ 2 = 128 remainder 0
  3. 128 ÷ 2 = 64 remainder 0
  4. 64 ÷ 2 = 32 remainder 0
  5. 32 ÷ 2 = 16 remainder 0
  6. 16 ÷ 2 = 8 remainder 0
  7. 8 ÷ 2 = 4 remainder 0
  8. 4 ÷ 2 = 2 remainder 0
  9. 2 ÷ 2 = 1 remainder 0
  10. 1 ÷ 2 = 0 remainder 1
  11. Read the remainders from bottom to top: 1000000000.

Check the answer by adding the place values: 1×512 + 0×256 + 0×128 + 0×64 + 0×32 + 0×16 + 0×8 + 0×4 + 0×2 + 0×1 = 512. Each 1 bit adds its power of two and each 0 bit adds nothing.

Details

Binary
10 0000 0000
8-bit form
Needs 10 bits
Hexadecimal
200
Octal
1000
Bits needed
10
Number of 1 bits
1

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
127111 1111
1281000 0000
1501001 0110
2001100 1000
2551111 1111
2561 0000 0000
5001 1111 0100
5111 1111 1111
51210 0000 0000

Related conversions

Frequently asked questions

What is 512 in binary?

1000000000.

How do you convert 512 to binary?

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

How many bits are needed for 512?

10 bits.

What is 512 in hexadecimal?

200.

Related tools