Chmod / Unix Permissions Calculator

Calculate Unix file permissions with interactive rwx checkboxes, octal notation (755, 644), and chmod commands
This free online chmod / unix permissions calculator runs in your browser and is part of our Developer Tools collection.

Chmod / Unix Permissions Calculator

Interactive Linux & Unix file permissions calculator. Convert between visual checkboxes, octal notation (755, 644), and symbolic string (-rwxr-xr-x).

Command: chmod 755 filename

Permissions Matrix

Role Read (4) Write (2) Execute (1) Octal Value
Owner / User (u) 7
Group (g) 5
Public / Others (o) 5
Special Permission Flags:

How Linux File Permissions Work

  • Read (r = 4): Allows reading file contents or listing directory files.
  • Write (w = 2): Allows modifying file contents or adding/deleting directory files.
  • Execute (x = 1): Allows executing files as programs or entering directories (cd).
  • Permissions sum up: 4 + 2 + 1 = 7 (Full), 4 + 2 = 6 (Read+Write), 4 + 1 = 5 (Read+Execute).
⚡
Instant In-Browser Execution Runs locally in JavaScript without wait times or server delays.
🔒
100% Privacy & Security Your inputs and files are never stored or logged on remote servers.
📱
Cross-Device Responsive Fully optimized for mobile smartphones, tablets, and desktop displays.
🎉
100% Free Forever No subscription fees, no signups, and no software installations.

How to Use the Online Chmod / Unix Permissions Calculator

1 Toggle Read, Write & Execute Checkboxes

Check or uncheck permissions across Owner (User), Group, and Public (Others) columns.

2 Or Enter Octal Code Directly

Type any 3-digit octal number (e.g. `755`, `644`, `777`, `600`) to update the checkboxes immediately.

3 Inspect Symbolic & Command Formats

Review the symbolic Linux notation (e.g. `-rwxr-xr-x`) and ready-to-run shell command (`chmod 755 filename`).

4 Explore Standard Permission Presets

Click quick preset buttons for standard Linux file security models (Web Files 644, Directories/Scripts 755, Private SSH Keys 600, Read-Only 444).

Frequently Asked Questions

Common questions about using this free online chmod / unix permissions calculator.

What do the numbers in octal chmod permissions represent? ▾
Each permission has an octal value: Read (`r`) = 4, Write (`w`) = 2, Execute (`x`) = 1. The sum of these values gives the permission digit: 7 = 4+2+1 (rwx), 6 = 4+2 (rw-), 5 = 4+1 (r-x), 4 = 4 (r--).
What is the standard recommended permission for web files and directories? ▾
For standard web servers (Apache, Nginx): directories and executable scripts should be set to `755` (`rwxr-xr-x`), and static web files (HTML, CSS, images) should be set to `644` (`rw-r--r--`).
Why does SSH reject private keys with permissions other than 600 or 400? ▾
OpenSSH refuses to connect if a private key file (e.g. `id_rsa`) is readable by other users on the system, displaying "Permissions are too open". Setting `chmod 600 id_rsa` ensures only the file owner can read and write the key.
Why should `chmod 777` be avoided in production? ▾
`chmod 777` grants everyone on the server full permission to read, modify, and execute the file or directory, opening severe security vulnerabilities where unauthorized processes can overwrite scripts.

More Developer Tools

Explore related tools in the same category to solve adjacent tasks faster.

JSON FormatterFormat and validate JSONHTML Encoder/DecoderEncode and decode HTML entitiesRegex TesterTest regular expressionsCode MinifierMinify CSS, JS, and HTMLCode BeautifierBeautify CSS, JS, and HTML