What Is the Chmod Calculator?
The Chmod Calculator converts between numeric (octal) and symbolic file permissions on Unix and Linux. Tick read, write and execute for owner, group and others (and setuid, setgid or sticky if you need them), or type an octal mode such as 644 or 2775; it shows the octal value, the ls -l form (rwxr-xr-x) and a chmod command in each form.
Why Use This Tool?
File permissions are critical for server security but the numeric codes are hard to memorize. Is 644 readable by the group? Does 755 allow others to write? This tool makes permission values instantly understandable and helps you set the right permissions without guessing.
How to Use This Chmod Calculator
- Set permissions for Owner — Toggle the read (r), write (w), and execute (x) checkboxes for the file owner. These control what the file's creator can do.
- Set permissions for Group — Configure read, write, and execute for the group. Group members share these permissions on the file.
- Set permissions for Others — Set permissions for all other users on the system. Be cautious — giving write or execute access to Others on sensitive files is a security risk.
- Read the numeric value — The calculator shows the 3-digit octal number (e.g., 755) and the full chmod command ready to paste into your terminal.
- Copy the command — Click the octal value to copy chmod 755 (add your file name), or click the symbolic form to copy rwxr-xr-x for reference.
chmod 755 filenamecommand.
Worked example: the numbers run through real chmod
On October 12, 2026 we ran each mode below through GNU chmod (coreutils 9.4) on Linux and read the result back with stat -c %a %A. Every row matched the tool's checkboxes.
| Octal | ls -l shows | Typical use |
|---|---|---|
| 644 | -rw-r--r-- | Files a web server reads; also what new files get under the usual umask 022 |
| 755 | -rwxr-xr-x | Directories and scripts; new directories get this under umask 022 |
| 600 | -rw------- | Private keys and .env files (ssh refuses keys readable by others) |
| 700 | -rwx------ | Private directories such as ~/.ssh |
| 775 | -rwxrwxr-x | Shared project folders where the group also writes |
| 444 | -r--r--r-- | Read-only for everyone, including the owner |
What the execute bit means on a directory, tested as an unprivileged user on a folder holding one file:
| Directory mode for others | ls the folder | Read the file inside |
|---|---|---|
| r-- (744) | Lists the name | Permission denied |
| --x (711) | Permission denied | Works, if you know the name |
| r-x (755) | Lists the name | Works |
- Two commands you can paste. The rwxr-xr-x string is the ls -l display, and chmod rejects it ("invalid mode", checked with GNU chmod). The tool therefore also shows the symbolic form chmod accepts, who=what: chmod u=rwx,g=rx,o=rx file gives exactly 755. On October 13, 2026 we ran 307 random modes, special bits included, through GNU chmod (coreutils 9.4) both as octal and as the symbolic command, and read them back with stat: all 614 results matched the tool. Click either command to copy it, then replace "filename" with your path.
- Clicking the octal value copies chmod 644 without a file name; add the path yourself. Add -R only with care: a mode with x set on every file makes data files executable. A common split is
find . -type d -exec chmod 755 {} +andfind . -type f -exec chmod 644 {} +. - Special bits. Setuid (4755 shows -rwsr-xr-x), setgid (2775 shows rwxrwsr-x) and the sticky bit (1777 shows rwxrwxrwt, as on /tmp, where only a file's owner can delete it) have their own checkboxes, and the octal field accepts a fourth digit. A capital S or T means the special bit is set without execute, which is usually a mistake.
- Avoid 777. It lets any local user or compromised process change the file; on a shared web host that is how one hacked site infects its neighbours. If a web app needs to write somewhere, give that one directory to the server's user or group instead.
Sources
Checked on .
Frequently Asked Questions
Built by Derek Giordano · Part of Ultimate Design Tools