Binary to Decimal Converter

Convert binary numbers (0s and 1s) to decimal with our step-by-step calculator. Learn the positional value method, see detailed examples, and understand how computers store numbers.

Calculation Steps

Understanding Octal to Decimal Conversion

Octal to decimal conversion translates octal numbers (base-8) into the decimal numbers (base-10) we use every day. Since octal uses digits 0-7 and decimal uses 0-9, the conversion helps us understand what an octal number represents in our familiar number system.

Octal is a positional number system, just like decimal. But instead of each position representing a power of 10 (1, 10, 100, 1000...), each position represents a power of 8 (1, 8, 64, 512...). The rightmost position is 8⁰ (1), next is 8¹ (8), then 8² (64), then 8³ (512), and so on.

Octal position values: ... 512 64 8 1

To convert octal to decimal, you multiply each digit by its position value and add up the results. This is called the positional value method.

Step-by-Step Conversion Method

Here's exactly how to convert octal to decimal using the positional value method:

  1. Write down the octal number - For example, 562
  2. Number the positions from right to left - Start with 0 on the right
  3. Multiply each digit by 8 raised to its position - Use 8⁰, 8¹, 8², etc.
  4. Add up all the results - The sum is the decimal equivalent

Complete example: Convert 562 to decimal

Step 1: Octal number - 562

Step 2: Number the positions

Digits: 5 6 2

Position: 2 1 0 (from right to left)

Step 3: Multiply each digit

Position 0: 2 × 8⁰ = 2 × 1 = 2

Position 1: 6 × 8¹ = 6 × 8 = 48

Position 2: 5 × 8² = 5 × 64 = 320

Step 4: Add them up

2 + 48 + 320 = 370

Result: 562 in octal = 370 in decimal

Our converter shows you these steps for any octal number you enter, making it easy to learn and verify your calculations.

Why Convert Octal to Decimal?

Converting octal to decimal helps in several practical situations:

While octal isn't as common as it once was, knowing how to convert it to decimal is still a useful skill, especially for system administrators and programmers.

Common Octal to Decimal Conversions

Here are important octal numbers and their decimal equivalents:

OctalDecimalWhat It Represents
00Zero
11One
77Seven (largest single octal digit)
108Eight (first "carry" in octal)
2016Sixteen
4032Thirty-two
10064Sixty-four (8²)
200128One hundred twenty-eight
400256Two hundred fifty-six
777511Five hundred eleven (all digits at maximum)
1000512Five hundred twelve (8³)
17771023One thousand twenty-three
20001024One thousand twenty-four (important computer number)

Try converting these octal numbers using our converter to practice and verify the results!

Unix File Permissions in Decimal

One practical application of octal to decimal conversion is understanding Unix file permissions in decimal context. File permissions like 755, 644, or 777 are octal numbers that have decimal equivalents:

Common Unix permissions and their decimal values:

755 (octal) = 7×64 + 5×8 + 5 = 448 + 40 + 5 = 493 (decimal)

rwxr-xr-x (read, write, execute for owner; read and execute for group and others)

644 (octal) = 6×64 + 4×8 + 4 = 384 + 32 + 4 = 420 (decimal)

rw-r--r-- (read and write for owner; read only for group and others)

777 (octal) = 7×64 + 7×8 + 7 = 448 + 56 + 7 = 511 (decimal)

rwxrwxrwx (everyone can read, write, and execute)

When you see these decimal values in other contexts (like in certain programming interfaces or configuration files), you now know they correspond to familiar octal file permissions.

Powers of 8 Reference Table

Converting octal to decimal requires knowing powers of 8. Here's a reference table:

Power8ⁿDecimal ValuePosition Name
8⁰11Ones place
88Eights place
6464Sixty-fours place
512512Five-hundred-twelves place
8⁴40964,096Four-thousand-ninety-sixes place
8⁵3276832,768Thirty-two-thousand-seven-hundred-sixty-eights place
8⁶262144262,144Two-hundred-sixty-two-thousand-one-hundred-forty-fours place

For most practical purposes, you only need to remember 1, 8, 64, and 512. You can calculate higher powers as needed.

Alternative Method: Via Binary

Another way to convert octal to decimal is through binary as an intermediate step. This method can be easier for some people:

  1. Convert octal to binary - Expand each octal digit to 3 binary bits
  2. Convert binary to decimal - Use the binary positional values (powers of 2)

Example: Convert 347 to decimal via binary

Step 1: Octal to binary

3 = 011, 4 = 100, 7 = 111

347 (octal) = 011100111 (binary)

Step 2: Binary to decimal

Binary: 0 1 1 1 0 0 1 1 1

Position values: 256 128 64 32 16 8 4 2 1

Calculation: 0×256 + 1×128 + 1×64 + 1×32 + 0×16 + 0×8 + 1×4 + 1×2 + 1×1

= 0 + 128 + 64 + 32 + 0 + 0 + 4 + 2 + 1 = 231

Result: 231 (same as direct conversion)

Both methods give the same result. Use whichever method you find easier!

Tips for Octal to Decimal Conversion

Here are tips to make octal to decimal conversion easier:

With practice, you'll be able to convert small octal numbers to decimal in your head!