Chmod Calculator

Convert Unix permissions between checkboxes, octal and rwx notation.

ReadWriteExecute
Owner (u)
Group (g)
Others (o)

🔒 Runs entirely in your browser. Nothing you enter is uploaded or stored.

What is the Chmod Calculator?

Every file on Linux, macOS and other Unix systems has three sets of permissions: for its owner, its group and everyone else. Each set can allow read (r = 4), write (w = 2) and execute (x = 1). Add the numbers in each set to get the familiar octal notation. 7 = 4+2+1 = rwx and 5 = 4+1 = r-x, so 755 means the owner can do everything while the group and others can read and execute.

This chmod calculator converts between checkboxes, octal (644) and symbolic notation (rw-r--r--, as shown by ls -l), and generates the chmod command. It also handles the special bits: setuid (4000), setgid (2000) and the sticky bit (1000), and warns about risky settings such as world-writable files.

How to use the Chmod Calculator

  1. Tick the permissions you want, type an octal value like 644, or paste the symbolic string from ls -l.
  2. The other two forms update instantly.
  3. Copy the generated chmod command and replace filename with your file.

Common permissions

OctalSymbolicTypical use
644rw-r--r--Normal files, web pages, configs
755rwxr-xr-xDirectories, scripts and programs
600rw-------Private files such as SSH keys and .env files
700rwx------Private directories such as ~/.ssh
777rwxrwxrwxAvoid: anyone can change the file

Frequently asked questions

What does chmod 755 mean?

The owner can read, write and execute (7). The group and everyone else can read and execute but not modify (5 and 5). It is the standard permission for directories and executable scripts.

Is chmod 777 safe?

Almost never. 777 lets every user on the system change or replace the file, and attackers often exploit it. Fix ownership with chown instead, and use 755 or 775.

What does execute mean for a directory?

For directories, execute (x) means you can enter the directory and access the files inside it. Read (r) only lets you list the names.

Why does SSH reject my private key?

OpenSSH refuses keys that other users can read. Run chmod 600 ~/.ssh/id_ed25519 and chmod 700 ~/.ssh.