20 in Binary

20 in binary is 1 0100 (10100).

Result 10100.

Binary (base 2)1 0100

Step by step

  1. Divide by 2 repeatedly and write down the remainders:
    DivisionQuotientRemainder
    20 ÷ 2100
    10 ÷ 250
    5 ÷ 221
    2 ÷ 210
    1 ÷ 201
  2. Read the remainders from bottom to top: 1 0100
binary (base 2)1 0100
octal (base 8)24
decimal (base 10)20
hexadecimal (base 16)14
Bits needed5 bits (fits in 1 byte)
8-bit form0001 0100
16-bit form0000 0000 0001 0100
32-bit form0000 0000 0000 0000 0000 0000 0001 0100

Quick method for 20

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

20 in other forms

  • Place values: 16 + 4 = 20
  • Hex: 14
  • Octal: 24
  • 5 bits — fits in one byte
  • 2 one-bits (even parity)
  • Padded: 0001 0100
  • 16-bit: 0000 0000 0001 0100
  • One's complement (8-bit): 1110 1011
  • Between 24 = 16 and 25 = 32
  • −20 in 8-bit two's complement: 1110 1100
  • ASCII: DC4 — ASCII table

Going back: binary to decimal.

More numbers in binary

All numbers 0–255 in binary

20 in binary: questions

What is 20 in binary?

10100.

What is 20 in hex?

14.

How many bits is 20?

5.