Chmod calculator: Unix permissions in octal and rwx
Tick the permissions you want, or type an octal number such as 755, and see the equivalent symbolic form and command.
- Free, no sign-up
- Your files and data stay on your device
- No watermarks or limits
0 bytes uploaded. Everything happens in this tab.
How to use it
- Tick read, write and execute for owner, group and others, or type an octal value.
- Add setuid, setgid or the sticky bit if you need them.
- Copy the octal number, the rwx string or the ready chmod command.
Example
Common value:
755 = rwxr-xr-x chmod 755 script.sh
About this tool
Unix and Linux files have three sets of permissions: for the owner, for the group and for everyone else. Each set can allow read (4), write (2) and execute (1), and adding the numbers gives one digit, so rwx is 7, r-x is 5 and r-- is 4.
This calculator keeps the checkboxes, the octal number and the symbolic string in sync, so you can start from any of them. A fourth leading digit sets special bits: setuid (4) and setgid (2) run a program as its owner or group, and the sticky bit (1) on a shared directory stops users from deleting each other’s files.
Permissions are a security control. Avoid 777 on anything reachable from the internet, use 644 for ordinary files and 755 for scripts and directories, and 600 for private keys. This tool only calculates the value; it does not change any file.
Frequently asked questions
What does chmod 755 mean?
The owner can read, write and execute; the group and others can read and execute. It is the usual value for scripts and directories.
What is the difference between 644 and 600?
644 lets everyone read the file. 600 allows only the owner to read and write, which SSH requires for private keys.
What is the sticky bit?
On a directory, it lets only the owner of a file delete it. It is used on shared folders like /tmp.
Does this change my files?
No. It only calculates the number and the command.