Chmod Calculator

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

  1. 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.
  2. Set permissions for Group — Configure read, write, and execute for the group. Group members share these permissions on the file.
  3. 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.
  4. 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.
  5. 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 filename command.

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.

Octalls -l showsTypical use
644-rw-r--r--Files a web server reads; also what new files get under the usual umask 022
755-rwxr-xr-xDirectories 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-xShared 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 othersls the folderRead the file inside
r-- (744)Lists the namePermission denied
--x (711)Permission deniedWorks, if you know the name
r-x (755)Lists the nameWorks

Frequently Asked Questions

What's the most common permission for web files?
644 for files (owner can read/write, everyone else can read) and 755 for directories (owner has full access, everyone else can read and traverse). Never use 777 on a production server.
What does the execute permission mean for directories?
For directories, execute (x) means the ability to enter the directory and access its contents. Without it, users can see the directory exists but can't list or access files inside it.
What does chmod 755 mean?+
Chmod 755 sets the owner to read+write+execute (7), group to read+execute (5), and others to read+execute (5). In symbolic notation, that's rwxr-xr-x. It's the most common permission for directories and executable files on Linux servers.
What is the difference between chmod and chown?+
Chmod changes what actions (read, write, execute) are allowed on a file. Chown changes who owns the file — the user and/or group. They work together: chown sets the 'who,' chmod sets the 'what.'
What are special permissions (setuid, setgid, sticky bit)?+
Special permissions are a fourth octal digit prepended to the standard three. Setuid (4xxx) runs a file as its owner. Setgid (2xxx) runs it as its group or inherits group ownership on directories. Sticky bit (1xxx) restricts deletion to the file owner.
What does the sticky bit do and when should I set it?+
The sticky bit (the 1 in 1755) is meaningful on directories: when set, only the owner of a file inside the directory can delete or rename that file, even if other users have write access to the directory. The classic use is /tmp where everyone can create files but only the creator can remove their own. On regular files the sticky bit is mostly historical and has no effect on modern Linux. The calculator marks it as advanced and only includes it when you explicitly enable extra bits.
Why does 777 show as a security warning?+
Chmod 777 grants read, write, and execute permission to the file owner, the group, and everyone else on the system. For a web-server document directory, this means any authenticated user (and any process running as any user) can modify or delete content. Most servers do not require 777 for normal operation; if a tutorial recommends it for troubleshooting, the underlying issue is usually wrong ownership rather than wrong permissions. 755 for directories and 644 for files is the safe default.

📖 Learn More

Related Article How to Calculate Chmod File Permissions →

Built by Derek Giordano · Part of Ultimate Design Tools

Privacy Policy · Terms of Service