Chmod Calculator

Convert between numeric (755) and symbolic (rwxr-xr-x) file permissions — including setuid, setgid and sticky bits.

100% FreeNo sign-upPrivate — runs in your browser

Permission matrix — tick to build the mode:

WhoReadWriteExecute
Owner
Group
Others
Special
Octal mode
—
Symbolic mode
—

Common modes: 644 = files (owner read/write, everyone read), 755 = scripts & directories, 600 = private files, 700 = private directories.

Copied to clipboard

How to use this tool

1
Type a numeric mode

e.g. 755 — or a symbolic mode like rwxr-xr-x.

2
Or tick the matrix

Read, write and execute for owner, group and others, plus setuid/setgid/sticky.

3
Read all three forms

Octal, symbolic and plain-English descriptions update together.

4
Use the result

chmod 755 file applies the numeric form on Linux/macOS.

Formula & worked example

Each class (owner, group, others) is read=4 + write=2 + execute=1, giving one octal digit each: 755 = owner 7 (rwx), group 5 (r-x), others 5 (r-x). A leading fourth digit adds setuid=4, setgid=2, sticky=1. In symbolic form, setuid/setgid replace the owner's/group's x with s (or S when execute is off); sticky replaces others' x with t (or T).

4755 = rwsr-xr-x: owner read/write/execute plus setuid (runs as the file's owner). 1777 = rwxrwxrwt: everyone full access plus sticky (only owners can delete their own files in a shared directory, like /tmp).

Limitations — read this before you rely on it

This covers classic Unix permission bits only — not ACLs, SELinux contexts, or Windows permissions, which layer on top. Numeric modes are shown as 4 digits including the special-bits digit; chmod also accepts 3-digit forms (leading digit assumed 0).

Frequently asked questions

Owner can read and write (6), group and others can only read (4 each). The standard for regular files.

Owner full access (7), everyone else read + execute (5). Standard for scripts and directories.

The program runs with the file owner's privileges, not the caller's — shown as s in the owner's execute position. Powerful and dangerous: never set it on files you do not fully trust.

On a directory, only a file's owner (or root) can delete or rename it, even if others can write to the directory. Classic example: /tmp (1777).

Lowercase s means the special bit is set AND execute is on. Uppercase S means the special bit is set but execute is off — usually a mistake worth fixing.