Chmod Calculator

Click the read, write, and execute boxes for owner, group, and other — the octal mode (e.g. 755) and the ls -la-style symbolic form (e.g. -rwxr-xr-x) update live. Toggle the setuid, setgid, and sticky bits for a four-digit mode. Or paste a mode into the input and the grid follows. Pure client-side, no upload.

3 digits, or 4 if you include setuid / setgid / sticky
10-character ls -la form, or 9 without the file type
Read Write Execute Octal
Owner 0
Group 0
Other 0
Special bits 0
Octal 0000
Symbolic ----------
chmod command chmod 0000 <file>

No permissions set.

Common presets

How to read this

r — read
Owner / group / other can read the file's contents (or list the directory).
w — write
Owner / group / other can modify the file (or add / remove entries in a directory).
x — execute
Owner / group / other can run the file as a program (or cd into a directory).
setuid (4)
When set on an executable, the program runs as the file's owner. Shown as s in place of the owner's x.
setgid (2)
Like setuid, but the program runs as the file's group. On a directory, new files inherit the group. Shown as s in place of the group's x.
sticky (1)
On a directory, only the file's owner can rename or delete their files even when the directory is world-writable. Shown as t in place of other's x.
Octal
Four digits: specials × owner × group × other. Each digit is the sum of r (4) + w (2) + x (1).
Symbolic
Ten characters: the first is the file type (- for a regular file), then three triples of r / w / x for owner, group, other. The same form ls -la prints.