A little context. A clearer answer.
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
| Input | What it means | Example value |
|---|---|---|
| Input format | Select octal digits or nine-character symbolic notation. | Octal digits |
| Permission mode | Examples: 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
- For each owner, group and other triplet, add read = 4, write = 2 and execute = 1.
- Encode setuid = 4000, setgid = 2000 and sticky = 1000 in the leading octal digit.
- Use lowercase s/t when execute is also set and uppercase S/T when it is not; inspect the permission grid.
r = 4; w = 2; x = 1; setuid = 4000; setgid = 2000; sticky = 1000A 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 enterThis 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.