Skip to the content

Decimal to Octal Converter

Turn a decimal number into octal, with each division by eight and its remainder shown.

Type a decimal number in the first field and read it in octal in the second. It works the other way round as well. Whole numbers only; spaces, underscores and the prefixes 0b, 0o and 0x are fine.

Working

DivisionResultRemainder
420 ÷ 8524
52 ÷ 864
6 ÷ 806

The remainders from the last to the first: 644

Other bases

from 2 to 36
Bit length
9 bits
Fits in
2 bytes
Share this tool:TwitterFacebookLinkedInWhatsAppEmail

How to convert decimal to octal by hand

Divide by 8 and note the remainder, which is a digit from 0 to 7. Do the same with the result until the result is 0, then read the remainders from the last to the first.

For 420: 420 ÷ 8 = 52 remainder 4, then 52 ÷ 8 = 6 remainder 4, then 6 ÷ 8 = 0 remainder 6. That gives 644.

The working under the two fields at the top of the page does this for whatever number you type.

Good to know

  • Check by working back: 6 × 64 + 4 × 8 + 4 = 420.
  • The answer never contains an 8 or a 9. Numbers below 8 are written the same in both systems.
  • If the number is already in binary there is a shortcut: every three bits, counted from the right, make one octal digit.

Decimal to octal table

DecimalOctal
00
11
22
33
44
55
66
77
810
911
1012
1113
1214
1315
1416
1517
1620
DecimalOctal
2024
3240
5062
64100
100144
127177
128200
200310
255377
256400
500764
5121000
10001750
10242000
409610000
65535177777

The number base converter shows binary, octal, decimal and hexadecimal next to each other, and explains positional notation and two's complement.

See all 9