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.

Any reference to the number eight is a clue.

Source code

dCode retains ownership of the online 'Octal System (Base 8)' tool source code. Except explicit open source licence (indicated CC / Creative Commons / free), any algorithm, applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (PHP, Java, C#, Python, Javascript, Matlab, etc.) no data, script or API access will be for free, same for Octal System (Base 8) download for offline use on PC, tablet, iPhone or Android !

Need Help ?

Please, check our community Discord for help requests!