CHMOD Calculator
Work out the correct chmod numeric and symbolic notation for Linux file and directory permissions in seconds.
Permissions
Toggle bits — octal, symbolic and command update live.
Owner (u)
Group (g)
Other (o)
Special bits
Context
Results
644
Octal
-rw-r--r--
Symbolic
0644
4-digit (special bits)
133
inverse umask for selected directory mode
022 / 133
file / directory
chmod command (numeric)
chmod 644 filename
chmod command (symbolic)
chmod u=rw,g=r,o=r filename
What this means
- Owner (u): read, write
- Group (g): read
- Other (o): read
- Execute (x) allows running a file when other system checks also permit it.
The inverse masks above are separate calculations: the selected mode may be impossible from a normal file base because umask can remove permissions but cannot add them. A default ACL can also change Linux file-creation behavior.
This tool models traditional mode bits. Ownership, groups, ACLs, mounts, capabilities, and security policy can change effective access. Linux-specific command behavior may differ on other Unix systems.
Presets
Octal → bits (reverse)
Type a 3- or 4-digit octal number — the checkboxes and all outputs update to match.
Symbolic mode
Applies clauses from left to right. Supports
rwxXst, permission copying with u/g/o, and + - =. X adds search/execute to directories or when any execute bit is already set. When who is omitted, umask filters affected rwx bits.umask calculator
644
rw-r--r--
file (666)
755
rwxr-xr-x
directory (777)
The same mask applies to requested base modes 0666 (files) and 0777 (directories). On Linux, a parent default ACL changes this creation rule.
Parse ls -l output
Permission reference (0–7)
| Value | Binary | Symbolic | Meaning |
|---|---|---|---|
| 0 | 000 | --- | no permissions |
| 1 | 001 | --x | execute only |
| 2 | 010 | -w- | write only |
| 3 | 011 | -wx | write + execute |
| 4 | 100 | r-- | read only |
| 5 | 101 | r-x | read + execute |
| 6 | 110 | rw- | read + write |
| 7 | 111 | rwx | read + write + execute |
chmod 4755)./tmp, chmod 1777).