Chmod Calculator
Turn a Unix file mode into octal, symbolic rwx, and a chmod command. Toggle owner, group, and other bits, including setuid, setgid, and the sticky bit. The calculator runs in the browser and does not touch your files.
Runs in your browser. Nothing is uploaded.
| Who | Read | Write | Execute |
|---|---|---|---|
| Owner | |||
| Group | |||
| Others |
What the special bits do
setuid. An executable runs with the file owner's user id. Programs such as passwd use it when they need the owner's privileges.
setgid. An executable runs as the file's group. On a directory, new files inside inherit that group. Used for shared team directories.
Sticky. On a directory such as /tmp, anyone can add files, but only a file's owner can rename or delete it.
- Symbolic
- rwxr-xr-x
- Command
- chmod 755 file
About this tool
Convert between octal modes such as 755 and symbolic permissions such as rwxr-xr-x. Toggle read, write, and execute for owner, group, and others, plus setuid, setgid, and the sticky bit.
How to use: type 3 or 4 octal digits, or click the checkboxes. Copy the chmod command from the sticky bar. A path with spaces is quoted in the command. Nothing is executed.
Example: 755 is rwxr-xr-x, a typical mode for scripts. 644 is rw-r--r--, a typical mode for files. 2755 shows setgid as rwxr-sr-x.
Modes stay in the tab. This does not run chmod on your disk and does not upload paths. Related: gitignore generator for repo files, and the number base converter for plain octal arithmetic.
FAQ
Related Ops tools
Gitignore Generator
Build a .gitignore from stacked templates for Node, Python, Go, Rust, Java, Next.js, macOS, and Windows. Output is composed locally.
.env Toolkit
Parse KEY=value env files, flag duplicates, and diff two .env blobs. Secrets in env files never leave the browser.
Docker Generator
Generate a Dockerfile or a Compose service snippet from image, ports, and command fields. Snippets are built in the tab.
GitHub Actions Explainer
Explain a GitHub Actions workflow YAML: name, triggers, jobs, and steps. Parsing uses js-yaml in the browser.
cURL Generator
Build a curl command from method, URL, headers, and body. The command is assembled locally so tokens in headers stay in the tab.
Tar Command Generator
Build a tar create or extract command with gz, bz2, or xz flags. A small command helper, not an archiver.