Chmod Calculator
Toggle owner/group/other read, write, execute checkboxes to get the chmod number and symbolic string, or type a number to see the boxes checked.
Each digit of a chmod number adds read (4), write (2) and execute (1), for owner, group and others in that order.
Use the Chmod Calculator
Permission Checkboxes
| Read | Write | Execute |
|---|
Result
chmod 000 filename
Quick answer
Each digit of a chmod number adds read (4), write (2) and execute (1), for owner, group and others in that order. So 755 is rwxr-xr-x: the owner can read, write and run the file, everyone else can read and run it. 644 (rw-r--r--) is the usual mode for web files. Tick the boxes or type a number to see both forms.
Examples
| Mode | Symbolic | Typical use |
|---|---|---|
| 755 | rwxr-xr-x | Scripts, folders |
| 644 | rw-r--r-- | Web pages, configs |
| 600 | rw------- | SSH private keys |
| 700 | rwx------ | The ~/.ssh folder |
| 664 | rw-rw-r-- | Files a team edits |
| 777 | rwxrwxrwx | Anyone can change it |
Tick the boxes or type a number like 755.
Summary
This calculator converts between the three common ways Unix and Linux systems express file permissions: checkboxes, a three-digit octal number like 755, and a symbolic string like rwxr-xr-x. Toggle any read, write, or execute checkbox for owner, group, or other and the numeric value and symbolic string update instantly. Type a numeric value directly and the matching checkboxes and symbolic string update to match, which is useful when you already know the target mode from a script or a server configuration file.
How it works
- Check or uncheck read, write, execute boxes for owner, group, and other.
- The numeric chmod value (e.g. 755) and the symbolic string (e.g. rwxr-xr-x) update live.
- Or type a numeric value like 644 directly into the number field.
- The checkboxes and symbolic string update to match the number you typed.
- Click "Copy chmod command" to copy a ready-to-run chmod command.
Use cases
- Figure out what chmod 755 or chmod 644 actually grants before running the command.
- Set correct permissions for web server files and directories.
- Translate a symbolic permission string seen in `ls -l` output back into a number.
- Teach or learn how Unix file permission bits map to octal digits.
- Double-check a deployment script or Dockerfile RUN chmod line before shipping.
- Work out permissions for a cron job or SSH key file that requires a specific mode.