167 in Binary

167 in binary is 1010 0111 (10100111).

Result 10100111.

Binary (base 2)1010 0111

Step by step

  1. Divide by 2 repeatedly and write down the remainders:
    DivisionQuotientRemainder
    167 ÷ 2831
    83 ÷ 2411
    41 ÷ 2201
    20 ÷ 2100
    10 ÷ 250
    5 ÷ 221
    2 ÷ 210
    1 ÷ 201
  2. Read the remainders from bottom to top: 1010 0111
binary (base 2)1010 0111
octal (base 8)247
decimal (base 10)167
hexadecimal (base 16)A7
Bits needed8 bits (fits in 1 byte)
8-bit form1010 0111
16-bit form0000 0000 1010 0111
32-bit form0000 0000 0000 0000 0000 0000 1010 0111

Quick method for 167

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

167 in other forms

  • Place values: 128 + 32 + 4 + 2 + 1 = 167
  • Hex: A7
  • Octal: 247
  • 8 bits — fits in one byte
  • 5 one-bits (odd parity)
  • Padded: 1010 0111
  • 16-bit: 0000 0000 1010 0111
  • One's complement (8-bit): 0101 1000
  • As a signed byte (two's complement): -89
  • Between 27 = 128 and 28 = 256

Going back: binary to decimal.

More numbers in binary

All numbers 0–255 in binary

167 in binary: questions

What is 167 in binary?

10100111.

What is 167 in hex?

A7.

How many bits is 167?

8.