Decimal to Binary Converter

Enter a decimal number to see it in binary, with the divide-by-2 steps.

Result 10011100.

Binary (base 2)1001 1100

Step by step

  1. Divide by 2 repeatedly and write down the remainders:
    DivisionQuotientRemainder
    156 ÷ 2780
    78 ÷ 2390
    39 ÷ 2191
    19 ÷ 291
    9 ÷ 241
    4 ÷ 220
    2 ÷ 210
    1 ÷ 201
  2. Read the remainders from bottom to top: 1001 1100
binary (base 2)1001 1100
octal (base 8)234
decimal (base 10)156
hexadecimal (base 16)9C
Bits needed8 bits (fits in 1 byte)
8-bit form1001 1100
16-bit form0000 0000 1001 1100
32-bit form0000 0000 0000 0000 0000 0000 1001 1100

How to convert decimal to binary

  1. Divide the number by 2 and write down the remainder (0 or 1).
  2. Divide the quotient by 2 again; repeat until the quotient is 0.
  3. Read the remainders from the last one to the first.

156 → 78 r0, 39 r0, 19 r1, 9 r1, 4 r1, 2 r0, 1 r0, 0 r1 → 10011100.

Negative numbers in computers use two’s complement.

Popular numbers in binary

Binary chart 0–255

Frequently asked questions

What is 156 in binary?

10011100.

What is 10 in binary?

1010.

How do I write a negative number in binary?

Usually with two's complement: invert the bits of the positive number and add 1.