Free forever · No sign-up

Octal to Decimal Converter

Convert any octal number to decimal instantly — with the full step-by-step working shown. Free, fast, no sign-up.

Last updated: October 2026

Your data stays in your browser.

Recent

No recent conversions yet.

How to convert octal to decimal

  1. Write down the octal number and number each digit's position from right to left, starting at 0.
  2. Multiply each digit (0-7) by 8 raised to the power of its position.
  3. Add all the results together — that's your decimal number.

Example: 175₈ = (1 × 8²) + (7 × 8¹) + (5 × 8⁰) = 64 + 56 + 5 = 125.

Background reading: the octal number system on Wikipedia.

Conversion table

Octal 0–17 (decimal 0–15) with the positional calculation, plus larger examples.

OctalDecimalCalculation
000₈ = 0×1 = 0
111₈ = 1×1 = 1
222₈ = 2×1 = 2
333₈ = 3×1 = 3
444₈ = 4×1 = 4
555₈ = 5×1 = 5
666₈ = 6×1 = 6
777₈ = 7×1 = 7
10810₈ = 1×8+0×1 = 8
11911₈ = 1×8+1×1 = 9
121012₈ = 1×8+2×1 = 10
131113₈ = 1×8+3×1 = 11
141214₈ = 1×8+4×1 = 12
151315₈ = 1×8+5×1 = 13
161416₈ = 1×8+6×1 = 14
171517₈ = 1×8+7×1 = 15
10064100₈ = 1×64 = 64
777511777₈ = 7×64 + 7×8 + 7 = 511

Powers of 8

PowerValue
801
818
8264
83512
844096
8532768

Octal to decimal in code

Python

int("17", 8)       # → 15

JavaScript

parseInt("17", 8);    // → 15

C

#include <stdio.h>
#include <stdlib.h>

int main(void) {
    long v = strtol("17", NULL, 8);
    printf("%ld\n", v);  /* → 15 */
    return 0;
}

Common values

  • 17₈ = 15
  • 10₈ = 8
  • 100₈ = 64
  • 777₈ = 511
  • 0₈ = 0
  • 20₈ = 16

Key takeaways

  • Each octal digit is worth 8× the digit to its right.
  • Digits allowed: 0–7 only; 8 and 9 never appear in octal.
  • 17₈ = 15, 100₈ = 64, 777₈ = 511.
  • Octal maps 1 digit ↔ 3 bits, which is why Unix permissions use it.

Frequently asked questions

How do I convert octal to decimal?

Multiply each octal digit by 8 raised to its position power (from 0 at the right) and sum the results. Or just use the converter above — it shows every step.

What is 17 in decimal?

17₈ = 15 in decimal.

Can this converter handle large octal numbers?

Yes — it supports octal numbers of any length with full precision.

What is 10 in octal in decimal?

10₈ = 8 in decimal.

What is 777 in decimal?

777₈ = 7×64 + 7×8 + 7 = 511.

Why is octal used?

Each octal digit maps to exactly three binary bits, so it was a compact shorthand for binary on early computers.

Do leading zeros matter in octal?

In some programming languages a leading 0 marks a number as octal (for example 017 = 15). The converter treats the input as octal regardless.

Need the reverse? Try our decimal to octal converter.

More converters