chmod Calculator
100% CLIENT-SIDE
Numeric / Symbolic Input
Permission Breakdown
More from ChmodTest
Umask Calculator
Turn a umask into the default file and directory modes it produces (022 gives 644 and 755), or find the…
chmod Symbolic Mode Calculator
See what chmod u+x,go-w, a=r or g=u does to a starting mode: the resulting octal and rwx string, with the…
Guides
Frequently Asked Questions
Is my data safe on chmodtest.com?
Yes. The permission calculator runs entirely in your browser. Nothing you type is sent to a server, stored, or logged.
How do I convert octal 755 to rwxr-xr-x?
Each octal digit encodes one set of permissions: 4 for read, 2 for write, 1 for execute. 7 = 4+2+1 gives rwx for the owner, and 5 = 4+1 gives r-x for group and others. Enter 755 in the calculator to see all three classes expanded.
What umask gives me 644 files and 755 directories?
A umask of 022. Directories start at 777 and regular files at 666, and the umask removes permissions: 777 minus 022 is 755 for directories, 666 minus 022 is 644 for files. Use the umask calculator page to work it out, or to find the umask for a mode you want.
🧭 Pro Tips & Gotchas
Reading the modes
- Three octal digits, three
rwxslots each: owner, group, other.r=4,w=2,x=1, summed per slot — so755isrwxr-xr-x. - The tool decomposes the octal into per-class symbol strings, which is the fastest way to spot the accidental
777.
Permission gotchas
- Four-digit modes carry the special bits:
4xxxsetuid,2xxxsetgid,1xxxsticky.chmod 755on a file that needed4755silently drops the setuid bit — andchmodwithout the leading digit is the usual reason a SUID binary stops working after maintenance. xon a directory means "traverse/enter", not "execute". A directory at644cannot becd'd into even though its listing looks readable; conversely--x(711) hides listings while allowing access, which is exactly what you want for shared home directories.- Web servers want
755dirs and644files.777is the reflex fix that opens a write-anywhere hole; the real cause is usually ownership, not mode — fix it withchown -Rinstead. - SSH refuses keys and configs that are group/world-writable:
600for private keys,700for~/.ssh,644forauthorized_keys. The error message names the wrong file surprisingly often. - umask is applied at create time and is inverted: umask
022yields644files, umask077yields600. It never affectschmod, which is why "I chmod 644 and it came out 600" means something else rewrote the file. - ACLs (
setfacl) and SELinux contexts override POSIX modes entirely —ls -lwill show755while the effective access is nothing. Checkgetfacl/ls -Zbefore concluding a mode is wrong.
Developer Sponsor / Partner