THE RIGHT TOOL FOR YOUR NEXT BYTE

Octal to Decimal Converter

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
Octal inputDecimal outputBinary (base 2)Notes
10
810001 × 8 + 0 = 8.
52
421010105 × 8 + 2 = 42.
377
255111111113 × 64 + 7 × 8 + 7 = 255 (one full 8-bit byte).
644
420110100100Decimal equivalent of rw-r--r-- file permissions.
755
493111101101Decimal equivalent of rwxr-xr-x permissions.
-0o52
-42-101010Minus sign placed before the optional 0o prefix.
400000000000000001
900719925474099310000000000000000000000000000000000000000000000000000154-bit value converted with exact BigInt precision.

Need to convert decimal back to octal? Open Decimal to Octal. Working directly with permission bits? Use Octal to Binary or Binary to Octal.

GOOD QUESTIONS

Before you convert.

Input limits and base-8 rules for octal-to-decimal conversion.

Why does entering 8 or 9 show an error?

Octal is base 8 and uses only digits 0 through 7. The quantity eight is written as 10 in octal.

Does the converter accept a 0o prefix?

Yes. Both 755 and 0o755 (or 0O755) return 493. Do not use a leading 0x or 0b prefix in octal mode.

Do leading zeros change an octal value here?

No. In octal mode, 0755 and 755 represent the same base-8 integer and both convert to 493.

Can I convert very long octal integers?

Yes. Up to 4,096 octal digits are supported with exact BigInt precision.