Unix Permissions Calculator
Convert between symbolic and octal Unix file modes and read the permission bits.
- Runs locally in your browser
- No upload required
Try it
Supported formats
Privacy
Runs entirely in your browser. Your input is never uploaded, stored, or sent to a third party.
755 (rwxr-xr-x)
How it works
- Read the special-digit (setuid/setgid/sticky) and the three rwx triplets.
- Converted each triplet between its octal value (0–7) and its `rwx` symbols.
- Owner rwx, group r-x, other r-x.
- Octal is base-8: 4 = read, 2 = write, 1 = execute, summed per class (owner/group/other).
- The optional leading digit carries setuid (4), setgid (2) and sticky (1); a symbolic `s`/`t` replaces the execute marker in the display.
Methodology
- Detect an octal (3–4 digits) or symbolic mode.
- Convert each rwx triplet to or from its 0–7 octal value.
- Map the optional leading digit to setuid/setgid/sticky and report every class.
Usage
- Enter an octal mode such as 755 or a symbolic mode such as rwxr-xr-x.
- Read the equivalent octal and symbolic forms.
- Check the special-flag and per-class breakdown.
Examples
These are examples, not current values: they use fixed inputs, while the interactive tool computes live results in your browser.
Standard executable file
{
"mode": "755"
}Symbolic read-only
{
"mode": "r--r--r--"
}Setuid binary
{
"mode": "4755"
}Limitations
Reading a mode
A Unix mode is three permission triplets (owner, group, other), each an octal digit from 0 to 7 built from read (4), write (2) and execute (1). `755` is `rwxr-xr-x`: the owner can do everything, everyone else can read and traverse.
An optional fourth digit carries setuid (4), setgid (2) and sticky (1). These change execution privileges or directory deletion rules and are worth auditing on any shared system.
Frequently asked questions
- What do the digits mean?
- Each digit is the sum for one class: 4 = read, 2 = write, 1 = execute. So 7 = rwx, 5 = r-x and 0 = ---.
- What are setuid and setgid?
- They make a program run with the file owner's or group's privileges. They are security-sensitive and are shown explicitly when present.
Sources
- The Open Group Base Specifications: File Access Permissions — The Open Group
- man chmod(1) — Linux man-pages
Send feedback
Tell us if this tool helped, report a problem, or suggest a tool. Only the message you type is sent — never the input you used in the tool.
Was this tool useful?
Prefer to write to us directly? See the contact page.