Chmod Calculator

Convert Unix permissions between 755, rwxr-xr-x and chmod commands.

Your input

chmod 755 -rwxr-xr-x
Octal
0755
Symbolic
rwxr-xr-x
ls -l shows
-rwxr-xr-x (for a file) · drwxr-xr-x (for a folder)
Command
chmod 755 filename
Same, in symbolic form
chmod u=rwx,g=rx,o=rx filename

Who can do what

Read (r, 4)Write (w, 2)Execute (x, 1)
Owner (user)✓✓✓
Group✓–✓
Everyone else✓–✓

What does chmod do?

On Linux, macOS and other Unix systems, every file and folder has permissions for three groups: the owner, the group and everyone else. Each group can be allowed to read (r), write (w) and execute (x). The chmod command changes these permissions.

Permissions are often written as three octal digits. Read counts 4, write counts 2 and execute counts 1, and you add them for each group. So 7 is 4 + 2 + 1 (everything), 5 is 4 + 1 (read and execute) and 6 is 4 + 2 (read and write). Mode 755 is rwxr-xr-x. A fourth leading digit can add the special setuid, setgid and sticky bits. This tool converts between all these forms.

How to use the Chmod Calculator

  1. Type a mode such as 755, 4755 or rwxr-xr-x, or pick a common mode from the list.
  2. Read the octal and symbolic forms.
  3. Check the table of who can read, write and execute.
  4. Copy the chmod command.

Real situations

When people use the Chmod Calculator

  • 1

    Work out the command you need

    Pick the right mode for a script, a web folder or a private key, and copy the chmod command.

  • 2

    Read what an existing mode means

    Paste 640 or rw-r----- from a listing and see in plain terms who can do what.

  • 3

    Spot risky permissions

    The tool warns when everyone on the system can write, which is a security problem on shared or web servers.

  • 4

    Learn the octal system

    Change the digits one at a time and watch the symbolic form and the permissions table update straight away.

Good to know

  • Files rarely need execute permission unless they are scripts or programs.

FAQ

Chmod Calculator: questions answered

What does chmod 755 mean?

The owner can read, write and execute (7 = 4 + 2 + 1). The group and everyone else can read and execute (5 = 4 + 1). It is the usual mode for programs and folders. In symbolic form it is rwxr-xr-x.

What is the difference between 644 and 755?

644 (rw-r--r--) lets the owner read and write and everyone else only read. It suits ordinary files. 755 adds execute permission for everyone, which programs need and which folders need so people can enter them.

Is chmod 777 safe?

No. It lets anyone on the system read, write and run the file, which is rarely needed and is a security risk, especially on a web server. The tool shows a warning. Work out which user or group actually needs access and give only that.

What permissions should private files have?

Use 600 (rw-------) for a private file such as an SSH key, so only the owner can read or write it. Use 700 for a private folder or script. Many programs refuse to use a key that others can read.

What are setuid, setgid and the sticky bit?

They are special bits in a fourth leading digit. Setuid (4) makes a program run as its owner, setgid (2) runs it as its group, or makes new files in a folder inherit the group. The sticky bit (1) lets only a file's owner delete it from a folder, as with 1777 on shared temp folders.

Why does a folder need execute permission?

For a directory, execute means permission to enter it and reach the files inside. Without it, you cannot open anything in the folder even if you can read its name list.

Is this Chmod Calculator free and private?

Yes. It is free with no sign-in, and every calculation runs inside your browser. Nothing you type is sent to a server or stored, and the page keeps working offline once it has loaded.

Private by design. No accounts, no cookies, no tracking. Everything you type stays on your device.

How we keep it that way