- Home
- Tools
- Math
- Number Base Converter
- Octal to Decimal Converter
Octal to Decimal Converter
Turn an octal number such as 755 into decimal, with the worth of every digit worked out.
Type a octal number in the first field and read it in decimal 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
| Digit | Place value | Digit × place value |
|---|---|---|
| 7 | 64 | 7 × 64 = 448 |
| 5 | 8 | 5 × 8 = 40 |
| 5 | 1 | 5 × 1 = 5 |
448 + 40 + 5 = 493
Other bases
- Bit length
- 9 bits
- Fits in
- 2 bytes
How to convert octal to decimal by hand
Octal uses the digits 0 to 7, and each place is worth eight times the one to its right: 1, 8, 64, 512, 4096.
Multiply every digit by the worth of its place and add up. For 755 that is 7 × 64 + 5 × 8 + 5 × 1, or 448 + 40 + 5 = 493.
The working under the two fields at the top of the page does this for whatever number you type.
Good to know
- An 8 or a 9 cannot occur in an octal number. If you see one, the number is not octal.
- In C, a number written with a zero in front is octal, so 010 is 8 and not 10. Python 3 and modern JavaScript write 0o10 instead, which is harder to misread.
- Octal lives on in Unix file permissions. The 755 in chmod 755 is three octal digits: one for the owner, one for the group and one for everyone else. As a decimal number it is 493, which nobody uses.
Octal to decimal table
| Octal | Decimal |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 2 | 2 |
| 3 | 3 |
| 4 | 4 |
| 5 | 5 |
| 6 | 6 |
| 7 | 7 |
| 10 | 8 |
| 11 | 9 |
| 12 | 10 |
| 13 | 11 |
| 14 | 12 |
| 15 | 13 |
| 16 | 14 |
| 17 | 15 |
| 20 | 16 |
| Octal | Decimal |
|---|---|
| 24 | 20 |
| 40 | 32 |
| 62 | 50 |
| 100 | 64 |
| 144 | 100 |
| 177 | 127 |
| 200 | 128 |
| 310 | 200 |
| 377 | 255 |
| 400 | 256 |
| 764 | 500 |
| 1000 | 512 |
| 1750 | 1000 |
| 2000 | 1024 |
| 10000 | 4096 |
| 177777 | 65535 |
The number base converter shows binary, octal, decimal and hexadecimal next to each other, and explains positional notation and two's complement.