165 in Binary

165 in binary is 1010 0101 (10100101).

Result 10100101.

Binary (base 2)1010 0101

Step by step

  1. Divide by 2 repeatedly and write down the remainders:
    DivisionQuotientRemainder
    165 ÷ 2821
    82 ÷ 2410
    41 ÷ 2201
    20 ÷ 2100
    10 ÷ 250
    5 ÷ 221
    2 ÷ 210
    1 ÷ 201
  2. Read the remainders from bottom to top: 1010 0101
binary (base 2)1010 0101
octal (base 8)245
decimal (base 10)165
hexadecimal (base 16)A5
Bits needed8 bits (fits in 1 byte)
8-bit form1010 0101
16-bit form0000 0000 1010 0101
32-bit form0000 0000 0000 0000 0000 0000 1010 0101

Quick method for 165

Find the powers of 2 that add up to 165: 128 + 32 + 4 + 1. Put a 1 in those places and 0 elsewhere: 10100101.

165 in other forms

  • Place values: 128 + 32 + 4 + 1 = 165
  • Hex: A5
  • Octal: 245
  • 8 bits — fits in one byte
  • 4 one-bits (even parity)
  • Padded: 1010 0101
  • 16-bit: 0000 0000 1010 0101
  • One's complement (8-bit): 0101 1010
  • As a signed byte (two's complement): -91
  • Between 27 = 128 and 28 = 256

Going back: binary to decimal.

More numbers in binary

All numbers 0–255 in binary

165 in binary: questions

What is 165 in binary?

10100101.

What is 165 in hex?

A5.

How many bits is 165?

8.