ToolNimba
๐Ÿ“ Unit Converters

What Is the Octal Number System?

Shihab Mia By Shihab Mia July 18, 2026 8 min read

Base 8 octal digits grouped into sets of three glowing binary bits flowing through an abstract circuit

Quick answer

The octal number system is a base 8 system that uses only the digits 0 to 7. Each octal digit stands for exactly 3 binary bits, so it groups binary neatly. To read an octal value in decimal, multiply each digit by a power of 8 (1, 8, 64, 512 from the right) and add. For example, octal 377 equals 3 times 64 plus 7 times 8 plus 7 times 1, which is 255.

We count in base 10 because we have ten fingers, so ten digits (0 through 9) feels natural. Computers, though, are built from switches that are either on or off, which is base 2, or binary. Octal sits in between as a compact shorthand for binary. Instead of writing long strings of ones and zeros, engineers group the bits three at a time and write each group as a single digit from 0 to 7. This guide explains what base 8 means, how to convert it by hand with real numbers, and where you still meet octal today.

What "base 8" actually means

A number system's base (or radix) is simply how many unique digits it uses before it has to roll over into a new column. Base 10 uses ten digits and rolls over at 10. Base 8 uses eight digits, 0, 1, 2, 3, 4, 5, 6, and 7, and rolls over at 8. There is no digit "8" or "9" in octal, the same way there is no single digit for "ten" in decimal. After 7, the next octal number is 10, which means "one eight and zero ones."

The magic of any positional system is place value. In decimal, each column is a power of 10. In octal, each column is a power of 8. Reading from the right, the columns are worth 1, 8, 64, 512, 4096, and so on. Knowing these four numbers on the right (1, 8, 64, 512) is enough for almost every octal value you will meet in practice.

Octal place values compared with decimal

Column (from right)PowerOctal valueDecimal value
1st8 to the 011
2nd8 to the 1108
3rd8 to the 210064
4th8 to the 31000512
5th8 to the 4100004096

So the octal number 100 is not one hundred. It is one lot of 64, which is decimal 64. This is why context matters: the string "100" means totally different amounts in base 10, base 8, and base 2. To avoid confusion, programmers often prefix octal with a leading zero or "0o", so 0o100 clearly signals base 8.

Why octal groups binary so neatly

Here is the single most useful fact about octal: one octal digit equals exactly three binary bits. That is because 2 to the power of 3 is 8, so three bits can count from 000 to 111, which is exactly 0 to 7, the full range of one octal digit. Nothing is wasted and nothing overflows, which makes the two systems slot together perfectly.

This means converting between binary and octal is almost effortless once you know the small table below. You just chop the binary number into groups of three bits, starting from the right, and translate each group. If you like seeing bits laid out, our guide on how to read binary code walks through the same on-off logic that octal compresses.

The complete octal-to-binary map (only eight rows to learn)

Octal digit3-bit binaryDecimal
00000
10011
20102
30113
41004
51015
61106
71117

Example: the binary number 11111111 (an 8-bit byte, all ones) splits from the right into 11, 111, 111. Pad the leftmost group to 011, and you get 011 111 111, which reads as octal 377. That same byte is 255 in decimal, which is why octal 377 keeps showing up whenever a full byte is involved.

How to convert octal to decimal, step by step

Converting octal to decimal is just place value plus addition. Let us convert octal 377 by hand so the method is crystal clear. Line up each digit with its column value, multiply, and add the results.

  1. Write the digits and their column values from the right: 7 is in the ones column (1), the middle 7 is in the eights column (8), and 3 is in the sixty-fours column (64).
  2. Multiply the leftmost digit: 3 times 64 equals 192.
  3. Multiply the middle digit: 7 times 8 equals 56.
  4. Multiply the rightmost digit: 7 times 1 equals 7.
  5. Add them together: 192 plus 56 plus 7 equals 255.
  6. So octal 377 equals decimal 255.

The same recipe works for any octal value: multiply each digit by its power of 8 and sum the pieces. Try octal 12: that is (1 times 8) plus (2 times 1), which equals 10 in decimal. If you would rather skip the arithmetic, the converter near the end of this guide does it instantly and shows the working so you can check each step.

Going the other way

To convert decimal to octal, repeatedly divide by 8 and collect the remainders from bottom to top. For 255: 255 divided by 8 is 31 remainder 7, then 31 divided by 8 is 3 remainder 7, then 3 divided by 8 is 0 remainder 3. Reading the remainders upward gives 377.

Where octal is still used: Unix file permissions

Octal's most famous modern home is Unix and Linux file permissions. When you run a command like chmod 755, each of those three digits is an octal number describing what one group of users may do with a file. The three digit positions stand for the owner, the group, and everyone else, in that order.

