Decimal to Octal Converter

A decimal to octal converter rewrites a base-10 whole number in base 8, whose digits are 0 through 7.

Example: 255 = 377

Text tools on this site use UTF-8 (the letter A is the byte 01000001). This page converts a whole number between bases and does not encode characters.

Last updated . Full ASCII table (decimal, hexadecimal, octal, and binary).

DecimalOctal
377

Convert 255 to octal

  1. Divide by 8. 255 ÷ 8 = 31 remainder 7.
  2. Continue. 31 ÷ 8 = 3 remainder 7. Then 3 ÷ 8 = 0 remainder 3.
  3. Read upward. Remainders from bottom to top are 3, 7, 7. Decimal 255 is octal 377.

Decimal to octal examples

DecimalRemainders (last first)Octal
80 then 110
157 then 117
640, 0, then 1100
2557, 7, then 3377
5120, 0, 0, then 11000

Frequently Asked Questions

How do you convert decimal to octal?

Divide by 8 and record the remainder. Repeat until the quotient is 0, then read remainders from bottom to top.

What is 255 in octal?

255 is 377 octal, because 3×64 + 7×8 + 7 = 255.

What is 8 in octal?

8 is 10 octal. There is no digit 8 in base 8, so the next value after 7 is 10.

When is octal still used?

Unix file permissions are written in octal, and some machine instructions group bits by threes. Most new code prefers hexadecimal.

Related tools & guides