chmod Calculator
Convert Unix permissions between symbolic and numeric modes.
The chmod Calculator converts Unix file permissions between symbolic form (rwxr-xr-x) and numeric form (755). Tick read/write/execute per user class and the octal mode, symbolic string and full chmod command appear instantly.
Unix permissions confuse everyone at first: read=4, write=2, execute=1 per class (user, group, other), summed per class into one digit — 644 for normal files, 755 for executables and directories, 600 for secrets. The calculator makes the mapping visible and includes the special bits (setuid 4, setgid 2, sticky 1).
Presets cover the everyday modes, and the numeric result pastes straight into your terminal command. Everything computes locally in your browser.
user
group
other
Special
Rarely needed — leave None for normal files.
chmod command
chmod 0644 file
symbolic: rw-r--r--
Numeric mode
0644
Read=4, write=2, execute=1 per class (user/group/other), summed to one digit each. The sticky bit (t) applies to shared directories; setuid/setgid (s) change who executes a program as.
How to use the chmod Calculator
- Tick read/write/execute for user, group and other.
- Optionally set a special bit (setuid, setgid, sticky).
- Read the numeric mode and symbolic string.
- Copy the chmod command.
- Use the presets for common cases like 644 and 755.
Frequently asked questions
What do the numbers mean?
Each class gets one digit: read=4 + write=2 + execute=1. 755 means user has 7 (rwx), group 5 (r-x), other 5 (r-x). The first digit (when present) holds special bits.
What is the sticky bit used for?
On shared directories like /tmp it lets users create files but only delete their own — the 't' in drwxrwxrwt. Setuid/setgid make executables run with the file owner's or group's privileges.
When should I use 644 vs 755?
644 (rw-r--r--) for normal files — readable by everyone, writable by you. 755 (rwxr-xr-x) for directories and executables — everyone can traverse or run them. Never 777 on shared systems.
Related tools
View all developer tools →JSON Formatter & Validator
Format, minify and validate JSON instantly with clear error messages that point at the exact problem.
Dev ToolsJSON Validator
Check if your JSON is valid and find syntax errors with exact line and column.
Dev ToolsJSON Minifier
Compress JSON to its smallest valid form for storage and transport.
Dev ToolsJSON to CSV
Convert a JSON array of objects into a clean CSV file in one click.
Dev ToolsCSV to JSON
Convert CSV (from Excel or Google Sheets) into a JSON array of objects.
Dev ToolsBase64 Encoder
Encode text or files to Base64 — standard or URL-safe — in your browser.