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.
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
- Step 1: Write down the octal number and assign each digit a position, counting from 0 at the rightmost digit.
- Step 2: Each octal digit (0-7) is already its own decimal value — no digit substitution is needed, unlike hexadecimal.
- Step 3: Multiply each digit by 8 raised to its position.
- 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.
| Octal | Decimal |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 2 | 2 |
| 3 | 3 |
| 4 | 4 |
| 5 | 5 |
| 6 | 6 |
| 7 | 7 |
Octal to Decimal Conversion Table
A quick reference for common octal values and their decimal equivalent:
| Octal | Decimal |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 7 | 7 |
| 10 | 8 |
| 17 | 15 |
| 20 | 16 |
| 52 | 42 |
| 77 | 63 |
| 100 | 64 |
| 377 | 255 |
| 777 | 511 |
| 1000 | 512 |
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):
Where Octal to Decimal Conversion Is Used
- Unix/Linux permissions: converting
chmodvalues 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.
Related Converters
Octal to Binary
Convert octal numbers to binary — see the 3-bit-per-digit mapping.
Binary to Octal
Convert binary numbers to octal notation.
Binary to Decimal
Convert binary numbers to decimal notation.
Hex to Decimal
Convert hexadecimal numbers to decimal notation.
Two's Complement Calculator
Represent negative numbers in binary or hex at a fixed bit width.
Binary Calculator
Add, subtract, multiply, and divide binary numbers.
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).
Related Tools
You might also find these tools useful
Base Converter
Convert whole numbers between binary, octal, decimal, hex, and custom bases 2-36 in one hub.
Binary Converter
Convert text, UTF-8 bytes, and binary values without focusing only on readable messages.
Binary Calculator
Add, subtract, multiply, and divide binary numbers for math and computer science exercises.
Binary to Decimal
Turn base-2 numbers into decimal values for programming, networking, and study notes.
Binary to HEX
Compress long binary strings into hexadecimal groups for code, memory, and color checks.
Decimal to Binary
Convert everyday base-10 numbers into binary with clear fixed-width output.