Octal to Decimal Converter

Convert a base-8 octal number to base-10 decimal. Enter an octal integer to get the exact decimal result, plus binary and hexadecimal equivalents.

Only the digits 0-7 are valid, without a 0o prefix. Any length is supported.

What is Octal to Decimal Conversion?

Octal to decimal conversion changes a base-8 number (octal) into its base-10 equivalent (decimal). Octal uses eight digit symbols, 0 through 7, while decimal uses ten, 0 through 9. This conversion comes up most often when reading Unix/Linux file permissions, since chmod values such as 755 or 644 are written in octal.

For example, octal 52 equals decimal 42: 5×8¹ + 2×8⁰ = 5×8 + 2×1 = 40 + 2 = 42. For the reverse operation, see the Octal to Binary Converter. For the related base-16 conversion, see Hex to Decimal. Want to learn how to convert octal to decimal manually? Read the full step-by-step guide.

How to Convert Octal to Decimal Manually

The standard manual method uses base-8 positional notation:

Positional notation method

  1. Step 1: Write down the octal number and assign each digit a position, counting from 0 at the rightmost digit.
  2. Step 2: Each octal digit (0-7) is already its own decimal value — no digit substitution is needed, unlike hexadecimal.
  3. Step 3: Multiply each digit by 8 raised to its position.
  4. Step 4: Add all the resulting values together.

Worked example: convert 52 to decimal

52₈

Position:   1   0
Octal digit: 5   2

5 × 8¹ = 5 × 8 = 40
2 × 8⁰ = 2 × 1 = 2

40 + 2 = 42

Result: 52₈ = 42₁₀

Manual multiplication works for short octal strings, but it is easy to make an arithmetic error on longer numbers — the converter above returns the exact result for any size of input.

Octal Digit Reference (0-7)

Octal is base 8, so each digit position can hold eight possible values, 0 through 7. Unlike hexadecimal, octal never needs letters — every digit already matches its decimal value.

OctalDecimal
00
11
22
33
44
55
66
77

Octal to Decimal Conversion Table

A quick reference for common octal values and their decimal equivalent:

OctalDecimal
00
11
77
108
1715
2016
5242
7763
10064
377255
777511
1000512

Octal to Decimal in Unix/Linux File Permissions

The most common practical use of this conversion is reading chmod permission values. Each of the three octal digits covers owner, group, and others, where the bits stand for read (4), write (2), and execute (1):

chmod 755 = 7×64 + 5×8 + 5×1 = 448 + 40 + 5 = 493 (rwxr-xr-x)
chmod 644 = 6×64 + 4×8 + 4×1 = 384 + 32 + 4 = 420 (rw-r--r--)
chmod 777 = 7×64 + 7×8 + 7×1 = 448 + 56 + 7 = 511 (rwxrwxrwx)

Where Octal to Decimal Conversion Is Used

  • Unix/Linux permissions: converting chmod values to decimal to understand their numeric size or compare them programmatically.
  • System programming: some APIs and system calls expect a decimal value even when documentation states it in octal.
  • Legacy systems: older computer architectures and file formats sometimes use octal notation that needs decimal interpretation.
  • Computer science education: octal-to-decimal conversion is a standard example for teaching positional number systems.

For the related base-2 conversion, see the Octal to Binary Converter.

Negative Numbers and Two's Complement

This converter accepts octal integers without a sign. Simply writing a minus sign in front of an octal string (for example, -17) isn't how computers represent negative numbers, and it isn't a fixed, unambiguous format on its own.

Machines represent negative numbers using two's complement, which requires choosing a fixed bit width (such as 8, 16, or 32 bits) before the value's sign can be determined. Use the Two's Complement Calculator to interpret a signed value at a specific bit width.

Frequently Asked Questions

How do I convert octal 755 to decimal?

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

What is octal 7 in decimal?

Octal 7 equals decimal 7. Single-digit octal numbers (0-7) always have the same decimal value.

Is octal 10 equal to decimal 10?

No. Octal 10 equals decimal 8: 1×8¹ + 0×8⁰ = 8 + 0 = 8.

What does chmod 644 mean in decimal?

Octal 644 equals decimal 420. This represents rw-r--r-- permissions (owner: read+write, group: read, others: read).

Can I enter octal numbers with a leading zero?

Yes — 0755 and 755 convert to the same value. Leading zeros don't change the value, though they conventionally mark a number as octal in code.

Do I need to include the 0o prefix?

No — enter the octal digits directly (e.g., 755 instead of 0o755). Input with a 0o prefix is rejected with a message rather than silently stripped.

What happens if I enter 8 or 9?

The converter shows an error, since octal only uses the digits 0-7. There is no digit substitution the way hexadecimal uses letters.

Can I convert negative octal values?

Not directly here. Negative numbers need a fixed bit width and a signed format such as two's complement — use the Two's Complement Calculator for that.

What's the largest octal value I can convert?

There is no fixed size limit. Conversion uses BigInt arithmetic built directly from the validated octal string, so arbitrarily long octal numbers convert exactly rather than losing precision — unlike JavaScript's native Number type, which becomes inexact beyond 2^53 - 1 (9,007,199,254,740,991).