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.
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.
- Enter the permissionsType 755, 0644, 4755, rwxr-xr-x, -rw-r--r--, drwxrwsr-x, u=rwx,g=rx,o=r or chmod 640 file.
- Set the file typeLeave File type on Auto, or choose regular file, directory or symbolic link for the ls -l view.
- 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.
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 toolsValidate UUIDs, detect the version and decode v1, v6 and v7 timestamps
Read the timestamp in a ULID, validate it and convert it to or from a UUID
See every JWT claim explained, with readable times and expiry status
Convert text or bytes to Base32 and decode Base32, including TOTP secrets
Make a scannable WiFi QR code so guests can join without typing a password
Highlight regex matches, inspect groups and preview replacements live.