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 · Check JSON and export a reliable CSV


Avatar

DTool Team

Product Team

We build simple, reliable browser tools that make everyday digital work faster.

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

Learn how we use cookies