calculator.onl
Categories50

Chmod permission calculator

Convert Unix permission modes between octal and symbolic notation, including special bits.

A worked example

Give the group write permission and watch its switch.

Four-digit octal mode0755Symbolic permissionsrwxr-xr-xOwner7Group5Others5Special-bit octal digit0
Select octal digits or nine-character symbolic notation.

Examples: 755, 4755, rwxr-xr-x or rwsr-xr-x. Use s/S for setuid/setgid and t/T for sticky.

Updates as you type

Use 1–4 octal digits (0–7), or exactly nine symbolic characters such as rwxr-xr-x. Special bits use s/S and t/T.

YOUR RESULT

Four-digit octal mode

0755

Calculated from your inputs

Symbolic permissionsrwxr-xr-x
Owner7
Group5
Others5
Special-bit octal digit0
The numbers, at a glance

Calculations run in your browser.
UNDERSTAND THE RESULT

A little context. A clearer answer.

↑ Back to calculator

When this calculator is useful

Convert Unix permission modes between octal and symbolic notation, including special bits. Enter your values and inspect the calculation details. For a related calculation, try Bitwise calculator: AND, OR, XOR and shifts.

What to enter

InputWhat it meansExample value
Input formatSelect octal digits or nine-character symbolic notation.Octal digits
Permission modeExamples: 755, 4755, rwxr-xr-x or rwsr-xr-x. Use s/S for setuid/setgid and t/T for sticky.755

How the calculation works

  1. For each owner, group and other triplet, add read = 4, write = 2 and execute = 1.
  2. Encode setuid = 4000, setgid = 2000 and sticky = 1000 in the leading octal digit.
  3. Use lowercase s/t when execute is also set and uppercase S/T when it is not; inspect the permission grid.
The formular = 4; w = 2; x = 1; setuid = 4000; setgid = 2000; sticky = 1000

A worked example

Worked example: 755 converts to 0755 and rwxr-xr-x: owner 7, group 5, others 5, special digit 0.

Example you can load

What to enter
Result for this example · Four-digit octal mode0755

This is a fixed example; changing the form above does not change these numbers.

Assumptions & limits

Decodes permission bits without changing files. Accepts 1–4 octal digits or nine symbolic characters; it does not accept expressions such as u+x or an ls file-type prefix. ACLs, umask and operating-system enforcement are outside scope.

Frequently asked questions

Why are four octal digits shown?

The leading digit explicitly represents special bits; 0755 and 755 encode the same permission bits.

What is the difference between s and S?

Both indicate setuid or setgid. Lowercase s also includes execute; uppercase S does not.

Will this calculator change permissions?

No. It only translates the entered mode. Actual access can also depend on ACLs, ownership and system restrictions.