Tool to convert to octal base (base 8) or from octal base. Octal base is mostly used in computer science. Numbers written in octal system use numbers from 0 to 7.

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day! A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!

Tool to convert to octal base (base 8) or from octal base. Octal base is mostly used in computer science. Numbers written in octal system use numbers from 0 to 7.

Answers to Questions

How to write a number in base 8?

For complete explanations on how to convert from $ N_1 $ base to $ N_2 $ base, see the base-N conversion tool.

Example: $ 123 $ in base $ 10 $ (also noted $ 123_{(10)} $) is equal to $ 173 $ in base $ 8 $ (also noted $ 173_{(8)} $)

How to convert an octal number?

For complete explanations on how to convert from $ N_1 $ base to $ N_2 $ base, see the base-N conversion tool.

Example: $ 123 $ in base $ 8 $ (also noted $ 123_{(8)} $) is written $ 83 $ in base $ 10 $ (also noted $ 83_{(10)} $)

How to recognize octal numbers?

The octal numbers can not have a digit $ 8 $ or $ 9 $.

In computer science, it is usual to display an initial zero in front of an octal number to indicate that they are written in base-8.

Example: $ 12 $ in base $ 8 $ is sometimes written $ 012 $ to indicate that it is an octal number.

Source code

dCode retains ownership of the source code of the script Octal System (Base 8) online. Except explicit open source licence (indicated Creative Commons / free), any algorithm, applet, snippet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in any informatic langauge (PHP, Java, C#, Python, Javascript, Matlab, etc.) which dCode owns rights will not be given for free. To download the online Octal System (Base 8) script for offline use on PC, iPhone or Android, ask for price quote on contact page !