644rw-r--r--chmod 644 filenamePermission Grid
| Owner | Group | Others | |
|---|---|---|---|
| Read | |||
| Write | |||
| Execute |
Manual Input
Special Permissions
Common Presets
How to Calculate Linux File Permissions
- 1
Select permissions using the visual grid
Click the checkboxes in the permission grid to toggle Read, Write, and Execute permissions for Owner, Group, and Others. Each combination updates the numeric and symbolic output instantly, so you can see the result as you build your permission set. - 2
Choose a common preset or enter an octal value
Use the common presets like 644, 755, or 777 to quickly set standard permission configurations. Alternatively, type a three- or four-digit octal number directly into the numeric field and the grid will update to reflect your input. - 3
Configure special permissions if needed
Enable SUID, SGID, or the Sticky Bit for advanced scenarios. SUID (4000) runs executables as the file owner, SGID (2000) runs them as the group, and the Sticky Bit (1000) prevents other users from deleting files they do not own in shared directories. - 4
Copy the chmod command and apply it
Copy the generated chmod command with a single click and paste it into your terminal. The command includes both the permission value and a placeholder filename you can replace with your actual file or directory path.
Common Use Cases
Web Server File Permissions
Deployment Script Permissions
Shared Directory Configuration
SSH Key and Config Security
Why Use Our Chmod Calculator?
The chmod command is one of the most essential tools in Linux and Unix system administration. It is defined by the POSIX standard (IEEE Std 1003.1) and implemented in GNU coreutils on Linux, in BSD on macOS, and in every commercial Unix. It controls who can read, write, and execute files and directories, forming the first line of defense in your server's security. This free chmod calculator converts between numeric (octal) and symbolic permission formats instantly, so you never have to memorize octal codes or count permission bits manually.
Each permission digit represents a combination of Read (4), Write (2), and Execute (1). The first digit applies to the file owner, the second to the group, and the third to all other users. Advanced scenarios require a fourth digit for special permissions: SUID (4 — runs the executable as the file's owner, used by passwd and sudo), SGID (2 — runs as the file's group, or makes new files in a directory inherit the directory's group), and the Sticky Bit (1 — on directories, only the file's owner can delete or rename the file regardless of directory permissions; this is what protects /tmp from cross-user mischief). The full mechanics are documented in the Linux kernel filesystem documentation and Apple's macOS shell scripting guide. This calculator handles all four digits and displays the full symbolic representation alongside the octal value. Pair it with the Regex Tester when parsing permission strings from ls -l output, or use the Cron Expression Generator to schedule permission audits on your servers.
Common production patterns. Files served by a web server typically use 644 (rw-r--r--); executable scripts and binaries use 755 (rwxr-xr-x); private files like SSH keys (~/.ssh/id_rsa) and database credentials must be 600 (rw-------) or OpenSSH and most database clients will refuse to use them. Web upload directories often need 755 on directories and 644 on files; never use 777 on a production system — it is almost always a misdiagnosis of a different problem (wrong owner, wrong group, missing parent traversal permission). The man chmod page documents recursive operation (-R), reference-file mode copying (--reference), and the symbolic-mode mini-language in detail. umask (default 022 on most distros) controls the permissions newly-created files receive — set it in ~/.bashrc or /etc/profile rather than fixing every new file with chmod.
Whether you are hardening a production web server, configuring SSH keys, setting up shared directories, or writing deployment scripts, getting file permissions right prevents security vulnerabilities and silent failures. Use the Diff Checker to compare permission configurations across environments, or the Base64 Encoder when encoding permission data for configuration files. All processing runs entirely in your browser — nothing is uploaded to any server, keeping your workflow fast and private.
How It Compares
chmod-calculator.com and permissions-calculator.org handle basic numeric/symbolic conversion but lack special permission support (SUID/SGID/Sticky) and preset shortcuts. permissions-calculator.com shows static reference charts but no interactive grid. RapidTables chmod calculator is functional but ad-heavy and has no command-output preview. askubuntu.com answers and Stack Overflow snippets get the job done but you cannot click your way to a chmod command. This chmod calculator provides a fully interactive visual grid where you click to set permissions and see the octal, symbolic, and full chmod command update in real time. SUID, SGID, and Sticky Bit are first-class features, not afterthoughts.
Unlike server-based permission tools, this calculator runs entirely in your browser. There is no signup, no usage tracking, and no data leaves your device. For developers who frequently switch between numeric and symbolic notation, the instant two-way conversion and one-click command copying eliminate the need to keep a chmod cheat sheet open in another tab.