Home › Unit Converters › Decimal to Octal Converter
Decimal to Octal Converter
Convert decimal to octal with our free decimal to octal converter — or flip it and turn octal numbers back into decimal. Octal still shows up in Linux file permissions (chmod 644, 755), aviation codes and older electronics, usually without any explanation of what base it is in. This tool converts in seconds, with no sign-up, and also handles binary and hexadecimal.
How to use this converter
- Type the decimal number in the Number box, for example 255.
- Check that From is set to Decimal and To is set to Octal. Choose binary or hexadecimal if you need them.
- Read the answer in the result box. It updates as you type, and the line below shows both numbers with their bases.
- Use the Swap button to convert octal back to decimal without retyping.
Common values
| Decimal | Octal | Binary |
|---|---|---|
| 8 | 10 | 1000 |
| 10 | 12 | 1010 |
| 32 | 40 | 100000 |
| 64 | 100 | 1000000 |
| 100 | 144 | 1100100 |
| 255 | 377 | 11111111 |
| 512 | 1000 | 1000000000 |
| 1,000 | 1750 | 1111101000 |
How it works
Octal is a base-8 number system. It uses only eight digits — 0 through 7 — and its place values are powers of eight: 1, 8, 64, 512 and so on. Because 8 is 2³, every octal digit is exactly three binary digits, which made octal a convenient shorthand in early computing and keeps it alive in Unix permissions today.
To convert decimal to octal by hand, divide by 8 repeatedly and keep the remainders. For 255: 255 ÷ 8 = 31 remainder 7; 31 ÷ 8 = 3 remainder 7; 3 ÷ 8 = 0 remainder 3. Read the remainders from last to first — 3, 7, 7 — so 255 in octal is 377. The same method with divisor 16 converts to hex instead, which is why the two systems are often taught together.
You can verify any octal answer by expanding it: multiply each digit by its place value and add. 377 = 3 × 64 + 7 × 8 + 7 × 1 = 192 + 56 + 7 = 255. The converter above uses exact whole-number arithmetic for both directions, so results stay correct even for very long numbers, and it politely rejects digits that cannot appear in the chosen base — an 8 or 9 in an octal number, for example.
The most common place you will meet octal is a Linux server: chmod 755 sets permissions rwxr-xr-x, because 7 = 111 (read, write, execute), and 5 = 101 (read and execute). Pilots also dial transponder codes in octal digits 0–7. Whenever a number looks suspiciously short of 8s and 9s, it is probably octal — and this page will translate it.
Worked example
A junior system administrator is told a file's permissions are stored as the decimal number 255 and needs the octal form to compare with a chmod listing.
Step 1: Divide 255 by 8 — 255 ÷ 8 = 31, remainder 7.
Step 2: Divide again — 31 ÷ 8 = 3, remainder 7.
Step 3: Divide once more — 3 ÷ 8 = 0, remainder 3.
Step 4: Read the remainders from last to first — 377.
So 255 is 377 in octal. Check: 3 × 64 + 7 × 8 + 7 = 192 + 56 + 7 = 255. Those are the exact results this converter gives, and the same three steps convert any decimal number — 100 becomes 144, and 512 becomes 1000.
FAQ
What is 255 in octal?
255 in decimal equals 377 in octal. Divide 255 by 8: 255 ÷ 8 = 31 remainder 7; 31 ÷ 8 = 3 remainder 7; 3 ÷ 8 = 0 remainder 3. Read the remainders last-to-first: 377.
How do I convert decimal to octal by hand?
Divide the number by 8 again and again, noting each remainder. Stop when the result reaches zero, then read the remainders from last to first. For 100: 100 ÷ 8 = 12 r4, 12 ÷ 8 = 1 r4, 1 ÷ 8 = 0 r1 — so 100 = 144 in octal.
Where is octal used today?
Octal survives mainly in Unix and Linux file permissions, where each digit 0–7 is a neat group of three binary bits: chmod 755 means rwxr-xr-x. It also appears in aviation transponder codes and some older computing systems.
Why does octal have no 8 or 9?
Octal is base 8, so it has only eight digits: 0, 1, 2, 3, 4, 5, 6 and 7. Just as decimal rolls from 9 to 10, octal rolls from 7 to 10 — which means the octal number 10 is worth eight, not ten.
What is 100 in octal?
100 in decimal equals 144 in octal. Check it back: 1 × 64 + 4 × 8 + 4 × 1 = 64 + 32 + 4 = 100. And the octal number 100 itself is worth 64 in decimal.
Can I convert octal back to decimal here?
Yes. Set From to Octal and To to Decimal, or use the swap button. This page converts between decimal, octal, binary and hexadecimal in any direction, and rejects digits that do not belong to the chosen base, such as 8 or 9 in octal.