MultiSwitch MultiSwitch
SEARCH
SEARCH
Converters Tools Currency Feedback

Chmod Permission Calculator

Convert Unix file permissions between symbolic and octal

Toggle permissions below, or enter an octal value directly.

Read Write Execute
Owner
Group
Other
755
Octal (chmod)
rwxr-xr-x
Symbolic

Or enter an octal value to set the checkboxes:

How this works: read = 4, write = 2, execute = 1, summed per group (owner, group, other) to make each octal digit, e.g. chmod 755 = rwxr-xr-x.

How Unix file permissions work

On Linux, macOS and other Unix-like systems, every file and folder has three sets of permissions: for the owner (user), the group, and others (everyone else). Each set can allow read (r), write (w) and execute (x). For folders, “execute” means being able to enter the folder and reach the files inside.

The chmod command sets these, either in symbolic form (rwxr-xr-x) or as a three-digit octal number (755). This calculator converts between the two either way.

How the octal number is built

Each permission has a value: read = 4, write = 2, execute = 1. Add them up for each group to get one digit:

  • 7 = 4+2+1 = rwx
  • 6 = 4+2 = rw-
  • 5 = 4+1 = r-x
  • 4 = r--
  • 0 = ---

The three digits are owner, group and other, in that order. So chmod 755 file gives the owner full control while everyone else can read and run it but not change it.

Common permission settings

  • 755 (rwxr-xr-x): folders, scripts and programs on a web server
  • 644 (rw-r--r--): ordinary files such as HTML, images and config
  • 600 (rw-------): private files only you should read, such as SSH private keys
  • 700 (rwx------): private folders and personal scripts
  • 777 (rwxrwxrwx): anyone can change anything. Almost never the right fix, and a common security hole on web hosts

FAQ

What does a fourth leading digit mean, like 4755?

An optional first digit sets special bits: 4 = setuid, 2 = setgid, 1 = sticky. Sticky is used on shared folders like /tmp so people can't delete each other's files. This calculator handles the standard three digits.

Why does SSH reject my key with “permissions are too open”?

SSH refuses private keys that other users can read. Fix it with chmod 600 ~/.ssh/id_ed25519 (or your key's filename) and chmod 700 ~/.ssh.

How do I apply permissions to a whole folder?

chmod -R 755 folder applies them recursively, but that also makes every file executable. A common safer pattern is 755 for directories and 644 for files, using find with -type d and -type f separately.

Does chmod work on Windows?

Not natively. Windows uses access control lists instead. chmod applies inside WSL, Git Bash or on Linux servers you connect to.