Chmod Calculator: Linux Permissions 755, 644 & 777
Tick read, write and execute or type 755 to get rwxr-xr-x, a ready chmod command and a warning for 777. Includes umask, SUID, SGID and sticky bit.
Updated November 2026
Reviewed by Rafael Duarte
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
In the Terminal Command card, replace [file] with your file name and click Copy to get chmod 755 your-file, ready to paste into your terminal. The Copy Symbolic button copies the rwxr-xr-x form instead.
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 go in an extra digit on the left (4755, 2775, 1777), 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
Besides converting 755, 644 or 777 to rwxr-xr-x, rw-r--r-- or rwxrwxrwx, it tells you when the value you picked opens a hole, such as 777, 666 or write access for others.
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.
With 755, only the owner can write — group and others can just read and execute. With 777, everyone gets write access too. With 777 the calculator shows the "Permission 777 — SECURITY RISK" warning. Use 755 for directories and executables in production, and reserve 777 for a debugging session you'll undo right after. For each number explained with examples, read What 755, 775, and 644 Permissions Mean on Linux.
The owner can read and write the file, while the group and everyone else can only read it (rw-r--r--). It's the usual mode for web files such as .html, .css and images, and it's the Web Files preset in the calculator.
600 (rw-------). SSH refuses to use a key that's readable by group or others and shows a "Permissions too open" error. The ~/.ssh/ directory itself should be 700, or SSH will reject the key even if the file mode is correct.
Yes, and that's usually a mistake — files rarely need the execute bit unless they're actual programs. Run find . -type d -exec chmod 755 {} \; and find . -type f -exec chmod 644 {} \; separately instead of one recursive chmod.
SUID (4000) makes an executable run with the file owner's privileges instead of the caller's. SGID (2000) does the same for the group, or makes new files inherit a directory's group automatically. Sticky bit (1000) restricts deletion so each user can only remove their own files — the classic example is /tmp.
Type a umask such as 022 in the Integrated umask Tool and it masks the system defaults, 666 for files and 777 for directories, showing the result right away. With 022, new files come out as 644 and new directories as 755. For how umask fits together with chmod and chown, see chmod, chown and umask on Linux.
777 and 666 get their own security-risk warning, and SUID or SGID combined with write access for others is flagged as a critical or high risk. 776 and 757 show "Overly Permissive Group/Others Access", and any other value where others can write (last digit 2, 3, 6 or 7, like 646) shows "Others Have Write Access". Write access for the group alone, as in 775, 770 or 664, gives no warning, because that's the normal setup for a folder shared by a team.
Drop the first character, which shows the file type (- for a file, d for a directory), and paste the remaining 9 into the Symbolic tab: rwxr-xr-x becomes 755 in the Octal Output. The tab accepts exactly 9 characters, including the s, S, t and T of the special bits, so rwsr-xr-x becomes 4755.
References
Related Tools
- Base64 Decode Online — Free Base64 to Text 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: Encode Text, PDF & Files Online Developer Encode UTF-8 text or any file (PDF, DOCX, XLSX, ZIP up to 50 MB) to Base64 or Base64URL. Runs in your browser, nothing is uploaded. Free, no sign-up.
- Base64 to Image Online: Preview and Save PNG, JPG, GIF Developer Paste raw Base64 or a data:image URL to preview the image with its type, dimensions and size, then save the original file. No upload, runs in your browser.
- Bcrypt Generator & Checker: Hash and Verify Passwords Developer Generate a bcrypt hash with cost 4 to 18 or check whether a password matches a $2a$, $2b$ or $2y$ hash. Runs in your browser; nothing is uploaded.
- Binary Converter: Decimal, Hex and Octal at Once Developer Type a number in binary, decimal, hex or octal and see all four bases at once, with a bit visualizer. Exact even for huge integers. Free, in your browser.