Chmod Calculator
Convert Linux file permissions between octal and symbolic notation. Check boxes to build the command, or type numbers to reverse engineer existing permissions.
What is a Chmod Calculator?
A Chmod Calculator is a utility designed to help developers and system administrators easily generate correct numeric (octal) or symbolic values for Linux/Unix file permissions. The `chmod` command (change mode) dictates who can read, write, or execute a file on a server.
Because these permissions are based on an octal binary system (base-8) where Read = 4, Write = 2, and Execute = 1, it can be tedious to calculate the correct number manually. Our calculator provides a visual interface to build the exact permissions you need without the math.
How to use the Permission Builder
- Checkbox Mode: Simply check the boxes for the permissions you want to grant to the Owner, Group, and Public/Others. The Octal, Symbolic, and Command outputs will update instantly below.
- Reverse Mode: If you are looking at an existing octal string (like
644) and want to know what it means, click the "Octal" output box and type the number. The checkboxes will automatically update to reflect those permissions. - Copy Command: Once your permissions are set, copy the full
chmod 755 filenamecommand and paste it directly into your terminal.
Features of this Tool
- ✓ 100% client-side — your queries run locally in your browser.
- ✓ No sign-up or account required.
- ✓ Bidirectional Sync: Edit the checkboxes to generate the octal, or type the octal to see the checkboxes update.
- ✓ Advanced Special Bits: Full support for
setuid,setgid, and thesticky bitfor complex system administration tasks. - ✓ One-Click Presets: Instantly apply common configurations like "644 for files" or "755 for directories".
Frequently Asked Questions
What do the numbers 4, 2, and 1 mean?
Linux permissions are represented in binary. Read is represented by `100` in binary (which is 4 in decimal/octal). Write is `010` (2). Execute is `001` (1). When you want a user to have both Read and Write access, you add the numbers together: 4 + 2 = 6.
What are standard permissions for a web server?
If you are setting up files for a web server like Nginx or Apache, generally directories should be set to 755 (Owner can rwx, others can rx) so the server can enter the folder. Standard files like `.html` or `.php` should be 644 (Owner can rw, others can only read).
What does the 4th digit in the "Numeric Full" output do?
The standard three-digit octal (like 755) actually implies a hidden leading zero (0755). That first digit represents the "Special" bits: Setuid (4), Setgid (2), and Sticky (1). These are advanced flags used to control execution privileges and directory deletion rules on shared systems.