Skip to content
ForceConversion

Popular tools

Decimal to Octal Converter

Convert decimal numbers to octal. Decimal numbers are converted to octal to build Unix file permission values such as 755 or 644.

Decimal to Octal converter

Whole numbers. Spaces, underscores and the prefixes 0b, 0o and 0x are accepted.

Result

Binary
—
Octal
—
Decimal
—
Hexadecimal
—

How to convert decimal to octal

Divide the number by 8, write down the remainder, and repeat with the quotient until it reaches 0. Read the remainders from last to first to get the octal digits.

Example: 156 (decimal) to octal

Dividing 156 by 8
DivisionQuotientRemainder
156 ÷ 8194
19 ÷ 823
2 ÷ 802

Remainders from last to first: 234. So 156 = 234 in octal.

Examples

  • 10 (decimal) = 12 (octal)
  • 156 (decimal) = 234 (octal)
  • 255 (decimal) = 377 (octal)
  • 1000 (decimal) = 1750 (octal)

Decimal to Octal conversion table

Decimal to Octal
Decimal (base 10)Octal (base 8)
00
11
22
33
44
55
66
77
810
911
1012
1113
1214
1315
1416
1517
1620
2024
3240
5062
64100
100144
127177
128200
255377
256400
5121000
10001750
10242000

The table lists the same whole numbers for every pair of bases.

Frequently asked questions

What is 255 in octal?
255 in decimal is 377 in octal.
How do I convert decimal to octal by hand?
Divide the number by 8, write down the remainder, and repeat with the quotient until it reaches 0. Read the remainders from last to first to get the octal digits.
What digits does decimal use?
Decimal uses the digits 0 to 9. Decimal is the everyday number system for counting, money and measurement.
What is octal used for?
Octal is best known from Unix file permissions: chmod 755 is three octal digits, one for owner, group and others.