Omni Calculator logo

Decimal to Octal Converter

Created by Purnima Singh, PhD
Reviewed by Steven Wooding
Last updated: Jan 18, 2024

Omni's decimal to octal converter allows you to convert numbers between the decimal and octal number systems.

Continue reading this article to know what an octal number system is and how to convert octal to decimal number systems and vice-versa. You will also see some examples of octal to decimal conversion and learn about the use of octal number systems.

Let us first try to understand what the octal number system is.

Decimal and octal number systems

You must be well familiar with the decimal number system. After all, we have been using it since we first started learning to count. But have you noticed that each position in a decimal number system can be expressed as a power of 1010? For example, we can write 1313 as:

13=1×101+3×10013 = 1 \times 10^1 + 3 \times 10^0

Hence, we can also say that the base of the decimal number system is 1010 and it contains ten unique symbols from 00 to 99.

The octal number system has 88 as its base. We can express each place as a power of 88. The digits of an octal number can be a number between 00 and 77. Examples of numbers in the octal system are (321)8(321)_8, (10)8(10)_8, etc.

We can express these numbers as:

(321)8=3×82+2×81+1×80(321)_8 = 3 \times 8^2 + 2 \times 8^1 + 1 \times 8^0

(10)8=1×81+0×80(10)_8 = 1 \times 8^1 + 0 \times 8^0

In the following sections, we will see how we can convert a number from decimal to the octal system and vice-versa.

🙋 If you want to learn how to convert decimal numbers to binary or hexadecimal numbers, we recommend checking out our binary converter and decimal to hexadecimal converter.

How to convert decimal to octal

To convert a number from the decimal system to the octal system, we will use a very simple approach:

  1. Divide the number by 88.

  2. Take note of the remainder. It can be any number between 00 to 77. This number will be the last digit of the octal number, i.e., the rightmost digit.

  3. Use the quotient from step 1 as your new initial number.

  4. Repeat steps 1-3, and keep adding the remainder to the left of the previously obtained digits.

Let us understand this using an example. We will convert the number (6521)10(6521)_{10} to octal representation:

  1. Divide by 88, i.e., 6521/8=8156521/8 = 815, remainder is 11.
  2. Now, we will use the quotient from step 1, i.e., 815815 as the new number, and repeat step 1.
  3. We will continue repeating the above steps until we get 00 as the quotient. The results are shown in the table below.



















Reading upwards, i.e., from bottom to top, the number (6521)10(6521)_{10} is (14571)8(14571)_8 in octal representation.

How to convert octal to decimal

If you have understood how to convert decimal to octal, then you must have realized by now how we can go the other way, i.e., convert a number from the octal to decimal system. Just reverse the algorithm explained above:

  1. Start with the last digit (i.e., the rightmost one) and count the positions of digits as 0, 1, 2, 3, .... We will denote the digit at position 0 as D0D_0, position 1 as D1D_1, ..., and so on.

  2. Now use the following algorithm to get the number (N10N_{10}) in the decimal system:
    N10=D0(80)+D1(81)+D2(82)+...N_{10}= D_0(8^0) + D_1(8^1) + D_2(8^2) + ...

For example, let us convert (3241)8(3241)_8 to decimal.

  1. First, we will count the position of each digit starting from the last one.






Position #





  1. Now using the algorithm,
    N10=D0(80)+D1(81)+D2(82)+D3(83)N_{10}= D_0(8^0) + D_1(8^1) + D_2(8^2) + D_3(8^3)

    we will get:

    N10=1×(80)+4×(81)+2×(82)+3×(83)N_{10}= 1\times(8^0) + 4\times(8^1) + 2\times(8^2) + 3\times(8^3)

    N10=1697N_{10} = 1697

Hence, the number 32413241 corresponds to (1697)10(1697)_{10} in the decimal representation.

You can also check our binary to octal converter to convert between binary and octal numbers.

How to use the decimal to octal converter

Now let us see how we can use our decimal to octal converter to solve the same octal to decimal conversion examples:

  1. Using the drop-down menu, choose the option decimal to octal.

  2. Type the number you want to convert, i.e., 6521.

  3. The tool will display the result in the octal number system, i.e., 14571.

  4. You can also convert octal to decimal by choosing it as the option.


What is the base of octal number system?

The base of the octal number system is 8. That means that it has eight possible symbols (or digits) from 0 to 7. There are no 8's or 9's in the octal number system.

What are the applications of octal number system?

The octal number system is widely used in computers as it is more convenient and efficient to express numbers in octal rather than in binary representation. While dealing with binary numbers involving several bits converting them into octal makes the data handling and computation less prone to error.

How do I convert 18 into octal number system?

To convert 18 into the octal number system, follow the given instructions:

  1. Divide 18 by 8. The quotient is 2, and the remainder is 2. This remainder will be the last digit of the octal number.

  2. Now divide the quotient from step 1, i.e., 2 by 8. You will get 0 as the quotient and 2 as the remainder. This remainder will be the first digit of the octal number.

  3. Arranging the remainders from steps 1 and 2, you will get 22, which is the octal representation of 18.

What is the octal equivalent of decimal number 8?

10. If we divide 10 by 8, the remainder is 0, and the quotient is 1. Similarly, when we divide 1 by 8, the remainder is 1, and the quotient is 0. Arranging the two remainders, we will get 10, which is the octal equivalent of decimal number 8.

Purnima Singh, PhD
decimal to octal
Decimal to octal
(Decimal input)₁₀
(Octal output)₈
Check out 5 similar numeral systems converters 🧮
BinaryBinary to hexadecimalBinary to octal… 2 more
People also viewed…


Addiction calculator tells you how much shorter your life would be if you were addicted to alcohol, cigarettes, cocaine, methamphetamine, methadone, or heroin.


The handy centimeter calculator helps you determine length units in different systems such as the metric and the imperial one.

Cubic inches to gallons converter

Convert cubic inches to gallons in no time!

Pizza size

Make the best pizza choice with our Pizza Size Calculator – compare sizes and prices for the perfect order!
Copyright by Omni Calculator sp. z o.o.
Privacy, Cookies & Terms of Service