Skip to content

Build numbers from bits

How to Convert Decimal to Binary (Subtraction Method)

The quickest way to convert decimal to binary in your head is the subtraction method: walk down the place values from 128 to 1, writing a 1 and subtracting whenever the number is big enough.

The method

  1. 1Start at the biggest place value (128 for 8 bits)
  2. 2If your number is at least that big, write 1 and subtract it
  3. 3Otherwise write 0
  4. 4Move to the next place value and repeat down to 1

Example: 200

1281200 − 128 = 72
64172 − 64 = 8
3208 < 32
1608 < 16
818 − 8 = 0
400 < 4
200 < 2
100 < 1

200 = 11001000

Tips

  • Even numbers end in 0, odd numbers end in 1
  • Anything 128 or more starts with a 1
  • 255 is all ones, 0 is all zeros
  • Subnet masks are runs of ones: 192 = 11000000, 224 = 11100000, 240 = 11110000

Try it

Pick a number, then build it from bits.

Decimal
0
Binary
0000 0000

Frequently asked questions

How do you convert decimal to binary?
Start at the largest place value (128 for 8 bits). If your number is at least that big, write 1 and subtract it; otherwise write 0. Repeat for 64, 32, 16, 8, 4, 2 and 1.
What is 200 in binary?
200 is 11001000 in binary: 128 + 64 + 8 = 200.
What is 192 in binary?
192 is 11000000. It is the last octet of the /26 subnet mask 255.255.255.192.

Practise Decimal to Binary as a game

The Binary Game turns this lesson into quick rounds with a breakdown after every answer. Free to start on iPhone and iPad.