About the Chmod Calculator
Unix file permissions are usually written as three digits, such as 755, which are hard to decode from memory. This Chmod Calculator lets you tick the permissions you want and shows the octal number, the rwx notation, and the exact chmod command to run.
How it works
Each permission has a value: read is 4, write is 2, and execute is 1. For each of the three classes, owner, group, and others, the calculator adds the values of the boxes you have ticked, giving a digit from 0 to 7. Read and write is 4 + 2 = 6; read, write, and execute is 7; read and execute is 5.
The three digits are written in order, owner first, to form the octal mode. The symbolic form uses r, w, and x for granted permissions and a dash for missing ones, in groups of three. The tool starts at 644 (rw-r--r--), the usual mode for regular files.
How to use
- 1
Tick Read, Write, and Execute in the Owner, Group, and Others boxes, type a mode such as 755 or rwxr-xr-x to decode it, or click a common mode like 644.
- 2
Read the octal number and symbolic string in the result box.
- 3
Copy the command shown, such as chmod 755 filename, and replace filename with your file or folder.
- 4
Check the notes below the result if you need to apply it on macOS or Windows.
Worked examples
Regular file (default)
A web page or config file that everyone may read but only the owner may edit.
Executable script or folder
A deploy script that others need to run but not modify.
Private key
An SSH private key that only you should read.
SSH refuses to use private keys that other users can read, so 600 (or 400) is required.
Frequently asked questions
What does chmod 755 mean?+
The owner can read, write, and execute (7), while the group and everyone else can read and execute (5). It is the standard mode for scripts, programs, and shared directories.
Is chmod 777 safe to use?+
Usually not. It lets every user on the system read, modify, and execute the file. On web servers it is a common security risk; fix the file owner instead.
What permissions should an SSH private key have?+
600 (rw-------) or 400 (r--------). SSH refuses to use a private key that other users can read.
Why is my script giving 'Permission denied'?+
It probably lacks the execute bit. Tick Execute for the owner (for example 755 or 744) and run the chmod command shown.
Can I use chmod on Windows?+
Not in Command Prompt or PowerShell. Use WSL or Git Bash to run chmod, or manage Windows permissions with icacls, which uses a different model.