chmod Calculator

Calculate Unix file permissions visually. Click checkboxes to set read/write/execute for owner, group, and others. Get the octal code, symbolic notation, and chmod command instantly. 100% client-side.

Read (4) Write (2) Execute (1)
Owner
Group
Others
644
rw-r--r--

Did we solve your problem today?

What is chmod?

chmod (change mode) is a Unix/Linux command that sets the access permissions for files and directories. Every file on a Unix system has three sets of permissions — one for the owner, one for the group, and one for everyone else (others) — and three permission types: read, write, and execute.

How to Use This Tool

  1. Click the checkboxes in the grid to enable or disable Read, Write, and Execute for Owner, Group, and Others
  2. The octal code, symbolic notation, and chmod command update instantly
  3. Enter your filename in the field to customise the generated command
  4. Click Copy to copy the command to your clipboard
  5. Use the preset buttons to jump to common configurations

Octal Notation Explained

Each permission type has a numeric value: Read = 4, Write = 2, Execute = 1. You add them together for each group:

PermissionValue
Read4
Write2
Execute1
None0

So rwx = 4+2+1 = 7, rw- = 4+2 = 6, r— = 4 = 4, --- = 0.

The three digits in the octal code represent Owner, Group, and Others in that order:

Common Permission Settings

OctalSymbolicCommon Use Case
755rwxr-xr-xDirectories, executable scripts
644rw-r—r—Regular files, web assets
600rw-------SSH private keys, private config files
400r--------Read-only write-protected config files
700rwx------Private directories, personal scripts
777rwxrwxrwxAvoid — full access for everyone

Symbolic vs Octal Notation

chmod accepts both formats:

chmod 755 myfile          # octal
chmod u=rwx,go=rx myfile  # symbolic

The symbolic form uses u (user/owner), g (group), o (others), and a (all), combined with =, +, or - to set, add, or remove permissions. The octal form is shorter and common in scripts.

Security Considerations

Privacy

All calculations are performed entirely in your browser using JavaScript. No file names, permission values, or any other data are ever sent to a server.

FAQ

What does chmod mean?

chmod stands for "change mode". It is a Unix/Linux command that changes the file system permissions of a file or directory. Permissions control who can read, write, or execute the file.

What does the octal number mean in chmod?

Each digit in the octal notation represents a set of permissions: the first digit is for the owner, the second for the group, and the third for all others. Each digit is the sum of read (4), write (2), and execute (1). For example, 755 = owner rwx (7), group r-x (5), others r-x (5).

What is the difference between octal and symbolic notation?

Octal notation uses a 3-digit number (e.g. 644), while symbolic notation uses a 9-character string (e.g. rw-r--r--). Both represent the same permissions. Symbolic notation is more readable; octal is shorter and widely used in scripts.

What is a safe default permission for files and directories?

644 (rw-r--r--) is standard for regular files — the owner can read and write, everyone else can only read. 755 (rwxr-xr-x) is standard for directories and executables. Avoid 777 (world-writable) for server files as it is a security risk.

Why does the tool show a warning for some permissions?

The calculator shows a security warning when "Others write" is enabled (octal includes 2 in the last digit). This means any user on the system can modify the file, which is almost never intended and is a common misconfiguration.