Chmod Calculator (Linux File Permissions)
Developer ToolsTick read, write and execute and get the chmod number and rwx string, or type either one.
| Who | Read (4) | Write (2) | Execute (1) | Digit |
|---|---|---|---|---|
| Owner (u) | 7 | |||
| Group (g) | 5 | |||
| Others (o) | 5 |
chmod 755 fileProcessed in your browser. A copy of each run is saved to your past runs so you can reopen it. Privacy
About
What the Chmod Calculator does
The Chmod Calculator converts Linux and macOS file permissions between three forms: checkboxes for read, write and execute for the owner, group and others; the octal number such as 755; and the symbolic string such as rwxr-xr-x. Change any of them and the others follow. It also handles the setuid, setgid and sticky bits, shows the chmod command to run, and explains the common permissions.
Steps
How to use it
- 1Tick the permissions you want, or type a number such as 644, or a string such as rw-r--r--.
- 2Read the plain-English summary below.
- 3Copy the chmod command and run it in your terminal.
Example
A real run
Input
755
Output
Symbolic: rwxr-xr-x Owner: read, write, execute (7 = 4 + 2 + 1) Group: read, execute (5 = 4 + 1) Others: read, execute (5 = 4 + 1) Command: chmod 755 file
Each digit is the sum of read (4), write (2) and execute (1) for one group of users, so 7 means all three and 5 means read and execute.
Options
Every setting, and when to use it
- Read, write and execute
- Read (4) lets someone see a file's contents or list a directory; write (2) lets them change it or create and delete files in a directory; execute (1) lets them run a file or enter a directory. Each row's digit is the sum.
- setuid, setgid and sticky
- The optional fourth digit at the front. setuid (4) runs a program as its owner, setgid (2) runs it as its group or makes new files in a directory inherit the group, and sticky (1) on a directory such as /tmp lets people delete only their own files.
- Recursive (-R)
- Adds -R to the command so it applies to a directory and everything inside it. Use it with care: files and directories usually need different permissions.
Good to know
Common problems and limits
This calculates permission values; it does not change any files. Run the command on the machine itself.
Access control lists (ACLs), SELinux labels and Windows permissions are separate systems and are not covered.
To convert other numbers between octal, binary and decimal, use the Number Base Converter.
Audience
Who uses it
- Developers and DevOps engineersSet the right permissions for deploy scripts, SSH keys, web roots and upload directories, alongside the schedule from the Cron Expression Generator.
- StudentsLearn how the octal digits map to read, write and execute bits.
- Website ownersUnderstand the permission numbers a hosting control panel or support article asks for, such as 644 for files and 755 for folders.
FAQ
Frequently asked
What do chmod 755, 644, 600, 700 and 744 mean?
755: the owner can read, write and run; everyone else can read and run. 644: the owner reads and writes; everyone else reads. 600: only the owner can read and write. 700: only the owner has any access. 744: the owner has full access; everyone else can only read.
Why is chmod 777 risky?
777 lets every user on the system read, change and run the file, so any compromised account or process can alter it. It is a common quick fix for permission errors that leaves a security hole; give write access only to the user or group that needs it.
What does chmod -R do?
It applies the permission to a directory and recursively to everything inside it. Applying one mode to everything is usually wrong, because directories need execute to be entered while ordinary files do not; find with -type f and -type d lets you set them separately.
What is symbolic mode, like u+x?
A way to change permissions relative to the current ones: u, g, o and a mean user, group, others and all; + adds, - removes and = sets. chmod u+x script.sh makes a script executable for its owner without touching other bits.
Which permissions should web files have?
A common setup is 644 for files and 755 for directories, owned by your deploy user, with only upload or cache directories writable by the web server. Configuration files with passwords should be 600 or 640.
Is anything sent anywhere?
No. The calculation happens in your browser, and only the resulting number and options are saved to your past runs when you copy the command.
Automation: an MCP tool chmod(value) → octal, symbolic and an n8n node are planned for this tool.