Language
English English Vietnamese (Tiếng Việt) Vietnamese (Tiếng Việt) Chinese (简体中文) Chinese (简体中文) Portuguese (Brazil) (Português do Brasil) Portuguese (Brazil) (Português do Brasil) Spanish (Español) Spanish (Español) Indonesian (Bahasa Indonesia) Indonesian (Bahasa Indonesia)

Decimal to Octal

Convert decimal numbers to octal. Useful for setting Unix file permissions and working with systems that use base-8 notation.

What is the Decimal to Octal Converter?

This tool converts decimal numbers (base-10) to octal numbers (base-8), commonly used in Unix/Linux systems.

Why Convert Decimal to Octal?

Octal representation is useful for:

  • Setting file permissions — converting permission values to chmod format
  • Programming — octal literals in C, Python, JavaScript
  • Understanding binary — octal groups 3 bits together
  • Legacy compatibility — older systems and documentation

The Conversion

Divide by 8 repeatedly and collect remainders from bottom to top.

Example: 493 → 493÷8=61r5, 61÷8=7r5, 7÷8=0r7 → 755

How to Use

  1. Enter decimal number — any positive integer
  2. View octal result — uses digits 0-7 only
  3. Apply the value — use with chmod or in code

Permission Calculation

For Unix permissions, each digit represents owner/group/others:

  • 4 = read (r)
  • 2 = write (w)
  • 1 = execute (x)
  • 7 = 4+2+1 = rwx (full access)

Example

To set rwxr-xr-x: owner=7, group=5, others=5 → chmod 755

0123456789
01234567
0o

Common Conversions

7 = 7
8 = 10
63 = 77
64 = 100
493 = 755
511 = 777

Decimal (Base-10)

Standard number system. Enter any positive integer to convert.

Octal (Base-8)

Base-8 system using 0-7. Essential for Unix/Linux file permission management.

Enter any positive integer
493 in decimal = 755 in octal
Useful for calculating chmod values
Result uses only digits 0-7
Want to learn more? Read documentation →
1/5
Start typing to search...
Searching...
No results found
Try searching with different keywords