Unix Permissions Calculator (chmod)
Calculate Unix file permissions visually. Check read, write and execute for owner, group and others to get the octal code (e.g. 755) and symbolic notation (e.g. rwxr-xr-x).
| Entity | Read (r) | Write (w) | Execute (x) | Octal |
|---|---|---|---|---|
| Owner The file owner | 0 | |||
| Group The owning group | 0 | |||
| Others Everyone else | 0 |
Common presets:
Octal code
000
chmod 000 file
Symbolic notation
---------
How it works
Unix permissions are written in octal. Each entity (owner, group, others) gets 3 bits: r (read = 4), w (write = 2) and x (execute = 1). Adding up the bits that are turned on gives that entity's octal digit. For example, rwx = 4+2+1 = 7, rw- = 4+2 = 6, r-x = 4+1 = 5.
From checkboxes to octal, no memorizing
You know what you want: the owner can do everything, the group can read, nobody else touches the file. But chmod expects a number like 755, and one wrong digit either breaks your deploy or leaves the file open to the world. Tick read, write and execute for owner, group and others here and the octal code and symbolic notation (rwxr-xr-x) update instantly, ready to use in your terminal.
Each entity gets three bits: r is worth 4, w is worth 2 and x is worth 1, and the sum forms the octal digit (rwx = 7, rw- = 6, r-x = 5). The detail that trips people up: x means something different on directories. There it grants the right to enter the folder and reach its contents, not to run anything, which is why the convention is 644 for files and 755 for directories. The calculator covers the three classic digits; special bits like setuid and sticky are out of scope.
Use the presets for the common cases and be wary of 777: on a shared server, giving write access to others is asking for trouble. A private SSH key wants 600, and the ssh client itself refuses keys with looser permissions. Everything runs in your browser, nothing is sent anywhere: tick the boxes, check the symbolic string and copy the chmod command shown on screen.
Frequently asked questions
What is the difference between 755 and 777?
What permissions should an SSH key have?
Does it support setuid, setgid and the sticky bit?
Related Tools
Cron Expression Editor
Parse and build cron expressions with human-readable descriptions, next execution times and shortcuts for common schedules.
Cron Generator
Generate cron expressions (5 fields: minute, hour, day, month, weekday) with common presets and natural-language description.
systemd Service (Advanced)
Create an advanced systemd unit file with Restart, RestartSec, MemoryLimit, CPUQuota, ProtectSystem, ProtectHome and User for hardening.
tmux.conf Generator
Create a custom tmux.conf: prefix key, status bar, mouse, splits and pane navigation shortcuts.
SQL Minifier
Minify SQL code by removing unnecessary whitespace and comments.
XML Minifier
Minify XML data by removing unnecessary whitespace and line breaks for production.