Chmod Calculator · Chmod Master

Convert Linux permissions between octal, symbolic notation and a visual grid.

Updated:

100% client-side

Permissions grid

ReadWriteExecute
Owner
Group
Others

Values

What is chmod?

chmod is the Linux/Unix command used to control who can read, write or execute a file or folder — separately for the file's owner, its group, and everyone else. Permissions can be written as an octal number (like 755) or as symbolic text (like rwxr-xr-x), and both mean the same thing but aren't easy to convert between by hand. This tool lets you set permissions visually with checkboxes and instantly see the matching octal, symbolic notation and ready-to-run chmod command.

How to use the chmod calculator

  1. Check the boxes in the Permissions grid for Read/Write/Execute per Owner, Group and Others — or click a preset like 755 or 644.
  2. Read the resulting Octal and Symbolic values, which update automatically.
  3. Optionally type a filename in Target to fill in the ready-to-run command.
  4. Click the copy icon next to the octal or symbolic command to copy it for your terminal.

How Linux permissions work

Every file or directory carries three permission sets — owner, group and others — each with read, write and execute. In octal notation, each set is a single digit that sums read (4), write (2) and execute (1):

For what r, w and x mean on directories, the permissions to use for keys and web files, umask and the chmod -R trap, read the guide Linux File Permissions and chmod, Explained.

754
→ owner 7 = 4+2+1 = rwx
→ group 5 = 4+0+1 = r-x
→ others 4 = 4+0+0 = r--
→ symbolic: rwxr-xr--

An optional 4th digit in front (e.g. 4755) sets the special bits: setuid (4), setgid (2) and the sticky bit (1), following the POSIX IEEE Std 1003.1 permission model. This tool computes all three representations — octal, symbolic and the checkbox grid — from each other entirely in your browser, plus the exact chmod command to copy and run.

Examples

1. Fixing "UNPROTECTED PRIVATE KEY FILE!" from SSH. OpenSSH refuses a private key that group or others can read. Type 600 for the key and 700 for the folder, with the path in Target, and copy either command:

Octal 600   Target ~/.ssh/id_ed25519
Symbolic   rw-------
chmod 600 ~/.ssh/id_ed25519
chmod u=rw,g=,o= ~/.ssh/id_ed25519

Octal 700   Target ~/.ssh
Symbolic   rwx------
chmod 700 ~/.ssh
chmod u=rwx,g=,o= ~/.ssh

The same 600 suits a .env file full of secrets. Keep that file out of the repository with a rule from the .gitignore generator. Each octal digit is three permission bits: the number base converter shows 600 in binary as 110000000, which reads as rw- --- ---.

2. A shared team folder where new files keep the group. Typing the symbolic string rwxrwsr-x (note the s in the group's execute slot) gives the octal value with setgid as the 4th digit. Files created inside then inherit the folder's group instead of the creator's primary group:

Symbolic rwxrwsr-x   Target /srv/shared
Octal    2775
chmod 2775 /srv/shared
chmod u=rwx,g=rwxs,o=rx /srv/shared

Reference: POSIX chmod (IEEE Std 1003.1-2024).

Frequently asked questions

How do I read an octal permission like 755?

Each digit is the sum of read (4), write (2) and execute (1) for owner, group and others in that order. 755 means owner=rwx (4+2+1=7), group=r-x (4+0+1=5), others=r-x (4+0+1=5).

What do setuid, setgid and the sticky bit do?

They're an optional 4th octal digit. Setuid (4) makes a program run with its owner's privileges. Setgid (2) makes new files in a directory inherit the directory's group. The sticky bit (1) on a directory means only a file's owner can delete or rename it, even if others have write access — this is how /tmp is usually configured.

Why does the symbolic notation show an uppercase S or T sometimes?

A lowercase s or t means the special bit is set AND the matching execute bit is also set. An uppercase S or T means the special bit is set but execute is off for that category — which is usually a configuration mistake, since setuid/setgid have no effect without execute permission.

Does this tool actually change permissions on my files?

No. It only computes the octal value, symbolic string and the exact chmod command — nothing runs on a server or touches your filesystem. Copy the generated command and run it yourself.