Octal to Decimal

Octal to Decimal

Convert base-eight integers to exact decimal digits.

Try this example

Convert the example with its 0o prefix and check that the decimal result ends in 993.

0o400000000000000001

Expected result

9007199254740993

Octal accepts 0–7. An 8 or 9 is an error, even if the rest of the input is valid.

Related walkthrough · Prepare a safe test copy before using an online tool

Cookie
We care about your data and would love to use cookies to improve your experience.

Learn how we use cookies