Convert Decimal to Binary.
- Front page
- Base Converter
- Binary/Octal/Decimal/hexadecimal converter
Binary/Octal/Decimal/hexadecimal converter
How to use Base Converter
Enter the Decimal value you want to convert and click the "Convert" button.
The input value will be calculated and the converted result will be displayed in Binary.
The calculation method for conversion is also displayed.
Numerical input range
Decimal:0–9
Conversion by base number
How to convert from Decimal to Binary
Method of calculation
To convert a decimal number to a binary number, divide the decimal number by 2 until it becomes 0, and then get Remainder.
- 1. Divide the decimal number by 2 to get Quotient and Remainder.
- 2. Divide the next Quotient by 2 to get Quotient and Remainder.
- 3. Repeat this until Quotient becomes 0.
- 4. The number obtained by reversing Remainder is the result of converting it to binary.
Calculation example
Example: Convert Decimal "22" to Binary
Formula | Quotient | Remainder |
---|---|---|
22÷2 | 11 | 0 |
11÷2 | 5 | 1 |
5÷2 | 2 | 1 |
2÷2 | 1 | 0 |
1÷2 | 0 | 1 |
The converted value is "10110", which is the result of reversing the remainder numbers.