Base 10 to Base 8
Decimal to Octal Converter
Divide the decimal integer repeatedly by 8, recording the remainders (0–7) at each step. Writing the remainders in reverse order produces the octal number.
Allowed: 0–9
base 10
Examples:
Octal Result (Primary Target)base 8
100
Binary (base 2)
1000000
Hexadecimal (base 16)
40
Step-by-Step Calculation Steps
Successive Division Algorithm
Divide the decimal number repeatedly by 8 and record the remainders in reverse order (bottom to top):
Division Steps
64 ÷ 8 = 8 with remainder 0 8 ÷ 8 = 1 with remainder 0 1 ÷ 8 = 0 with remainder 1
Result
Reading remainders from last to first gives 100 in Octal.
How to Convert Decimal to Octal
Divide the decimal integer repeatedly by 8, recording the remainders (0–7) at each step. Writing the remainders in reverse order produces the octal number.
Conversion Formula / Rule
Repeatedly divide by 8: n = 8q + r, where r ∈ {0, 1, ..., 7} Worked Example: 179 (Decimal) to Octal
Problem Convert 179 (base 10) into base 8
Step-by-Step Solution
- 179 ÷ 8 = 22 remainder 3 (least significant digit)
- 22 ÷ 8 = 2 remainder 6
- 2 ÷ 8 = 0 remainder 2 (most significant digit)
- Read remainders from bottom to top: 263₈
Final Result 263 (Octal)
Quick Conversion Reference Table (0–15)
Standard values across Binary (base 2), Octal (base 8), Decimal (base 10), and Hexadecimal (base 16):
| Decimal (10) | Binary (2) | Octal (8) | Hexadecimal (16) |
|---|---|---|---|
| 0 | 0000 | 0 | 0 |
| 1 | 0001 | 1 | 1 |
| 2 | 0010 | 2 | 2 |
| 3 | 0011 | 3 | 3 |
| 4 | 0100 | 4 | 4 |
| 5 | 0101 | 5 | 5 |
| 6 | 0110 | 6 | 6 |
| 7 | 0111 | 7 | 7 |
| 8 | 1000 | 10 | 8 |
| 9 | 1001 | 11 | 9 |
| 10 | 1010 | 12 | A |
| 11 | 1011 | 13 | B |
| 12 | 1100 | 14 | C |
| 13 | 1101 | 15 | D |
| 14 | 1110 | 16 | E |
| 15 | 1111 | 17 | F |