TOP

Free browser converter

Octal to Decimal Converter

Convert octal integers to exact decimal integers in your browser with explicit ASCII, Unicode code point, and UTF-8 byte handling.

No signupFree online conversion

Interactive tool

Convert octal integers to exact decimal integers

Ready

Mode and output format

Choose the exact representation you need; the tool does not guess an encoding.

Detailed conversion guide

How to Convert Octal to Decimal

Octal is base 8. Each position is a power of eight: 755 equals 7×64 + 5×8 + 5, producing decimal 493.

The converter uses BigInt rather than floating-point Number arithmetic, so long permission masks, packed values, and test vectors remain exact.

InputOutputMeaning
108one power of eight
1715two digits
177127ASCII boundary
755493Unix permission form

Octal to Decimal with BigInt

Validate digits 0-7, normalize an optional 0o prefix, then construct a BigInt and call toString(10). Never accept 8 or 9 as partial input.

// validate first, then convert
const value = Number.parseInt(token, radix);
if (!Number.isInteger(value)) throw new Error("Invalid input");

Octal Digits, Prefixes, and Large Values

A leading zero alone is not treated as an implicit language-specific octal marker. Use 0o when you want an explicit prefix.

Digits 8 and 9, negative signs, fractions, and prose are unsupported. Invalid input produces no partial decimal result.

Related converters

Choose the converter for the direction and representation you need.

Advertisement

Sponsored link