Chmod Calculator
DevOps & FrontendLinux chmod calculator, IPv4 CIDR subnet planner, HTTP status code search, and raw security headers auditor.
100% client-side — files and inputs never leave your browser.
About this tool and how it works
Linux file permissions explained
Every file on Linux and macOS has three permission sets — owner, group, and others — and each set can allow read (r), write (w), and execute (x). Tick the boxes to get the octal number for chmod and the symbolic string shown by ls -l, or type an octal value like 640 to see what it allows.
How the octal number is built
Each permission has a value: read = 4, write = 2, execute = 1. Add them for each set and write the three digits in order owner–group–others. rwx = 4+2+1 = 7, r-x = 4+1 = 5, so rwxr-xr-x is 755.
Common values
644(rw-r--r--) — regular files: owner edits, everyone reads.755(rwxr-xr-x) — directories and scripts/binaries.600(rw-------) — private files such as SSH keys and.envfiles. SSH refuses keys that are readable by others.700— private directories, e.g.~/.ssh.775/664— shared group work directories.
Directories behave differently
On a directory, read lets you list names, write lets you create and delete files inside it, and execute lets you enter it (cd) and access files by name. A directory without x is effectively locked even if r is set.
Avoid 777
chmod 777 lets every user on the system modify the file. It "fixes" permission errors by removing security; instead, set the correct owner with chown and use 755/644. To apply changes recursively with different values for files and folders: find . -type d -exec chmod 755 {} + and find . -type f -exec chmod 644 {} +.
Frequently asked questions
What does the leading digit in chmod 4755 mean?
An optional fourth digit sets special bits: 4 = setuid, 2 = setgid, 1 = sticky. For example, /tmp uses 1777 so users can only delete their own files.
What is the difference between chmod +x and chmod 755?
chmod +x adds execute permission to the existing permissions for everyone allowed by the umask; 755 sets all permissions to an exact value.
Why does SSH say my key permissions are too open?
Private keys must not be readable by group or others. Run chmod 600 on the key file and chmod 700 on the ~/.ssh directory.
Other tools
Compute network range, broadcast, netmask, wildcard, and host count.
Search HTTP status codes (100–511) and audit security headers (CSP, HSTS).
Convert HEX/RGB/HSL/Tailwind, build palettes, and verify WCAG AA/AAA.
Visually design CSS gradients, layered shadows, and glassmorphism.
Generate SEO/OG tags and preview Google, WhatsApp, LinkedIn & X cards.
Create direct wa.me links with pre-filled messages and downloadable PNG QR codes.
Merge, split, compress, rotate pages, and convert between PDF and images 100% locally.
Shrink and convert JPG, PNG, and WebP images locally in your browser without uploading.
Inspect hidden GPS coordinates, author, company, revisions, and XMP metadata locally in your browser.