Decimal to binary, octal, and Hex values calculator

Using our calculator, you can convert some given decimal numbers to other different number systems, like binary, octal, and Hexadecimal.

How to use this calculator for converting the given decimal value to binary, octal, and hexadecimal value?

You just have to input the required decimal number, and just hit the calculate button. In the respective result boxes, you can get the binary, octal and hexadecimal values.

How to manually convert decimal numbers to binary, octal, and hexadecimal values?

Decimal to binary conversion –

We have to divide the given decimal number by 2. We know that if we are dividing some number by 2, then the remainder that we are going to get comes out to be 0, or 1. So, we are going to perform the division on the given number, and get the quotient for the next iteration. After that, we are going to get the remainder(binary digit). We have to repeat this until the quotient is zero.

Let’s understand this with an example –

let’s convert the number decimal number 14 to binary.

Number | Quotient | Remainder |

14/2 | 7 | 0 |

7/2 | 3 | 1 |

3/2 | 1 | 1 |

1/2 | 0 | 1 |

Now, as you can see, the quotient has become zero, and we have recorded the remainder for each iteration. Notice that those are all 0s and 1s.

As we have the remainders now, let’s read them from bottom to top, like 1, 1, 1, and 0. So, the binary for 14 comes out to be 1110.

#### Decimal to octal conversion –

To convert a decimal number to an octal number, we have to divide the given number by 8. If you divide some number by 8, then the possible values in the remainder are going to be 0 to 7. We are going to consider those remainders. Let’s have a look at an example for understanding the conversion. Let’s try converting the decimal number 1242 to octal.

Number | Quotient | Remainder |

1242/8 | 155 | 2 |

155/8 | 19 | 3 |

19/8 | 2 | 3 |

2/8 | 0 | 2 |

As you can see from the table, we have got all the remainders here. Now, again, we are going to read from bottom to top, like 2, 3, 3, and 2.

So, the octal number for the decimal number 1242, comes out to be 2332.

#### Decimal to hexadecimal conversion –

To convert the given decimal number, into a hexadecimal number, we just have to divide the given number by 16. If the number is divided by 16, the possible values for the remainder come out to be from 0 to 15. We are going to need those remainders. Let’s have a look at an example to understand the conversion. Let’s convert the decimal number 1242 to hexadecimal –

Number | Quotient | Remainder |

1242/16 | 77 | A(10) |

77/16 | 4 | D(13) |

4/16 | 0 | 4 |

So, as you can see, we got all the remainders here. Let’s read those remainders from bottom to top now. It comes out to be 4DA. So, the hexadecimal number for the decimal number 1242 comes out to be 4DA.

In this way, you can convert decimal to binary, octal, and hexadecimal values manually as well.

#### FAQ About Decimal to binary, octal, and Hex values calculator

**1. What is the base for a binary number system?**

**Ans: **The binary number system has a base of 2.

**2. What is the base for the octal number system?**

**Ans: **The octal number system has a base of 8.

**3. What is the base for the hexadecimal number system?**

**Ans: **The hexadecimal number system has a base of 16.