Chmod Calculator โ€” Octal & Symbolic

Chmod calculator: convert between octal (755) and symbolic (rwxr-xr-x), toggle owner/group/other permissions, and copy a ready chmod command.

How it works
  • Checkboxes update octal and symbolic modes together. Optional setuid, setgid, and sticky bits use a leading digit (for example 4755). The command is ready to copy.
Presets:
Owner
Group
Other
Special
About chmod

What is a chmod calculator?

A chmod calculator converts Unix file modes between octal numbers (like 755) and symbolic strings (like rwxr-xr-x). Each triad is owner, group, then other; r=4, w=2, x=1.

Special bits are optional: setuid (4xxx), setgid (2xxx), and sticky (1xxx). Common values: 755 for executables, 644 for files, 700 for private directories.

Common chmod values

OctalSymbolicTypical use
755rwxr-xr-xDirectories / scripts
644rw-r--r--Regular files
700rwx------Private directory
600rw-------Private file
4755rwsr-xr-xsetuid binary

Set files to 644 and directories to 755 recursively

chmod -R 755 makes every file executable, so use find to treat files and directories separately.

Shell
find /path/to/dir -type d -exec chmod 755 {} +
find /path/to/dir -type f -exec chmod 644 {} +

{} + passes many paths to one chmod call (faster than \;). Add -name '*.sh' with 755 for scripts that must stay executable. GNU chmod also offers chmod -R u=rwX,go=rX, where capital X adds execute only to directories and files that are already executable.

Set mode in a shell

Shell
chmod 755 script.sh
chmod u=rwx,g=rx,o=rx script.sh
JavaScript
import fs from "node:fs";
fs.chmodSync("script.sh", 0o755);

Chmod calculator FAQ

What does 755 mean?
Owner can read, write, and execute; group and other can read and execute. Written symbolically as rwxr-xr-x.
What are setuid, setgid, and sticky?
They are special mode bits. setuid/setgid change effective user/group on execute; sticky on directories (like /tmp) limits who can delete files.
Is this calculator online-only?
Conversion runs entirely in your browser. Nothing is uploaded.
What does chmod a+x mean?
Symbolic mode: a means all (user, group and others), + adds a permission and x is execute. chmod a+x script.sh makes a file executable for everyone without touching read/write bits; chmod +x does the same, minus anything blocked by your umask. On a 644 file the result is 755.
What do u, g, o, a and +, -, = mean in chmod?
u is the owner (user), g the group, o others and a all three. + adds, - removes and = sets exactly the listed permissions, for example chmod u=rwx,go=rx file equals chmod 755 file.
How do I chmod 644 files and 755 directories recursively?
Use find: find . -type d -exec chmod 755 {} + for directories and find . -type f -exec chmod 644 {} + for files. Avoid chmod -R 755, which makes every file executable.