chmod calculator

Chmod calculator for numeric and rwx permissions

Select read, write, and execute permissions to get the numeric chmod mode and command, or convert a three-digit mode back to rwx.

The conversion runs entirely in your browser. No file or server connection is needed.

Set permissions

Owner (u)
Group (g)
Other (o)

Chmod result

Copy the command, then replace the example filename with your own file or directory.

Numeric mode644Symbolic permissionsrw-r--r--Symbolic chmod formu=rw-,g=r--,o=r--
chmod 644 script.sh
Read the permission-denied tutorial

Need to fix an execute-permission error?

The tutorial shows how to inspect the missing bit, apply chmod safely, and verify that the script runs.

Understand the chmod result

How are 644 and 755 calculated?

Read is 4, write is 2, and execute is 1. Add those values separately for owner, group, and other users. For example, rwx is 7 and r-x is 5, so rwxr-xr-x becomes 755.

Does chmod 755 add execute permission?

It sets the three ordinary permission groups exactly to rwxr-xr-x. Unlike chmod u+x, a numeric mode also removes bits that are not selected.

Does this include setuid, setgid, or sticky bits?

No. This calculator covers the three-digit ordinary permission mode. It does not calculate special bits, ACLs, default directory permissions, or umask behavior.

Should I use 777 when a script will not run?

Usually not. First check which user needs which permission. Mode 777 also grants write access to group and other users, which is broader than most scripts require.

Common chmod examples

Executable script

755 = rwxr-xr-x
chmod 755 script.sh

Owner-only read and write

600 = rw-------
chmod 600 private-key

Owner execute, everyone else read

744 = rwxr--r--
chmod 744 script.sh