About the Chmod Calculator
This Chmod Calculator turns your permission choices into octal numbers, an ls-style symbolic string, and example chmod commands. You work with owner, group and others checkboxes or type a numeric or symbolic mode. You can also set setuid, setgid or the sticky bit. The tool runs fully in your browser, so nothing you type is uploaded to a server. Results update instantly as you type; there is no calculate button. You can copy any output and create a shareable link that reopens with your numbers. The page highlights common choices such as 644 for files, 755 for folders and scripts, and 600 for private keys, and it warns against using 777. The calculator shows the matching s, S or t markers for special bits and gives a plain-language who-can-do-what summary. It does not change files; it only builds commands and representations you can paste to a shell.
How to use it
- 1Pick Owner permissions (r, w, x or combinations).
- 2Pick Group permissions (r, w, x or combinations).
- 3Pick Others permissions (r, w, x or combinations).
- 4Choose a Special bit or type a numeric or symbolic mode.
- 5Copy the octal, symbolic or chmod command or share the link.
Worked example
Input: Owner = rwx, Group = r-x, Others = r-x, Special = None. Result: Octal 755, Symbolic rwxr-xr-x, Command chmod 755 file, Symbolic command u=rwx,g=rx,o=rx. Who can do what: owner read/write/execute; group read/execute; others read/execute.
The formula
Each digit adds read = 4, write = 2 and execute = 1 for the owner, the group and everyone else, so 7 = rwx, 6 = rw-, 5 = r-x and 4 = r--An optional first digit sets setuid (4), setgid (2) or the sticky bit (1), shown as s, s or t in place of the matching x (capital S or T when x is not set)Source: POSIX chmod definition (The Open Group)GNU coreutils chmod manual. Last checked 7 November 2026.
What it is good for
- Instant browser conversion with no uploads.
- Shows octal, symbolic, chmod and symbolic-chmod forms.
- Supports setuid, setgid and sticky bit markings.
- It only builds commands and displays modes; it does not change files.
- It does not handle ACLs or umask calculations for new files.
Questions people ask
What does chmod 755 mean?
Mode 755 means owner has read, write and execute; group and others have read and execute. The ls-style string is rwxr-xr-x and the numeric digits are 7 (owner), 5 (group), 5 (others).
When should I use 644 versus 755?
Use 644 for regular files so the owner can write and others can only read. Use 755 for directories and executable scripts so everyone can enter or run them.
What do setuid, setgid and sticky bits do?
Setuid (leading 4) runs an executable with the file owner's privileges. Setgid (leading 2) runs with the file group or makes new files inherit the directory group. Sticky (leading 1) on a directory prevents users from deleting others files, as in /tmp.
Why should I avoid 777?
Mode 777 gives write access to everyone and lets any user change the file. That often signals an ownership or configuration problem and increases risk.
How do I change permissions recursively without making files executable?
Avoid a single chmod -R with one mode. Use find to set directories and files separately, for example: find dir -type d -exec chmod 755 {} +; find dir -type f -exec chmod 644 {} +. Or use symbolic u=rwX,go=rX.
Does this tool change file permissions on my machine?
No. The tool builds the octal and commands you can copy. You must run chmod on your host to apply changes.
Will this calculator work for Windows file servers?
chmod arithmetic is POSIX-based. Windows file servers often use NTFS ACLs or Samba mappings, so the numeric modes may not map directly on Windows hosts.
Help keep every tool free
FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.