Developer ToolsA little help for every day

Search by name or task, such as JSON or percentage.

Developer Tools

Chmod Permissions Calculator

Convert chmod permissions between octal (755) and symbolic (rwxr-xr-x), read ls -l output and setuid, setgid and sticky bits, and get chmod commands and umask.

View all tools
ResultUpdates as you type
Octal755
Symbolicrwxr-xr-x
ls -l view-rwxr-xr-x
chmod command (octal)chmod 755 file
chmod command (symbolic)chmod u=rwx,g=rx,o=rx file
Special bitsNone
Matching umask022
WhoRead r (4)Write w (2)Execute x (1)Digit
Owner uYesYesYes7
Group gYesNoYes5
Others oYesNoYes5

Typical for directories and executables: the owner has full access; everyone else can read and execute.

A umask of 022 gives new directories 755 and new files 644 by default.

How to use Chmod Permissions Calculator

Type permissions in any common form: an octal value such as 644, a symbolic string, a line of ls -l output, u=rwx,g=rx,o=r or even a whole chmod command. The result shows every equivalent form, a who-can-do-what table and warnings about risky modes.

  1. Enter the permissionsType 755, 0644, 4755, rwxr-xr-x, -rw-r--r--, drwxrwsr-x, u=rwx,g=rx,o=r or chmod 640 file.
  2. Set the file typeLeave File type on Auto, or choose regular file, directory or symbolic link for the ls -l view.
  3. Copy the commandCopy the octal or symbolic chmod command, and read the notes on special bits and umask.

How octal and symbolic modes map

Each digit is the sum of read (4), write (2) and execute (1) for the owner, group and others, in that order, so rwxr-xr-x is 7, 5, 5, or 755, and rw-r--r-- is 644. The table shows the same breakdown as Yes or No for each permission. In ls -l output the first character is the file type (- regular file, d directory, l link), and a trailing . + or @ marks an SELinux context, ACL or extended attributes, which the calculator ignores. Clauses using = are calculated exactly, while + and - are applied to a starting point of 000 with a warning.

Special bits and umask

A fourth, leading digit adds the special bits: 4 is setuid, 2 is setgid and 1 is the sticky bit. 4755 shows as rwsr-xr-x, and 1777, the usual mode for /tmp, as rwxrwxrwt. Without execute permission the letter becomes a capital S or T, which usually means the bit has no effect, and the tool says so. For modes without special bits it also gives the matching umask: 755 corresponds to umask 022, which gives new directories 755 and new files 644. World-writable modes such as 777 trigger a warning.

Accuracy and data handling

Validate the result with your project's own tests and runtime rules before using it in production. The calculation runs in your current browser; the tool code does not send the input to a processing API.

Often Used Together

Next step

FAQ

What do 755 and 644 mean?

755 (rwxr-xr-x) lets the owner read, write and execute and everyone else read and execute; it suits directories and scripts. 644 (rw-r--r--) lets the owner read and write and others only read; it suits ordinary files.

Why should I avoid chmod 777?

777 lets every user on the system modify and execute the file. The calculator flags any world-writable mode, which is rarely needed except for shared temporary directories with the sticky bit.

Can it work out u+x or g-w?

Yes, but + and - change existing permissions, so the result assumes a starting mode of 000 and carries a warning. The real outcome depends on the file's current mode.

What permissions should SSH keys have?

Use 600 (rw-------) for private keys and secret config files, and 700 for the ~/.ssh directory, so that only the owner has access.

More Developer Tools

Related tools