4 in Binary

4 in binary is 100.

Result 100.

Binary (base 2)100

Step by step

  1. Divide by 2 repeatedly and write down the remainders:
    DivisionQuotientRemainder
    4 ÷ 220
    2 ÷ 210
    1 ÷ 201
  2. Read the remainders from bottom to top: 100
binary (base 2)100
octal (base 8)4
decimal (base 10)4
hexadecimal (base 16)4
Bits needed3 bits (fits in 1 byte)
8-bit form0000 0100
16-bit form0000 0000 0000 0100
32-bit form0000 0000 0000 0000 0000 0000 0000 0100

Quick method for 4

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

4 in other forms

  • Place values: 4 = 4
  • Hex: 4
  • Octal: 4
  • 3 bits — fits in one byte
  • 1 one-bit (odd parity)
  • Padded: 0000 0100
  • 16-bit: 0000 0000 0000 0100
  • One's complement (8-bit): 1111 1011
  • Power of two: 22
  • −4 in 8-bit two's complement: 1111 1100
  • ASCII: EOT — ASCII table

Going back: binary to decimal.

More numbers in binary

All numbers 0–255 in binary

4 in binary: questions

What is 4 in binary?

100.

What is 4 in hex?

4.

How many bits is 4?

3.