Decimal to Octal Converter
Type a decimal number to see it as octal, plus the other bases.
Free · Runs in your browser · Your text is never uploaded
How to convert decimal to octal
Divide by 8 repeatedly and note the remainders. Reading them from last to first gives the octal number.
Worked example
The decimal number 493 is 755 in octal.
Convert many at once
Put one number per line to convert a whole list, and copy the results.
A worked example
Convert 420 to octal by dividing repeatedly by 8: 420 ÷ 8 = 52 remainder 4; 52 ÷ 8 = 6 remainder 4; 6 ÷ 8 = 0 remainder 6. Reading the remainders from bottom to top gives 644.
Where it is used
Building chmod values or converting numbers for systems that use octal notation.
Tips
Spaces and underscores inside a number are ignored, so you can paste values like 1010 1111. Add a prefix (0x, 0b or 0o) if you are unsure which base a number is in. For the theory behind all four bases, read binary, decimal and hexadecimal explained.
Need more options? Open the full Number Base Converter.
Related guides
Frequently asked questions
How do I convert decimal to octal?
Enter the decimal number above and the octal result appears instantly.
Does it work for large numbers?
Yes, the arithmetic is exact for numbers up to 4,000 digits.
Can I convert negative numbers?
Yes, the minus sign is kept. Two’s complement is not applied.