22 in Binary

22 in binary is 1 0110 (10110).

Result 10110.

Binary (base 2)1 0110

Step by step

  1. Divide by 2 repeatedly and write down the remainders:
    DivisionQuotientRemainder
    22 ÷ 2110
    11 ÷ 251
    5 ÷ 221
    2 ÷ 210
    1 ÷ 201
  2. Read the remainders from bottom to top: 1 0110
binary (base 2)1 0110
octal (base 8)26
decimal (base 10)22
hexadecimal (base 16)16
Bits needed5 bits (fits in 1 byte)
8-bit form0001 0110
16-bit form0000 0000 0001 0110
32-bit form0000 0000 0000 0000 0000 0000 0001 0110

Quick method for 22

Find the powers of 2 that add up to 22: 16 + 4 + 2. Put a 1 in those places and 0 elsewhere: 10110.

22 in other forms

  • Place values: 16 + 4 + 2 = 22
  • Hex: 16
  • Octal: 26
  • 5 bits — fits in one byte
  • 3 one-bits (odd parity)
  • Padded: 0001 0110
  • 16-bit: 0000 0000 0001 0110
  • One's complement (8-bit): 1110 1001
  • Between 24 = 16 and 25 = 32
  • −22 in 8-bit two's complement: 1110 1010
  • ASCII: SYN — ASCII table

Going back: binary to decimal.

More numbers in binary

All numbers 0–255 in binary

22 in binary: questions

What is 22 in binary?

10110.

What is 22 in hex?

16.

How many bits is 22?

5.