Octal to Decimal

Convert octal to decimal.

See a permission code like 755 or a legacy system value written in octal and want to know what it actually means numerically? This tool converts octal (base-8) numbers into ordinary decimal.

Base-8, inherited from a specific era of computer architecture

Octal's continued relevance today is mostly a historical echo of computing's early decades, when several influential systems used word lengths (like 12-bit or 36-bit architectures common in 1960s mainframes and minicomputers) that divided evenly by octal's 3-bit grouping. As the industry standardized on the 8-bit byte through the 1970s, hexadecimal's 4-bit grouping became the more natural fit, and octal receded into a smaller set of specific, persistent use cases rather than disappearing entirely.

How the conversion is calculated

Each octal digit (0 through 7 only — octal has no digits equivalent to hex's A-F) is multiplied by 8 raised to the power of its position, counting from the right starting at 0, and the results are summed. For example, octal 17 converts as (1 × 8^1) + (7 × 8^0) = 8 + 7 = 15 in decimal.

Where you'll actually need to read octal

  • Interpreting Unix/Linux file permissions — understanding exactly what a permission code like 644 or 755 grants requires converting each octal digit into its underlying read/write/execute binary meaning.
  • Debugging legacy code — older systems, embedded firmware or historical codebases occasionally embed octal-formatted numeric literals that need decoding to understand their actual decimal value.
  • Networking and low-level systems programming — some system calls, protocol specifications and configuration files still express values in octal, a legacy convention that persists in specific corners of Unix-derived systems.
  • Computer science coursework — octal-to-decimal conversion exercises are a standard way to reinforce the general concept of positional notation across different number bases.

Frequently asked questions

What does chmod 755 actually mean in decimal terms? Breaking each digit down: 7 (owner: read+write+execute = 4+2+1) grants full access, while 5 (group and other: read+execute = 4+1) grants read and execute but not write — the octal digits directly encode these binary permission flags.

Can octal represent negative numbers? Not inherently — like binary, negative octal values typically rely on a broader system-level convention (such as two's complement at the underlying binary level) rather than the octal notation itself carrying sign information.

Why does octal only use digits 0-7? Because base-8 has exactly eight possible digit values (0 through 7) — the same logic that limits decimal to digits 0-9 and hexadecimal to 0-9 plus A-F, just scaled to a different base.

Further reading

  • Wikipedia — OctalFull explanation of base-8 notation and its historical computing context.
  • Wikipedia — ChmodThe Unix permission command that remains octal's most common everyday application.