Octal to Decimal Converter

Convert a octal (base 8) number to decimal (base 10) instantly. As an example, 377 = 255. It runs entirely in your browser.

BaseThis number
Binary (base 2)
Octal (base 8)
Decimal (base 10)
Hexadecimal (base 16)

How to convert octal to decimal

Each digit of a octal number carries a weight that is a power of 8. Multiply every digit by 8 raised to its position (counting from 0 on the right) and add the results to get the decimal value:

3 × 8^2 + 7 × 8^1 + 7 × 8^0 = 255

Worked example: 377 in decimal

Reading 377 as base 8: 3 × 82 (= 192) + 7 × 81 (= 56) + 7 × 80 (= 7) = 255 in decimal, which is 255 in decimal.

More octal-to-decimal examples: 12 = 10, 20 = 16, 100 = 64.

Binary, octal, decimal & hexadecimal reference table

DecimalBinaryOctalHex
1111
21022
410044
81000108
10101012A
15111117F
16100002010
321000004020
64100000010040
100110010014464
1281000000020080
25511111111377FF
256100000000400100
1024100000000002000400

About octal and decimal

Octal: Octal is base-8, using digits 0–7. Each octal digit maps to exactly three bits, which is why it appears in Unix file-permission modes such as 755.

Decimal: Decimal is base-10, the everyday number system using digits 0–9.

Frequently asked questions

What is 377 octal in decimal?
377 in octal (base 8) equals 255 in decimal (base 10), which is 255 in decimal.
How do I convert octal to decimal by hand?
Multiply each octal digit by 8 raised to its position (starting at 0 on the right) and add the results. For 377: 3×8^2 + 7×8^1 + 7×8^0 = 255.
Is this exact for very large numbers?
Yes. The converter uses big-integer (BigInt) arithmetic in your browser, so even very long octal values convert to decimal with no rounding or precision loss.
Which characters are valid in octal?
Base-8 octal uses the digits 0–7. Spaces, underscores and an optional 0x/0b/0o prefix are ignored; any other character is flagged as invalid.

Related number conversions

See all number-base conversions →