Decimal to Octal Converter
Convert decimal numbers to octal. Decimal numbers are converted to octal to build Unix file permission values such as 755 or 644.
Decimal to Octal converter
Result
- Binary
- —
- Octal
- —
- Decimal
- —
- Hexadecimal
- —
How to convert decimal to octal
Divide the number by 8, write down the remainder, and repeat with the quotient until it reaches 0. Read the remainders from last to first to get the octal digits.
Example: 156 (decimal) to octal
| Division | Quotient | Remainder |
|---|---|---|
| 156 ÷ 8 | 19 | 4 |
| 19 ÷ 8 | 2 | 3 |
| 2 ÷ 8 | 0 | 2 |
Remainders from last to first: 234. So 156 = 234 in octal.
Examples
- 10 (decimal) = 12 (octal)
- 156 (decimal) = 234 (octal)
- 255 (decimal) = 377 (octal)
- 1000 (decimal) = 1750 (octal)
Decimal to Octal conversion table
| Decimal (base 10) | Octal (base 8) |
|---|---|
| 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 |
| 20 | 24 |
| 32 | 40 |
| 50 | 62 |
| 64 | 100 |
| 100 | 144 |
| 127 | 177 |
| 128 | 200 |
| 255 | 377 |
| 256 | 400 |
| 512 | 1000 |
| 1000 | 1750 |
| 1024 | 2000 |
The table lists the same whole numbers for every pair of bases.
Frequently asked questions
- What is 255 in octal?
- 255 in decimal is 377 in octal.
- How do I convert decimal to octal by hand?
- Divide the number by 8, write down the remainder, and repeat with the quotient until it reaches 0. Read the remainders from last to first to get the octal digits.
- What digits does decimal use?
- Decimal uses the digits 0 to 9. Decimal is the everyday number system for counting, money and measurement.
- What is octal used for?
- Octal is best known from Unix file permissions: chmod 755 is three octal digits, one for owner, group and others.