Skip to content

Octal to Decimal Converter

Convert octal (base 8) numbers into decimal, one value or many at once.

Runs in your browser Free, no sign-up
Loading tool workspace...

What is Octal to Decimal Converter?

This octal to decimal converter and calculator turns base-8 numbers into ordinary decimal integers. Each octal position is a power of 8, so 755 is 7×64 + 5×8 + 5 = 493 and 644 is 6×64 + 4×8 + 4 = 420.

You meet octal in Unix and Linux file permissions, in C and Python octal literals (0755, 0o755), and in number-base exercises. Enter one octal number or several separated by spaces or commas, and each is converted instantly, with a summary in binary and hex for a single value.

How to use Octal to Decimal Converter

  1. Enter octal numbers separated by spaces or commas, for example 755 644 17; a 0o prefix is fine.
  2. Read the decimal results.
  3. For a single value, check its binary and hex forms in the summary.
  4. Copy the result, or click Swap to convert decimal to octal.

Key features

  • Convert many values at once, separated by spaces or commas
  • Exact results for numbers of any size, including 64-bit values
  • Output separated by spaces, commas, new lines or nothing
  • Uppercase or lowercase hex, optional 0x prefix, and binary padded to whole 8-bit bytes
  • Swap button to reverse the conversion direction
  • Summary of a single value in binary, octal, decimal, hex and ASCII
  • Clear errors for invalid digits; runs entirely in your browser

Common use cases

  • Converting chmod permission codes to decimal for APIs (such as Node.js fs.chmod)
  • Reading octal literals in C, Python and shell scripts
  • Learning number base conversions
  • Checking homework and exam answers
  • Interpreting octal values in legacy documentation

Technical details & standards

Multiply each digit by 8 raised to its position, counting from 0 on the right, and add the results: 17 = 1×8 + 7 = 15, and 100 = 64. Octal digits only run from 0 to 7, so an 8 or 9 in the input is reported as an error.

Each value is converted as a whole number, exactly at any size. In JavaScript, parseInt("755", 8) does the same conversion; note that in some older languages and shells a leading 0 marks a number as octal, which explains why 010 can unexpectedly equal 8.

Octal to decimal conversion table

Octal numbers you are likely to meet and the place-value sum behind each decimal result. From the right, octal places are worth 1, 8, 64 and 512.

OctalDecimalPlace valuesWhere you see it
777The highest digit; 8 and 9 do not exist in base 8
1081×8 + 0One eight and no units
16141×8 + 6Looks like sixteen, but is fourteen
17151×8 + 7The last value before octal 20
20162×8 + 0Two eights
77637×8 + 7Both digits at their maximum
100641×64 + 0×8 + 08 squared
6444206×64 + 4×8 + 4chmod mode for ordinary files
7554937×64 + 5×8 + 5chmod mode for scripts and directories
7775117×64 + 7×8 + 7All nine permission bits set

Frequently asked questions

How do I convert octal to decimal?

Multiply each digit by its power of 8 and add them up. 64 in octal is 6×8 + 4 = 52.

What is 755 in decimal?

493: 7×64 + 5×8 + 5. Similarly 644 is 420 and 777 is 511.

What is 10 in octal as a decimal number?

8. In base 8, 10 means one eight and no units.

Why does 010 equal 8 in some languages?

In C and older JavaScript, a leading zero marks an octal literal, so 010 is octal for eight. Modern JavaScript and Python use the explicit 0o prefix (0o10) to avoid the confusion.

What is the octal to decimal formula?

decimal = dₙ×8ⁿ + … + d₁×8¹ + d₀×8⁰, where each digit d is 0–7 and positions count from 0 on the right. For 644: 6×64 + 4×8 + 4×1 = 420.

What is 538 in octal as a decimal number?

538 is not a valid octal number, because octal only uses the digits 0 to 7, so this converter reports an error. Watch out in code: Python's int("538", 8) raises an error, but JavaScript's parseInt("538", 8) quietly stops at the 8 and returns 43, the value of octal 53.

More converters tools

View all