Skip to content
ConvertCalculate

Decimal to Octal

Easily convert decimal numbers to octal format for accurate numeric transformations in mathematics, computing, and coding exercises, making large numbers more manageable.

  • Free
  • Instant results
  • Runs in your browser
In short

To convert decimal to octal, divide the number by 8 repeatedly and read the remainders from bottom to top. For example, decimal 45 is 55 in octal.

How it works

Decimal counts in base 10, octal counts in base 8. Converting means rewriting the same quantity with a different set of digits — the value never changes, only how it is written.

  1. Divide the decimal number by 8.
  2. Write down the remainder — that is the last digit of the octal number.
  3. Repeat with the quotient until it reaches zero, then read the remainders bottom to top.

The reverse conversion is Octal to Decimal, which also handles every other base pair.

Examples

Worked examples, digit by digit:

  • 10 (decimal) = 10 in decimal = 12 (octal)
  • 21 (decimal) = 21 in decimal = 25 (octal)
  • 255 (decimal) = 255 in decimal = 377 (octal)
Common values in every base
DecimalBinaryOctalHexadecimal
0000
1111
21022
410044
81000108
10101012A
15111117F
16100002010
321000004020
64100000010040
100110010014464
25511111111377FF

Decimal to Octal: frequently asked questions

How do I convert decimal to octal?
Divide the number by 8 repeatedly and read the remainders from bottom to top. For example, decimal 45 is 55 in octal. The converter above does this instantly for any value.
What is 255 in octal?
Decimal 255 equals 377 in octal (the value 255, the largest number that fits in one byte).
Why are decimal and octal used?
Decimal (base 10) is the everyday number system. Octal (base 8) groups bits in threes.