Convert Decimal to Binary
dec
bin
More Converters
How to Convert Decimal to Binary
Method-1:
Steps for Conversion from Decimal to Binary
- Write down any decimal number.
- Divide the decimal number by 2.
- write down the integer quotient for the next iteration.
- write down the remainder for the binary digit.
- Repeat dividing and writing down remainders until the result of the division is 0.
Example: Convert 15 decimal to binary:
Divide by 2 |
|
|
Bit Postiion | ||
---|---|---|---|---|---|
15/2 | 7 | 1 | 0 | ||
7/2 | 3 | 1 | 1 | ||
3/2 | 1 | 1 | 2 | ||
1/2 | 0 | 1 | 3 |
Method 2:
Look for the greatest power of 2. Choose the biggest number that will fit into the number you are converting. 8 is the greatest power of two that will fit into 15, so write a 1 beneath this box in your chart for the leftmost binary digit.
Example: Convert 15 decimal to binary:
Decimal | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
---|---|---|---|---|---|---|---|---|
Binary | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 |