Chmod Calculator

Tick the permissions to get the numeric mode, symbolic notation, the chmod command, and a plain-English explanation — all in your browser.

Who Read (4) Write (2) Execute (1)
Owner
Group
Others
Advanced — special bits (setuid / setgid / sticky)
Numeric 755
Symbolic rwxr-xr-x
What this means Owner can read, write, and execute. Group can read and execute. Others can read and execute.
3 or 4 octal digits (e.g. 755 or 4755)
Copy the command
Numeric chmod 755 file
Recursive chmod -R 755 folder
Symbolic chmod u=rwx,g=rx,o=rx file

What each permission does

Permission File Directory
r Read View contents List files
w Write Modify file Create / delete files
x Execute Run as program Enter directory

How chmod numbers work

Every file has three permission classes — owner, group, and others — and each class can have three permissions, each with a value:

Add the values for each class to get one digit (0–7), then write the three digits in order: owner, group, others. For example rwx = 4 + 2 + 1 = 7, and r-x = 4 + 1 = 5, so rwxr-xr-x is 755.

Common permissions reference

NumericSymbolicPlain EnglishTypical use
777rwxrwxrwxEveryone can read, write, and executeAvoid — world-writable security risk
755rwxr-xr-xOwner full; group & others read + executeDirectories, scripts, executables
750rwxr-x---Owner full; group read + execute; others noneGroup-private executables
700rwx------Owner full; nobody elsePrivate directories, ~/.ssh
644rw-r--r--Owner read + write; everyone else readRegular files, web content
640rw-r-----Owner read + write; group read; others noneConfig files with group secrets
600rw-------Owner read + write onlyPrivate keys, .env files
444r--r--r--Everyone read-onlyLocked read-only files
400r--------Owner read-onlyProtected private files

Numeric vs symbolic notation

The numeric (octal) form sets all permissions at once as an absolute value: chmod 644 file. The symbolic form edits specific bits:

Note the difference between + and =: + only adds bits on top of what is already there, while = sets the exact permissions. To reproduce a numeric mode with symbolic syntax, always use = — which is why this tool's symbolic command uses it.

What does chmod 777 mean — and why it's risky

chmod 777 (rwxrwxrwx) grants read, write, and execute to the owner, the group, and every other user on the system. That means any user can modify or replace the file — including overwriting a script with malicious code. It is almost never the right fix, even when a tutorial suggests it to "make a permission error go away."

Use the least permission that works instead: 755 for directories and executables, 644 for regular files, and 600 for secrets. If a web server needs to write to a folder, give that folder to the server's user/group rather than opening it to everyone.

Special permissions: setuid, setgid, and the sticky bit

A leading fourth digit holds three special bits (open the Advanced section above to toggle them):

Frequently Asked Questions

What does chmod 755 mean?

chmod 755 sets rwxr-xr-x: the owner can read, write, and execute (7), while the group and others can read and execute but not write (5). It is the standard permission for directories and executable scripts — everyone can use them, but only the owner can change them.

How is the chmod number calculated?

Each permission has a value: read = 4, write = 2, execute = 1. Add them up for each of the three classes (owner, group, others). For example, read + write + execute = 4 + 2 + 1 = 7, and read + execute = 4 + 1 = 5, giving 755 for rwxr-xr-x.

What is the difference between numeric and symbolic chmod?

Numeric (octal) mode sets all permissions at once as an absolute value, e.g. chmod 644 file. Symbolic mode changes specific bits, e.g. chmod u+x file adds execute for the owner. To make a symbolic command equal to a numeric mode, use the absolute = form (chmod u=rwx,g=rx,o=rx) rather than the additive + form, which only adds bits without clearing the others.

What does chmod 777 mean and is it safe?

chmod 777 (rwxrwxrwx) gives read, write, and execute to everyone — owner, group, and all other users. It is almost always a security risk because any user on the system can modify or replace the file. Use the least permission that works instead, such as 755 for executables/directories or 644 for regular files.

What are the setuid, setgid, and sticky bits?

They are special permissions stored in a leading fourth digit. setuid (4) makes an executable run as its owner; setgid (2) makes it run as its group or makes new files in a directory inherit the group; the sticky bit (1) on a directory lets only a file's owner delete it (used on /tmp). For example, chmod 4755 sets setuid on a 755 file.

How do I apply chmod permissions recursively?

Add the -R flag: chmod -R 755 folder applies the mode to a directory and everything inside it. Be careful — applying a file mode like 644 recursively can strip the execute bit that directories need to be entered. A common safe approach is to set directories to 755 and files to 644 separately using find.