Octal to Decimal Converter

Convert base-8 octal numbers to base-10 decimal

Convert octal (base-8) integers to decimal (base-10) using exact positional expansion. Each digit is multiplied by its power of 8 and summed, with the full term breakdown shown. Runs entirely in your browser. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

How does octal convert to decimal?

Octal is base 8, so each digit's value is the digit multiplied by 8 raised to the power of its position, counting from zero at the rightmost digit. Summing all those terms gives the decimal value.

Converting octal to decimal is a frequent need for anyone working with Unix file permissions, older computing systems or low-level data, since octal packs neatly into groups of three bits. This converter evaluates a base-8 number positionally and shows the full working so you can follow the math.

How it works

Octal is a base-8 positional system using the digits 0 through 7. The value of a number is the sum of each digit multiplied by 8 raised to the power of that digit’s position, where positions are counted from zero starting at the rightmost digit. So the rightmost digit is multiplied by 8 to the power 0 (which is 1), the next by 8 to the power 1 (which is 8), the next by 64, and so on.

The tool walks the string from right to left, computes each digit’s place value as a power of 8, multiplies, and accumulates the total using exact big-integer arithmetic.

Powers of 8 reference

PositionPower of 8Decimal value
0 (rightmost)8⁰1
18
264
3512
48⁴4,096
58⁵32,768

Unix permission example

The most common real-world use of octal: Unix file permission modes from chmod. Each octal digit encodes three bits for one of the permission triplets — owner, group, others — where 4 = read, 2 = write, 1 = execute.

For example, convert the permission mode 755:

7 × 8² + 5 × 8¹ + 5 × 8⁰
= 7 × 64 + 5 × 8 + 5 × 1
= 448 + 40 + 5
= 493

So octal 755 is decimal 493. In permission terms, 7 = rwx (owner), 5 = r-x (group), 5 = r-x (others) — typical for executable programs.

Another common mode: 644 (files that should be readable but not executable):

6 × 64 + 4 × 8 + 4 × 1 = 384 + 32 + 4 = 420

Octal 644 is decimal 420, meaning rw-r--r--.

Additional examples

OctalDecimalCommon meaning
00No permissions
77Full permissions for one role
108Execute bit in the next group
1715(combine)
777511Full permissions for everyone

Tips

If you enter a digit of 8 or 9 the tool flags an error, since those are not valid octal digits — only 0 through 7 exist in base-8. For large octal strings (like 64-bit addresses printed in octal by some debuggers), the converter uses exact big-integer arithmetic so no rounding occurs. All processing runs locally in your browser; nothing leaves your device.