CHMOD Calculator
Visual chmod calculator with security warnings. Set read/write/execute permissions, get octal and symbolic output instantly. Includes umask, SUID/SGID/sticky bit.
Updated May 2026
umask subtracts from default permissions (666 for files, 777 for dirs). Common: 022 → files 644, dirs 755.
What is umask?
The umask (user file-creation mode mask) defines the default permissions removed from newly created files and directories. It masks out bits from the system defaults: 666 for files and 777 for directories.
chmod 000 chmod -R 000 dir/sudo groupadd webdevsudo usermod -aG webdev alicechmod 775 /var/www/site Group can write — others cannot. Safer than 777.
How to Use This Chmod Calculator
Three input modes, one ready-to-paste command
1. Check the boxes or type a value
Toggle read/write/execute for owner, group, and others — or type octal (`755`) or symbolic (`rwxr-xr-x`) directly.
2. Watch for the security warning
Risky values like 777 or 666 trigger an automatic warning with a safer alternative.
3. Copy the ready-to-run command
"Copy Command" copies `chmod 755 [file]` ready to paste straight into your terminal.
What This Chmod Calculator Does
More than octal-to-symbolic conversion
Automatic security warnings
Flags risky permissions (777, 666, world-writable) and suggests the correct alternative on the spot.
Three input modes
Visual checkboxes, octal (755, 4755), or symbolic notation (rwxr-xr-x) — pick whichever you think in.
Special permission bits
SUID, SGID, and the sticky bit in the 4th digit, each with a plain-language explanation.
Built-in umask calculator
See how your system's umask masks the default permissions for new files and directories.
Permission Examples
Common octal values and what they're actually for
When You'll Reach for This Tool
The scenarios that come up most for people using a chmod calculator
Web server files
644 lets the server read the file but never overwrite it, even if the app itself gets exploited.
Private SSH keys
chmod 600 ~/.ssh/id_rsa — SSH refuses to use a key that's readable by group or others.
Upload directories
755, with access control handled at the application level — never 777.
wp-config.php and password-bearing configs
640 or 600 — never 644, since the file holds your database credentials in plain text.
Common Mistakes
Using 777 to "fix" a permission error
On shared hosting, every other account on the server can then read and overwrite your files.
chmod -R applying execute to files, not just directories
Apply 755 to directories and 644 to files separately with find -type d / -type f instead of one blanket -R.
Forgetting that `~/.ssh` itself also needs 700
Fixing the private key's permissions alone isn't enough — the whole directory needs the correct mode too.
Why Use This Chmod Calculator
The automatic security warning is the real difference: most chmod calculators only convert octal to symbolic without ever flagging that the value you picked opens a hole.
It covers SUID, SGID, sticky bit, and umask — not just the three basic digits — useful when you need to understand why a permission is set, not just copy a number.
Frequently Asked Questions
It grants read, write, and execute access to the owner, the group, AND everyone else on the system. On shared hosting, any other account can overwrite your files; on a public server, a compromised process gets a free path to write anywhere. Use it only for temporary debugging, then revert immediately.
References
Related Tools
- Base64 Decoder Developer Free online Base64 decoder — decode Base64 strings back to plain text instantly in your browser. Validates input and shows decoded payload size.
- Base64 Encoder Developer Encode any text or string to Base64 instantly in your browser. Supports UTF-8, shows character count and output payload size. Free, no signup, 100% client-side.
- Base64 to Image Developer Paste a Base64 string or data URL and instantly preview the decoded image — free online converter supporting PNG, JPEG, WebP, GIF, SVG. No upload, runs locally.
- Bcrypt Generator Developer Free bcrypt hash generator and verifier — 100% client-side. Real-time cost benchmark, hash parser, code snippets for Node.js, Python, PHP, Go. No signup.
- Binary Converter Developer Convert between binary, decimal, hexadecimal, and octal number systems in real time. Supports multi-value input and instant copy. Free, no signup required.