About the Chmod Calculator
Linux and server file permissions decide who can read, change or run a file. Set them with checkboxes and copy the exact chmod command.
On Linux, macOS and most web hosting, every file and folder has permissions for three groups of people: the owner, the group and everyone else. Each can be allowed to read, write or execute. chmod sets these permissions using either a three-digit number such as 755 or letters such as rwxr-xr-x. This calculator converts between the two and builds the exact command, which is handy for developers deploying websites, people managing a VPS and students learning Linux.
Tick the boxes for each group or type a number or a symbolic string, and the other forms update. Add a file or folder name and choose recursive mode to get a ready-to-run command such as chmod -R 755 public_html.
How to use the Chmod Calculator
- 1Tick the permissions you want, or type a number like 755.
- 2Read the symbolic form (rwxr-xr-x).
- 3Copy the chmod command.
Key features
- Checkbox grid for owner, group and others.
- Two-way conversion between numbers and rwx letters.
- Ready-to-copy chmod command.
- Optional recursive -R flag.
- Explains common values such as 644 and 755.
Practical uses
- Fixing “permission denied” errors on a web server.
- Making a shell script executable.
- Setting correct permissions for WordPress files and folders.
- Learning how octal permissions work.
Example
Ticking read and write for the owner and read for group and others gives 644 and rw-r--r--. With file name config.php the command is chmod 644 config.php, the usual setting for web files.
Tips and common mistakes
- Folders need execute permission to be opened, so they typically use 755 while files use 644.
- Be careful with -R: applying 755 to every file makes them all executable.
- Private keys and credential files should be 600 so only the owner can read them.
Limitations
- Special bits (setuid, setgid and sticky) are not included.
- The tool builds the command; it does not change permissions on any system.
Privacy
Nothing is sent anywhere; the calculator only does arithmetic in your browser.
Frequently asked questions
What does 755 mean?
Owner can read, write and execute; group and others can read and execute. Common for folders and scripts.
What does 644 mean?
Owner can read and write; everyone else can only read. Common for web files.
Should I use 777?
Rarely. It lets anyone change the file and is a security risk on servers.
How is 755 calculated?
Read is 4, write is 2 and execute is 1. Owner rwx is 4+2+1 = 7, group and others r-x are 4+1 = 5.
What permissions should an SSH key have?
Private keys should be 600 (read and write for the owner only); the .ssh folder should be 700.