Octal · Base 8 → Base 10
Octal to Decimal Converter
Updated: June 2026
Octal uses only the digits 0 through 7 and survives mostly in one famous place: Unix and Linux file permissions. Converting octal to decimal turns those chmod numbers and legacy values into ordinary counts you can verify.
Free · No upload · Instant in the browser
The powers-of-8 method
Each octal position is worth a power of eight: 1, 8, 64, 512 reading right to left. Multiply every digit by its column weight and add the totals. Take 247:
2 4 7
2×64 + 4×8 + 7×1
= 128 + 32 + 7 = 167
So octal 247 equals decimal 167. Because octal only ever uses 0–7, any digit of 8 or 9 means the value is not valid octal — a quick error check.
Unix permissions explained
The reason octal still matters is that file permissions group three bits per user class: read (4), write (2) and execute (1). Adding those gives a digit from 0 to 7, and three classes — owner, group, others — give the familiar three-digit code. chmod 755 means owner 7 = read+write+execute, group 5 = read+execute, others 5 = read+execute. Converting 755 to decimal (493) is rarely needed in practice, but understanding the per-digit bit sum is essential for anyone managing servers.
7 = 111 = rwx
5 = 101 = r-x
5 = 101 = r-x
755 → rwxr-xr-x
Reference table
| Octal | Decimal | Octal | Decimal |
|---|---|---|---|
| 7 | 7 | 100 | 64 |
| 10 | 8 | 755 | 493 |
| 17 | 15 | 777 | 511 |
| 77 | 63 | 1000 | 512 |
Note that 777 — full permissions for everyone — is decimal 511, one less than 512 (8³). Just like in binary, an all-max run is one below the next power.
Where octal appears
- Unix/Linux
chmod,umaskand file mode bits. - Legacy systems and older programming languages where
0prefixes an octal literal. - Some escape sequences and byte representations in C and shell scripts.
- Digital systems where bits are naturally grouped in threes.
Frequently asked questions
How do you convert octal to decimal?
Multiply each digit by 8 raised to its position from the right, then add. 247 = 2×64 + 4×8 + 7 = 167.
What is 755 in decimal?
Octal 755 is 493, though for permissions the useful reading is rwxr-xr-x.
Why are there no 8 or 9 in octal?
Octal is base 8, so its only valid digits are 0–7. A digit of 8 or 9 is invalid octal.
What is 777 in decimal?
Octal 777 equals 511 — one below 8³ (512).