23 in Binary

23 in binary is 1 0111 (10111).

Result 10111.

Binary (base 2)1 0111

Step by step

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

Quick method for 23

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

23 in other forms

  • Place values: 16 + 4 + 2 + 1 = 23
  • Hex: 17
  • Octal: 27
  • 5 bits — fits in one byte
  • 4 one-bits (even parity)
  • Padded: 0001 0111
  • 16-bit: 0000 0000 0001 0111
  • One's complement (8-bit): 1110 1000
  • Between 24 = 16 and 25 = 32
  • −23 in 8-bit two's complement: 1110 1001
  • ASCII: ETB — ASCII table

Going back: binary to decimal.

More numbers in binary

All numbers 0–255 in binary

23 in binary: questions

What is 23 in binary?

10111.

What is 23 in hex?

17.

How many bits is 23?

5.