Convert between octal 755 and symbolic rwxr-xr-x permissions.
| Permission | Read | Write | Execute |
|---|---|---|---|
| Owner | |||
| Group | |||
| Others |
🔒 Octal digits are Owner / Group / Others, each the sum of read (4), write (2), execute (1). A leading fourth digit encodes the special bits: setuid (4), setgid (2), sticky (1) — so 4755 means setuid + rwxr-xr-x. In symbolic form they appear as s/S and t/T over the execute slot.
The Chmod Calculator is based on the following formula:
octal digit = read(4) + write(2) + execute(1)
Variables: read: r permission, worth 4 write: w permission, worth 2 execute: x permission, worth 1 octal digit: one digit for each of owner, group, and others
Each of the three groups (owner, group, others) becomes one octal digit by adding the enabled permission values. rwx = 7, rw- = 6, r-x = 5.
Worked example: Step 1: Owner has rwx = 4 + 2 + 1 = 7. Step 2: Group has r-x = 4 + 0 + 1 = 5. Step 3: Others have r-- = 4 + 0 + 0 = 4. Result: chmod 754.
Linux file permissions decide who can read, write, or execute every file — and chmod is how you change them. This calculator turns the abstract octal and symbolic notations into a clickable grid: tick the boxes and instantly see the octal value (755), the symbolic form (rwxr-xr-x), and a ready-to-paste chmod command. It also works in reverse — paste 644 or rw-r--r-- and the grid updates. Everything runs locally in your browser.
Each octal digit is the sum of read = 4, write = 2, execute = 1, and the three digits cover Owner, Group, and Others in that order. So 755 means the owner gets 4+2+1 (everything), while group and others get 4+1 (read + execute) — the standard for scripts and web directories. 644 (owner read/write, everyone else read-only) is the default for regular files, and 600 locks a file to its owner — the required mode for SSH private keys.
A fourth, leading octal digit encodes three special flags. setuid(4) makes an executable run with the file owner's privileges — that is how passwd edits /etc/shadow. setgid(2) does the same for the group, and on a directory it forces new files to inherit the directory's group. The sticky bit(1) on a directory lets only a file's owner delete it — essential for shared folders like /tmp (1777). In symbolic output they overlay the execute slot as s/S and t/T.
Resist chmod 777: world-writable files are a classic security hole, and the real fix is usually correcting ownership with chown. Remember that directories need the execute bit — without it you can list names (r) but cannot enter or access anything inside. Also note chmod is not recursive unless you pass -R, and recursive apply-every mode to a tree mixes files and folders — use find . -type d -exec chmod 755 {} + and a matching -type f pass instead.
More tools you might find useful
Format and indent minified HTML, CSS, JS, and JSON.
Luhn checksum plus brand prefix and length rules, computed locally.
Click-to-build cron schedules with live plain-English preview.
Byte-safe CSS compression: calc() spaces, strings and /*! banners survive.