Nifty Dev Tools
  1. Home
  2. Number Converter
  3. Decimal to Octal
Convert

Decimal to Octal Converter

We never upload what you paste ✨

Type a decimal number and get it in octal instantly. Any size, negative numbers and two's complement included.

Decimal
Octal

The result will appear here as you type.

How to convert decimal to octal

Divide by 8 repeatedly and write down the remainders. Reading them from bottom to top gives the answer. For 755:

755 ÷ 8 = 94 remainder 3
94 ÷ 8 = 11 remainder 6
11 ÷ 8 = 1 remainder 3
1 ÷ 8 = 0 remainder 1

Remainders bottom to top: 1363.

Decimal to octal table

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

FAQ

How are negative numbers converted?

Without a bit width, the sign is kept: −255 becomes −FF. Choose a bit width and turn on Signed to use two's complement, the way computers store negative numbers: −1 in 8 bits is FF.

Is there a size limit?

No practical one. Arbitrary-precision integers (BigInt) convert even 100-digit numbers exactly. Fractions aren't supported.

Can I paste 0x, 0b or 0o prefixes, spaces or underscores?

Yes. Prefixes are recognized, and spaces or underscores between digits (like 1111_0000) are ignored. Put several numbers on separate lines to convert them all at once.

Is my data uploaded?

No. Everything is converted in your browser. Privacy