Chmod Permissions Calculator

Runs in your browserDeveloper Tools#Linux#DevOps

Convert Linux file permissions between octal (755), symbolic (u=rwx) and ls -l, and copy the chmod command.

Such as 644, 0755 or 4755

u=rwx,g=rx,o=r, go-w or -rwxr-xr-x

Tick who can do what
WhoRead (4)Write (2)Execute (1)Digit
Owner u7
Group g5
Others o5
Special bits (first digit: 0)
chmod mode755-rwxr-xr-x
Octal
755
Symbolic
u=rwx,g=rx,o=rx
ls -l
-rwxr-xr-x
  • Owner can read, change and run
  • Group can read and run
  • Others can read and run
chmod 755 filename

x on a folder means you can open it (cd into it) and reach its files.

How to use, limits & privacy

About Chmod Permissions Calculator

Work out Linux and macOS file permissions in every format. Tick who can read, write and run a file, or type an octal mode such as 755, a symbolic mode such as u=rwx,g=rx,o=r, or an ls -l string such as -rwxr-xr-x, and the other formats update at once. It also handles setuid, setgid and the sticky bit, explains the mode in plain English and builds the chmod command to copy.

How to Use

1

Set the permissions

Tick the boxes, click a common mode such as 644 or 755, or type a mode in the Octal mode or Symbolic or ls -l field.

2

Check what it means

Read the plain-English lines under the result and look out for warnings, such as for 777.

3

Copy the command

Type the file or folder name, turn on -R to include everything inside a folder, then copy the chmod command.

Privacy & Processing

  • Mode: local
  • Files Leave Browser: Local tool processing; review details below
  • Max Input Size: Device memory limits
  • Account Required: No
  • Data Stored Locally: Nothing is saved; reloading the page resets it to 755.
  • Network Processing: Assets or models may require an initial download

Everything runs in your browser. Nothing is uploaded or saved.

Rules & Limitations

  • Works for Linux, macOS and other Unix-like systems. Windows drives (NTFS, FAT, exFAT) and many USB drives ignore these permissions.
  • The symbolic field accepts forms like u=rwx,g=rx,o=r, a+x, go-w and u+s. Changes such as +x apply to the mode shown when you started typing.
  • chmod -R with a mode that includes x makes every file executable. Use a capital X (the tool suggests the command) to give x to folders only.
  • setuid is ignored on scripts by Linux; it only matters for compiled programs.

Top Suggestions

  • Fixing "Permission denied" when running a shell script
  • Setting 600 on an SSH private key so ssh accepts it
  • Choosing 755 for website folders and 644 for files on shared hosting
  • Understanding a mode shown by ls -l in a Linux course

Chmod Permissions Calculator FAQ

What does chmod 755 mean?

The owner can read, write and run the file (7 = 4 + 2 + 1), while the group and everyone else can read and run it (5 = 4 + 1). It is the usual mode for scripts, programs and website folders.

What is the difference between chmod 644 and 755?

644 lets the owner read and write and everyone else only read, which suits ordinary files such as web pages and images. 755 adds execute permission for everyone, which programs, scripts and folders need.

Is chmod 777 safe?

No. 777 lets every user and every program on the server change or replace the file, which attackers can use. Use 755 for folders and 644 for files instead, and give write access only to the owner.

What permissions should an SSH private key have?

Use 600 (or 400), so only you can read it. ssh refuses keys that other users can read and shows an "unprotected private key file" error.

What do setuid, setgid and the sticky bit do?

setuid (4000) runs a program with its owner's rights, setgid (2000) on a folder gives new files the folder's group, and the sticky bit (1000) on a folder such as /tmp lets only a file's owner delete it. They form the first of four digits, as in 4755.

Does this tool change any files?

No. It only calculates modes and builds the command in your browser; you run chmod yourself on your own computer or server.