Enter a base-8 octal integer such as 755 or 0o52 to calculate its exact base-10 decimal value locally in your browser, with full support for long integers.
→
Runs locally
2 charactersWhole numbers · exact precision
Ready
Exact integer resultBase 10
Tip: enter a whole number in the selected input base.
Your data stays in your browser Free. No sign-up. Exact integer conversion
01 / EXPLAINED SIMPLY
How to convert octal to decimal by hand
Multiply each octal digit (0–7) by its power of 8 from right to left (1, 8, 64, 512, …) and add the products. Because octal is base 8, each step to the left multiplies the place value by 8.
Take octal 755 as an example: 7 × 64 + 5 × 8 + 5 × 1 = 448 + 40 + 5 = 493. Both plain octal digits (755) and prefixed literals (0o755) return the exact same base-10 integer.
Unix permission 755
7 × 64 + 5 × 8 + 5 × 1 equals decimal 493.
755
Prefixed octal literal
0o377 strips the base-8 prefix and returns 255.
0o377
Signed octal integer
Place a minus sign ahead of 0o to get -42.
-0o52
02 / CONVERSION EXAMPLES
Octal to decimal examples
Plain octal digits (755) and 0o-prefixed literals (0o755) both work. Digits 8 and 9 are invalid in base 8 and are rejected instead of misread.
Octal integers with exact decimal and binary equivalents