Chmod Calculator
Build Unix file permissions with checkboxes and see the octal number, the ls -l symbolic form and a ready-to-copy chmod command, including setuid, setgid and sticky.
Reviewed 23 November 2026 · Free · No account needed
How to use
- Tick read, write and execute for owner, group and others, or choose a common preset such as 644 or 755.
- Alternatively type an octal value like 755 or a symbolic string like rwxr-xr-x; the boxes update to match.
- Add setuid, setgid or the sticky bit if you need them.
- Copy the finished chmod command and read the plain-English explanation underneath.
Example
Input: Owner rwx, group r-x, others r-x
Output: chmod 755 filename · rwxr-xr-x
How it works
Each class (owner, group, others) gets a digit that is the sum of read (4), write (2) and execute (1); an optional leading digit adds setuid (4), setgid (2) and sticky (1).
Digit = 4·r + 2·w + 1·x for each of owner, group and others. A fourth leading digit = 4·setuid + 2·setgid + 1·sticky. Symbolic form writes r, w, x or - in three triplets.
Limits and edge cases
- It builds the permission value and command only; it never changes any file on your machine.
- Only the classic nine permission bits plus setuid, setgid and sticky are covered: ACLs and extended attributes are not.
- Symbolic input must be the nine-character ls -l form (rwxr-xr-x), optionally with a leading file-type character.
- Warnings are general guidance, not a security audit of your system.
- A special bit without the matching execute bit shows as a capital S or T in symbolic form.
- Three-digit octal is accepted and treated as having no special bits.
- Permissions that give others write access trigger a warning.
Privacy
Permissions are calculated locally in your browser. Nothing is sent to a server or stored.
About this page
Written and reviewed by Toolnexo on 23 November 2026. The limits above describe the published tool, not an idealised version of it. If a result looks wrong or the page is unclear, email [email protected] with the tool URL and what you entered. Corrections are published here.
Guides that use Chmod Calculator
Related tools
Questions about Chmod Calculator
What do the numbers in chmod 755 mean?
Each digit is for one class of user, in the order owner, group, others, and is the sum of read (4), write (2) and execute (1). So 7 is read, write and execute; 5 is read and execute. Therefore 755 lets the owner do everything while group and others can read and run the file.
Which permissions should I use for a web server?
A common baseline is 644 for files and 755 for directories, so the server can read and traverse them while only the owner can write. Anything others can write to (a last digit of 2, 3, 6 or 7) deserves scrutiny. Your host or framework documentation takes priority over any general rule.
What are setuid, setgid and the sticky bit?
Setuid makes an executable run with its owner's privileges, setgid does the same for the group (and on a directory makes new files inherit the group), and the sticky bit on a directory lets only a file's owner delete or rename it, as in /tmp. They add a fourth leading octal digit, for example 4755 or 1777.
Does this tool change permissions on my computer?
No. It only calculates the value and writes the command for you to copy. Nothing is executed and no file is touched, because the page runs in your browser and has no access to your file system. You run the command yourself in a terminal, ideally on a test file first.