Decimal to Binary Converter

Converting Decimal to Binary

Decimal and Binary are two ways to write numbers. In general, we use decimal numbers—also refered to as base 10—in our everyday lives. That means that there are 10 possible values (0-9) for each digit represented by a base 10 number. Binary is written base 2, which gives only 2 possible values per digit (0 or 1). Binary numbers are the language of computers, since they only understand two values fundamentally: a 1 or a 0. You can represent anything to a computer with just these two values, including numbers.

The conversion between base 10 and base 2 is not terribly complex. The process is the same for converting to any other base.

  1. Divide the original decimal number by the new base value.
  2. The remainder of the division operation is the value of the first digit of the converted number.
  3. Divide the quotient of the division operation by the base value.
  4. The remainder from Step 3 will be the next digit (to the left) of the base number.

Example

The below is the representation of the conversion operation of 234810 to binary using the above steps.

DivisionQuotientRemainder
2348 / 211740 (0)
1174 / 25870 (0)
587 / 22931 (1)
293 / 21461 (1)
146 / 2730 (0)
73 / 2361 (1)
36 / 2180 (0)
18 / 290 (0)
9 / 241 (1)
4 / 220 (0)
2 / 210 (0)
1 / 201 (1)

Thus, the binary value of 234810 is 1001001011002.