CHMOD Calculator – calculate Linux file permissions online
The CHMOD Calculator converts Linux file permissions with a click: select read, write, and execute for Owner, Group, and Others to get an octal value (such as 755) and symbolic notation (rwxr-xr-x), including setuid, setgid, the sticky bit, and a ready-to-use chmod command. It also decodes existing values from ls -l. Free, no sign-up required, and entirely in your browser: nothing is uploaded or saved.
Built by Justin Schuessler
Permissions sorted? Run your project on a VPS with full root access.
Permissions
| Permission | Owner | Group | Others |
|---|---|---|---|
| Read | |||
| Write | |||
| Run |
Special bits
Reverse: Enter an octal or symbolic value
Octal
755
Symbolic
rwxr-xr-x
- Owner can read, write and run.
- Group can read and run.
- Others can read and run.
Features
What the CHMOD Calculator converts for you
Linux file permissions consist of three permissions for three user classes, plus optional special bits. The CHMOD Calculator converts them between both formats and builds the appropriate chmod command.
Set permissions with checkboxes
Select read, write, and execute for Owner, Group, and Others. The octal value and symbolic notation update with every click.
setuid, setgid, and the sticky bit
The three special bits form a fourth digit at the beginning, such as 4755. In symbolic notation, they appear as s or S and t or T.
Convert back, including from ls -l
Enter a 3- or 4-digit octal value or the 9-character symbolic notation. ls -l output such as -rwxr-xr-x or drwxr-xr-x also works: the file type character at the beginning is ignored.
Plain-language explanation
The calculator shows one sentence for each of Owner, Group, and Others explaining what is allowed, such as “Group can read and execute.”
Ready-to-use chmod command
Enter the path to the file or directory, enable “Recursive (-R)” if needed, and copy the command. Paths with spaces or special characters are automatically quoted.
Runs entirely in your browser
The conversion happens directly in your browser. Nothing is uploaded or saved, and the calculator does not change permissions on your server: you run the command yourself.
Common values
Common chmod values and when to use them
Each digit is the sum of read (4), write (2), and execute (1), in the order Owner, Group, Others. Enter a value in the calculator’s reverse input field to see it as checkboxes with an explanation.
| Octal | Symbolic | Typical use |
|---|---|---|
| 600 | rw------- | Private files that only the Owner can read and modify, such as private SSH keys |
| 644 | rw-r--r-- | Regular files, such as HTML, CSS, or image files in a web directory |
| 700 | rwx------ | Private directories such as ~/.ssh, or scripts used only by the Owner |
| 755 | rwxr-xr-x | Directories and executable scripts; the calculator’s default value |
| 775 | rwxrwxr-x | Directories that all members of a group should be able to write to |
| 777 | rwxrwxrwx | Full permissions for all users; usually a security risk on servers |
| 1777 | rwxrwxrwt | Shared writable directories such as /tmp, protected by the sticky bit |
| 4755 | rwsr-xr-x | Programs with setuid that run with their owner’s permissions |
How it works
Set Linux file permissions with chmod in 6 steps
From checkboxes to a ready-to-use chmod command for your terminal.
Step 1
Select permissions
Select read, write, and execute for Owner, Group, and Others in the “Permissions” table. The calculator starts at 755 (rwxr-xr-x).
Step 2
Set special bits (optional)
If needed, enable setuid, setgid, or the sticky bit under “Special bits.” The octal value then has four digits, such as 4755.
Step 3
Enter an existing value
Alternatively, enter an existing value in the reverse input field, such as 644, rwxr-xr-x, or ls -l output like drwxr-xr-x. The checkboxes update immediately.
Step 4
View and copy the result
Check the octal value, symbolic notation, and explanation for each class, then use the copy button to copy the value you need.
Step 5
Enter a path
Enter the path to the file or directory in the “chmod command generator” and enable “Recursive (-R)” if needed.
Step 6
Copy and run the command
Copy the finished command, such as chmod 755 with your path, and run it in the terminal or in your SSH session on the server.
Discover more
Related tools for your server
Crontab Generator
Build Cron expressions using a form, with plain-language explanations and a preview of upcoming execution times—all in your browser.
Built by Jakub Martyniak
Bcrypt Generator & Checker
Generate and verify Bcrypt hashes—entirely in your browser, with an adjustable cost factor.
Built by Rugile Rutkauskaite
HTTP Status Codes
Searchable list of common HTTP status codes from 100 to 526: meanings of 404, 403, 500, 502, and 503, common causes and fixes, with nginx and Apache examples. Runs entirely in your browser.
Built by Dimitri Heissler
.htaccess Generator & htpasswd Generator
Create Apache .htaccess and .htpasswd files online: 301 redirects, HTTPS, password protection with bcrypt, WordPress rules, error pages, caching, GZIP, and hotlink protection. Runs entirely in your browser.
Built by Dimitri Heissler
FAQ
Frequently asked questions about the CHMOD Calculator
Quick answers about chmod, Linux file permissions, and this tool.
Each digit is the sum of read (4), write (2), and execute (1). The first digit applies to the Owner, the second to the Group, and the third to Others. So 755 means the Owner can read, write, and execute (7), while Group and Others can read and execute (5): rwxr-xr-x in symbolic notation. The CHMOD Calculator starts with this value and explains the permissions for each class in a sentence.
777 (rwxrwxrwx) gives every user on the system full read, write, and execute permissions. In most cases, this is unsafe: on a web server, it is often enough to let users modify files at will. For web directories, 755 is usually appropriate for directories and 644 for files; 777 is only justifiable in clearly defined exceptional cases.
Use ls -l. The permission string appears at the start of each line, such as -rwxr-xr-x for a file or drwxr-xr-x for a directory. Paste it into the calculator’s reverse input field: the file type character at the beginning is ignored, and you get the octal value with an explanation for each class. The field also accepts 3- or 4-digit octal values and 9-character symbolic notation.
600 (rw-------) is common for the private key, and 700 (rwx------) for the ~/.ssh directory. This gives only the Owner access. If the permissions are too open, SSH will usually reject the key. To set this in the calculator, clear all checkboxes for Group and Others.
For a file: r = read contents, w = modify contents, x = execute file (e.g., a script). For a directory: r = list files, w = create, delete, or rename files, x = enter the directory or open files within it.
These are three special permissions, represented by a fourth digit at the beginning (such as 4755). setuid (4) makes a program run with its owner’s permissions instead of those of the user running it. For directories, setgid (2) makes newly created files automatically inherit the same group. The sticky bit (1) prevents users from deleting other users’ files in shared writable directories (such as /tmp). In the calculator, you set them under “Special bits.” In symbolic notation, they appear as s or S (Owner, Group) and t or T (Others); uppercase means execute permission is absent at that position.
Use the -R flag, such as chmod -R 755 /pfad/zum/ordner. Enable “Recursive (-R)” in the chmod command generator. This sets permissions on the directory itself and all files and subdirectories inside it. Be careful: -R gives files and directories the same permissions. Scripts often need to be executable, while regular files usually do not. For directories containing both, set permissions selectively rather than recursively.
chmod changes who can do what (read, write, and execute permissions). chown changes who owns the file (Owner and/or Group). The two commands are often used together but work independently. The CHMOD Calculator generates chmod commands only.
Any more questions?
Contact SupportYour project needs a reliable server with full root access
A ZAP-Hosting VPS or Root Server gives you full access to file permissions and the entire system configuration.
No setup. No risk. Online in seconds.
Looking for more tools? View all developer tools
