204 in Binary

204 in binary is 1100 1100 (11001100).

Result 11001100.

Binary (base 2)1100 1100

Step by step

  1. Divide by 2 repeatedly and write down the remainders:
    DivisionQuotientRemainder
    204 ÷ 21020
    102 ÷ 2510
    51 ÷ 2251
    25 ÷ 2121
    12 ÷ 260
    6 ÷ 230
    3 ÷ 211
    1 ÷ 201
  2. Read the remainders from bottom to top: 1100 1100
binary (base 2)1100 1100
octal (base 8)314
decimal (base 10)204
hexadecimal (base 16)CC
Bits needed8 bits (fits in 1 byte)
8-bit form1100 1100
16-bit form0000 0000 1100 1100
32-bit form0000 0000 0000 0000 0000 0000 1100 1100

Quick method for 204

Find the powers of 2 that add up to 204: 128 + 64 + 8 + 4. Put a 1 in those places and 0 elsewhere: 11001100.

204 in other forms

  • Place values: 128 + 64 + 8 + 4 = 204
  • Hex: CC
  • Octal: 314
  • 8 bits — fits in one byte
  • 4 one-bits (even parity)
  • Padded: 1100 1100
  • 16-bit: 0000 0000 1100 1100
  • One's complement (8-bit): 0011 0011
  • As a signed byte (two's complement): -52
  • Between 27 = 128 and 28 = 256

Going back: binary to decimal.

More numbers in binary

All numbers 0–255 in binary

204 in binary: questions

What is 204 in binary?

11001100.

What is 204 in hex?

CC.

How many bits is 204?

8.