Skip to content
OnlineToolStudio

Chmod Calculator

runs in your browserno sign-upfree

Work out Linux file permissions: tick boxes to get chmod numbers like 755, or decode rwxr-xr-x.

WhoReadWriteExecute
Owner
the user who owns the file
Group
users in the file's group
Others
everyone else
Special
rarely needed

What it means

  • Owner can read and write
  • Group can read
  • Others can read

About this tool

This chmod calculator turns Linux and Unix file permissions into the numbers and letters chmod uses. Tick read, write and execute for the owner, group and others to get the octal number (like 755) and the symbolic form (rwxr-xr-x), or type either one to see the boxes and a plain-English explanation. It also covers the special setuid, setgid and sticky bits.

How to use

  1. Tick the permissions you want, or pick a common one such as 644 or 755.
  2. Or type an octal number (755) or a symbolic string (rwxr-xr-x, also -rwxr-xr-x from ls -l).
  3. Copy the chmod command, for example chmod 755 file.

FAQ

What do the numbers mean?

Each digit is the sum of read (4), write (2) and execute (1), for the owner, group and others in that order. 7 = 4+2+1 = read, write and execute; 5 = 4+1 = read and execute; 4 = read only. So 755 means the owner can do everything and everyone else can read and run.

What should I use for a website?

Usually 644 for files and 755 for folders. Private files such as .env or SSH keys should be 600. Avoid 777: it lets anyone on the server change your files.

What does execute mean for a folder?

For folders, execute means "can enter the folder and open files in it". Without it, files inside cannot be reached even if they are readable — which is why folders are usually 755.

What is the fourth digit (like 4755)?

The special bits: 4 = setuid (run as the file owner), 2 = setgid (run as the group, or new files inherit the folder’s group), 1 = sticky (in shared folders like /tmp, only owners can delete their files).

Related tools

All tools