- Home
- Tools
- Math
- Number Base Converter
- Decimal to Octal Converter
Decimal to Octal Converter
Turn a decimal number into octal, with each division by eight and its remainder shown.
Type a decimal number in the first field and read it in octal in the second. It works the other way round as well. Whole numbers only; spaces, underscores and the prefixes 0b, 0o and 0x are fine.
Working
| Division | Result | Remainder |
|---|---|---|
| 420 ÷ 8 | 52 | 4 |
| 52 ÷ 8 | 6 | 4 |
| 6 ÷ 8 | 0 | 6 |
The remainders from the last to the first: 644
Other bases
- Bit length
- 9 bits
- Fits in
- 2 bytes
How to convert decimal to octal by hand
Divide by 8 and note the remainder, which is a digit from 0 to 7. Do the same with the result until the result is 0, then read the remainders from the last to the first.
For 420: 420 ÷ 8 = 52 remainder 4, then 52 ÷ 8 = 6 remainder 4, then 6 ÷ 8 = 0 remainder 6. That gives 644.
The working under the two fields at the top of the page does this for whatever number you type.
Good to know
- Check by working back: 6 × 64 + 4 × 8 + 4 = 420.
- The answer never contains an 8 or a 9. Numbers below 8 are written the same in both systems.
- If the number is already in binary there is a shortcut: every three bits, counted from the right, make one octal digit.
Decimal to octal table
| Decimal | Octal |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 2 | 2 |
| 3 | 3 |
| 4 | 4 |
| 5 | 5 |
| 6 | 6 |
| 7 | 7 |
| 8 | 10 |
| 9 | 11 |
| 10 | 12 |
| 11 | 13 |
| 12 | 14 |
| 13 | 15 |
| 14 | 16 |
| 15 | 17 |
| 16 | 20 |
| Decimal | Octal |
|---|---|
| 20 | 24 |
| 32 | 40 |
| 50 | 62 |
| 64 | 100 |
| 100 | 144 |
| 127 | 177 |
| 128 | 200 |
| 200 | 310 |
| 255 | 377 |
| 256 | 400 |
| 500 | 764 |
| 512 | 1000 |
| 1000 | 1750 |
| 1024 | 2000 |
| 4096 | 10000 |
| 65535 | 177777 |
The number base converter shows binary, octal, decimal and hexadecimal next to each other, and explains positional notation and two's complement.