Chmod Calculator
Convert Unix permissions between octal and symbolic, with a bit grid.
| Read | Write | Execute | Special | |
|---|---|---|---|---|
| Owner | ||||
| Group | ||||
| Others |
This tool needs JavaScript enabled to run in your browser.
What this tool does
Work out Unix file permissions in both directions. Toggle the read, write and execute boxes for owner, group and others, and it shows the octal mode (like 755) and the symbolic string (like rwxr-xr-x), plus a plain-English summary and a ready-to-copy chmod command. Type an octal or symbolic mode and the boxes update. It also handles the setuid, setgid and sticky bits. Nothing leaves your browser.
Why testers reach for it
A failing test or a broken deploy often comes down to a file with the wrong mode: a script that is not executable, a key file that is world-readable, a shared directory missing its sticky bit. Reading a mode you see in a log, or building the one you need, is quicker than counting bits in your head.
About the special bits
- setuid and setgid make a program run as the file's owner or group.
- The sticky bit on a directory stops users deleting each other's files, as on
/tmp. - A capital
SorTin the symbolic form means the special bit is set but the matching execute bit is not.
Common use cases
- Turning
rw-r--r--into644for a Dockerfile or a script. - Reading an unfamiliar mode from a directory listing.
- Building the exact
chmodcommand for a fixture or a CI step.
Frequently asked questions
- Does it handle setuid and the sticky bit?
- Yes. The fourth octal digit and the s / t characters in the symbolic form are both supported.
- What does a capital S or T mean?
- The special bit is set, but the matching execute bit is not. For example 4644 shows as rwSr--r--.
Learning resources
Testsmith also runs hands-on courses and a free practice app for the skills behind this tool.