TXT · Text & Data tools

Chmod Calculator

Paste octal or symbolic
OwnerGroupOtherRead
Write
Execute
Special
Octal

755

Symbolic

rwxr-xr-x

chmod (octal)

chmod 755 file

chmod (symbolic)

chmod u=rwx,g=rx,o=rx file

755octalrwxr-xr-xsymbolicNonespecial bits

Octal vs symbolic notation

Each permission class, owner, group, and other, holds three bits: read (4), write (2), and execute (1). Adding the bits that apply gives a single digit from 0 to 7, so rwx is 4+2+1 = 7 and r-x is 4+0+1 = 5. chmod 755 file and chmod u=rwx,g=rx,o=rx file set the exact same bits; octal is shorter to type, symbolic is easier to read when only one class needs to change.

Special permission bits

setuid, setgid, and the sticky bit occupy their own digit, placed before the owner/group/other digits and built from the same 4/2/1 weights. In symbolic form they replace the execute character: a lowercase s or t means the bit is set and the file is also executable for that class, while an uppercase S or T means the bit is set but execute is not. chmod 4755 file sets setuid on top of 755, shown as rwsr-xr-x.

Directory execute bit

On a directory, the execute bit means something different from a regular file: it controls whether a process can cd into the directory or access files inside it by name, not whether the directory itself can “run.” A directory with r-- but no execute bit lets a user list file names but not open any of them.

Common permission sets

755 is the default for directories and executable scripts: the owner can modify them, everyone else can read and execute. 644 is the default for static files that should never run as a program. 600 restricts a file to the owner entirely, which is the expected mode for SSH private keys and other credentials.

Frequently Asked Questions

Toggling read, write, and execute for owner, group, and other updates four outputs at once: the 3-digit octal value, the 9-character symbolic string, and both the octal and symbolic chmod command lines. Pasting an existing permission string into the input field reverses the process and updates every checkbox.

755 (rwxr-xr-x) gives the owner full access and lets everyone else read and execute, which is the standard mode for scripts and directories. 644 (rw-r--r--) drops the execute bit for all three classes, which is the standard mode for regular files like HTML or config files that should never run as a program.

setuid runs an executable with the file owner's privileges instead of the caller's, which is how tools like passwd modify a root-owned file for a normal user. setgid on a directory makes new files inherit the directory's group instead of the creator's primary group. The sticky bit on a directory, common on /tmp, stops users from deleting or renaming files they don't own even if the directory itself is world-writable.

The leading digit sets the special bits: 4 for setuid, 2 for setgid, and 1 for the sticky bit, added together the same way owner, group, and other bits are. 4755 is 755 with setuid also set, which shows up as rwsr-xr-x.

Yes. ls -l output starts with a file-type character such as - for a regular file or d for a directory, followed by the 9-character permission string. Paste the full 10-character value and the leading type character is stripped automatically.

Explore Our Tools

Browse all tools