Within each digit, three permission bits are packed together, which is exactly why octal fits so well: three bits make one octal digit. The bits are read (worth 4), write (worth 2), and execute (worth 1). Add up the ones you want to grant, and you get a single digit from 0 to 7.

  • 7 = 4 plus 2 plus 1 = read, write, and execute (full control).
  • 5 = 4 plus 1 = read and execute, but no writing.
  • 6 = 4 plus 2 = read and write, but no executing.
  • 0 = no permissions at all.

So chmod 755 means: the owner gets 7 (read, write, execute), while the group gets 5 (read and execute) and everyone else also gets 5. That is the classic setting for a program or script that the owner maintains but everyone is allowed to run. A private file might be chmod 600, giving the owner read and write while shutting out everyone else entirely.

Octal vs decimal, binary, and hexadecimal

Octal is one of four bases you will keep bumping into around computing. Each has a job. Decimal is for humans, binary is what the hardware truly uses, octal packs binary into groups of three, and hexadecimal packs it into groups of four. Because a byte is 8 bits, hex (two groups of four) lines up with byte boundaries more cleanly, which is why hexadecimal has largely overtaken octal for memory and color codes.

The same values written in four number systems

DecimalBinaryOctalHex
81000108
64100000010040
100110010014464
25511111111377FF

Notice how decimal 255 is a tidy 377 in octal but a two-character FF in hex. Both are shorter than the eight-bit binary, but hex maps onto a byte in exactly two digits, which is one big reason it won the popularity contest for low-level work. Octal survives mainly where its three-bit grouping is genuinely convenient, like permission bits.

Common mistakes and good-to-know facts

  • Using an 8 or 9. Octal only goes up to 7. If you ever see an 8 or 9 in a supposedly octal number, it is not valid octal.
  • Forgetting the leading-zero trap. In many programming languages (C, Java, older JavaScript), a number written with a leading zero like 011 is treated as octal, so 011 equals 9, not 11. This has caused real bugs.
  • Reading permissions in the wrong order. The three chmod digits are always owner, then group, then others. Swapping them can accidentally expose a file to everyone.
  • Confusing bases. The string 100 is decimal 100, octal 64, or binary 4 depending on the base. Always note which system you are in.
  • Good to know: octal was popular on early computers like the PDP-8 because their word sizes were multiples of three bits, which made octal a natural fit before 8-bit bytes became the standard.

If base conversions are new to you, it helps to practice alongside related skills like converting binary to decimal, since the underlying place-value idea is identical, only the base changes.

Convert octal to decimal instantly

Once you understand the place-value method, there is no need to do the multiplication by hand every time. Paste any octal value below and get the decimal answer at once, with the working shown so you can double-check yourself.

๐Ÿ”Ÿ Try the free tool Octal to Decimal Converter Free octal to decimal converter: type any base 8 number to get the decimal value instantly, plus a positional breakdown, digit count, and the hex and binary equivalents.

The octal number system is a compact, tidy way to represent binary in groups of three bits. It uses the digits 0 to 7, each column is a power of 8, and converting to decimal is just multiply-and-add: octal 377 is 3 times 64 plus 7 times 8 plus 7 times 1, which equals 255. While hexadecimal has taken over most low-level work, octal is far from dead. Every time someone types chmod 755, they are speaking base 8, and understanding it turns those three little digits from a mystery into something you can read at a glance.

Frequently asked questions

What is the octal number system in simple terms?

Octal is a base 8 number system that uses only the digits 0 to 7. Each column is worth a power of 8 (1, 8, 64, 512 from the right). It is popular because one octal digit represents exactly three binary bits, making it a compact shorthand for binary numbers.

How do you convert octal to decimal?

Multiply each octal digit by its place value (a power of 8) and add the results. For octal 377, that is 3 times 64 plus 7 times 8 plus 7 times 1, which equals 255. Work from the right using the column values 1, 8, 64, and 512.

Why does octal only go up to 7?

Because octal is base 8, and any base uses digits from 0 up to one less than the base. Base 8 therefore uses 0 through 7. After 7, the number rolls over to 10, which means one eight and zero ones. There is no single digit for 8 or 9 in octal.

What does chmod 755 mean in octal?

Each digit is an octal permission for owner, group, and others. Read is worth 4, write 2, and execute 1. So 7 grants read, write, and execute, while 5 grants read and execute. Chmod 755 gives the owner full control and lets the group and everyone else read and run the file.

Is octal still used today?

Yes, though less than before. Its main modern use is Unix and Linux file permissions through chmod. It also appears as escape codes in some programming languages. For most low-level work, hexadecimal has replaced octal because it maps onto 8-bit bytes in exactly two digits.

What is the difference between octal and hexadecimal?

Octal is base 8 and groups binary into sets of three bits, while hexadecimal is base 16 and groups binary into sets of four bits. Because a byte is eight bits, hex fits a byte in two neat digits, whereas octal needs three, which is why hex is more common for memory and colors.

Tools used in this guide

Keep reading