ToolBuddy
In Browser

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.

WhoReadWriteExecute
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