This tool runs entirely on your device. Your files and the text you enter are processed by your browser and are never sent to a server.
Chmod Calculator
Tick the permissions you want and this chmod calculator gives you the octal mode (like 755), the symbolic mode (rwxr-xr-x) and a ready-to-copy chmod command. It also reads ls -l output, handles setuid, setgid and the sticky bit, and explains each mode in plain English.
| Who | Read | Write | Execute | Value |
|---|---|---|---|---|
| Owner (u) | 7 | |||
| Group (g) | 5 | |||
| Others (o) | 5 |
Presets
What 755 means
- Owner can read, write and execute; group and others can read and execute.
- Octal command
chmod 755 file- Symbolic command
chmod u=rwx,g=rx,o=rx file- ls -l shows
-rwxr-xr-x
How to calculate chmod permissions
- Set the permissions. Tick read, write and execute for the owner, group and others, or pick a preset such as 644 or 755. Add setuid, setgid or the sticky bit if you need them.
- Or type a mode. Enter an octal mode (755, 0644, 4755) or a symbolic one (rwxr-xr-x). You can also paste the first column of ls -l output, such as -rw-r--r-- or drwxrwxrwt.
- Check the meaning. Read the plain-English summary of who can do what, and any warning about world-writable or unusual special-bit combinations.
- Copy the command. Enter the file name, optionally tick Recursive, and copy the chmod command in octal or symbolic form.
Octal digits at a glance
Each octal digit is the sum of read (4), write (2) and execute (1). The three digits apply to the owner, the group and others, in that order.
| Digit | Symbolic | Permission |
|---|---|---|
| 0 | --- | No permission |
| 1 | --x | Execute |
| 2 | -w- | Write |
| 3 | -wx | Write and execute |
| 4 | r-- | Read |
| 5 | r-x | Read and execute |
| 6 | rw- | Read and write |
| 7 | rwx | Read, write and execute |
Files vs directories
On a directory, the bits mean something slightly different: read lists its contents, write creates, deletes and renames entries, and execute lets you enter it and reach the files inside. That is why directories are usually 755 and files 644.
Because of this, chmod -R 755 on a whole tree makes every file executable. To set them separately, use find . -type d -exec chmod 755 {} + and find . -type f -exec chmod 644 {} +, or the symbolic chmod -R u=rwX,go=rX ., where a capital X adds execute only to directories and files that are already executable.
Symbolic mode syntax
Symbolic chmod combines who (u owner, g group, o others, a all), an operator (+ add, - remove, = set exactly) and the permissions. chmod +x deploy.sh makes a script executable, chmod go-w file removes write for group and others, and chmod u=rw,go= secret.txt is the same as 600. Unlike octal, + and - change only the bits you name and leave the rest alone.
Related tools
Frequently Asked Questions
What does chmod 755 mean?↓
755 is rwxr-xr-x: the owner can read, write and execute (7 = 4+2+1), while the group and everyone else can read and execute (5 = 4+1) but not modify. It is the usual mode for scripts, programs and directories.
What is the difference between chmod 644 and 755?↓
Both let only the owner write. 644 (rw-r--r--) has no execute bit, so it suits ordinary files such as HTML, images and config files. 755 adds execute for everyone, which scripts need to run and directories need so users can enter them.
How are chmod numbers calculated?↓
Each digit is the sum of read = 4, write = 2 and execute = 1, for owner, group and others in that order. So rw- is 6, r-x is 5 and r-- is 4, making rw-r--r-- 644. An optional fourth leading digit adds setuid (4), setgid (2) and the sticky bit (1), as in 4755 or 1777.
What do s, S, t and T mean in ls -l output?↓
A lowercase s in the owner or group execute position means setuid or setgid is set together with execute; an uppercase S means the special bit is set but execute is not. In the others position, t is the sticky bit with execute and T is the sticky bit without it. /tmp is drwxrwxrwt (1777).
Why is chmod 777 dangerous?↓
777 lets every user and every process on the system modify or replace the file, so a compromised web app or another account can inject code. Fix permission errors by giving ownership to the right user with chown and using 755 or 775 for directories and 644 or 664 for files instead.
What permissions should an SSH private key have?↓
600 (rw-------) or 400 (r--------). OpenSSH refuses to use a private key that other users can read and reports "UNPROTECTED PRIVATE KEY FILE". The ~/.ssh directory should be 700 and authorized_keys 600.
You might also need
All Text & Dev Tools →Docker Run ↔ Compose Converter
Convert docker run commands to Compose YAML and back.
Cron Expression Parser
Explain and build cron schedules.
Number Base Converter
Convert decimal, binary, hex and octal.
IP Subnet Calculator
IPv4 and IPv6 CIDR, ranges and masks.
MIME Type Lookup
Content-Type by file extension.
Text Case Converter
camelCase, snake_case, Title Case and more.
Last updated: