120 in Binary

120 in binary is 111 1000 (1111000).

Result 1111000.

Binary (base 2)111 1000

Step by step

  1. Divide by 2 repeatedly and write down the remainders:
    DivisionQuotientRemainder
    120 ÷ 2600
    60 ÷ 2300
    30 ÷ 2150
    15 ÷ 271
    7 ÷ 231
    3 ÷ 211
    1 ÷ 201
  2. Read the remainders from bottom to top: 111 1000
binary (base 2)111 1000
octal (base 8)170
decimal (base 10)120
hexadecimal (base 16)78
Bits needed7 bits (fits in 1 byte)
8-bit form0111 1000
16-bit form0000 0000 0111 1000
32-bit form0000 0000 0000 0000 0000 0000 0111 1000

Quick method for 120

Find the powers of 2 that add up to 120: 64 + 32 + 16 + 8. Put a 1 in those places and 0 elsewhere: 1111000.

120 in other forms

  • Place values: 64 + 32 + 16 + 8 = 120
  • Hex: 78
  • Octal: 170
  • 7 bits — fits in one byte
  • 4 one-bits (even parity)
  • Padded: 0111 1000
  • 16-bit: 0000 0000 0111 1000
  • One's complement (8-bit): 1000 0111
  • Between 26 = 64 and 27 = 128
  • −120 in 8-bit two's complement: 1000 1000
  • ASCII: “x” — ASCII table

Going back: binary to decimal.

More numbers in binary

All numbers 0–255 in binary

120 in binary: questions

What is 120 in binary?

1111000.

What is 120 in hex?

78.

How many bits is 120?

7.