Convert Decimal to Octal.
- 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 Octal.
The calculation method for conversion is also displayed.
Numerical input range
Decimal:0–9
Conversion by base number
How to convert from Decimal to Octal
Method of calculation
To convert a decimal number to an octal number, divide the decimal number by 8 until it becomes 0, then get Remainder.
- 1. Divide the decimal number by 8 to get Quotient and Remainder.
- 2. Divide the next Quotient by 8 to get Quotient and Remainder.
- 3. Repeat this until Quotient becomes 0.
- 4. The result of converting Remainder into octal is the reverse order of Remainder.
Calculation example
Example: Convert Decimal "87" to Octal
Formula | Quotient | Remainder |
---|---|---|
87÷8 | 10 | 7 |
10÷8 | 1 | 2 |
1÷8 | 0 | 1 |
The converted value is "127", which is the result of reversing the remainder numbers.