Decimal to Octal

Decimal to Octal

What this does

Converts a base-10 number to base 8. 8 becomes 10; 493 becomes 755.

When to use it

  • Unix file permissions — chmod 755 is octal for rwxr-xr-x.
  • Octal escapes in C and shell.

Good to know

Each octal digit is exactly three binary digits, which is why permissions map so neatly.


Avatar

James Smith

CEO / Co-Founder

Enjoy the little things in life. For one day, you may look back and realize they were the big things. Many of life's failures are people who did not realize how close they were to success when they gave up.

Cookie
We care about your data and would love to use cookies to improve your experience.