Skip to content
SoftwareSolutions.net
Calculators & Converters

Octal converter

Convert numbers between decimal, octal, binary and hexadecimal.

Try it

Ready

Inputs

Result

The result appears here as you type.

About Octal converter

An octal converter changes a number between decimal, octal, binary and hexadecimal. You type a value, choose the base it is written in, and the tool shows the same number in all four bases. Octal uses the digits 0 to 7, and it appears in older computer systems and in Unix file permissions, which are written as three octal digits.

Programmers and engineers move between bases constantly, because computers store data in binary and people write it in decimal or hexadecimal. Octal sits between those, and it is the natural base for some groupings of binary digits, such as three bits at a time.

How to use Octal converter

  1. Type the number you want to convert.
  2. Choose the base the number is written in: decimal, octal, binary or hexadecimal.
  3. Read the value in decimal, octal, binary and hexadecimal.
  4. Use the result in your code, notes or calculation.

How place values work

Each digit stands for a power of the base. In octal, the digits from right to left are worth 1, 8, 64, 512 and so on. The octal number 755 is 7 times 64, plus 5 times 8, plus 5, which equals 493 in decimal.

Binary uses only 0 and 1, so each octal digit corresponds to exactly three binary digits. The octal digit 7 is 111 in binary, which is why octal was once convenient for reading binary machine code.

Common uses

Unix and Linux file permissions use octal. The permission 755 means read, write and execute for the owner, and read and execute for the group and others. Each digit sets three bits.

Octal also appears in some older processors and in escape codes in certain programming languages. Check which base your context uses before you read a number, because 10 means different values in different bases.

Octal in everyday computing

Octal survived in computing because it packs binary digits neatly. Early machines with word sizes of twelve, twenty-four or thirty-six bits were easy to read in octal, since each group of three bits maps to one digit.

Today octal is mostly seen in file permissions, some character escapes and certain older hardware manuals. When you meet a number with a leading zero, check whether the author meant octal, because many programming languages read 010 as eight rather than ten.

Keep a short table of the common values in your notes. Knowing that octal 10 is eight and octal 100 is sixty-four makes it quicker to read permission codes and numeric escapes, and helps you catch conversion slips before they reach your code.

Check the base before you copy a value from documentation or another program. The same digits mean different numbers in different bases, and a single misread can change a permission or a memory address completely.

Frequently asked questions

Which digits are allowed in octal?

Only 0 to 7. The converter rejects 8 and 9 when the base is octal, and says which digits it expects.

Can the converter handle large numbers?

It handles numbers that a standard browser can represent exactly, which covers most everyday needs. Very large values may lose precision.

Why is hexadecimal written with letters?

Hexadecimal needs sixteen digits, so A to F stand for 10 to 15.

Related tools

Tools that pair well with this one.