DevToolNow

Chmod Calculator

Calculate Unix/Linux file permissions. Toggle checkboxes to build your chmod value instantly.

No data sent to server
Permission Selector
Read (r)
Write (w)
Execute (x)
Owner (u)
Group (g)
Others (o)
Result
Numeric644
Symbolicrw-r--r--
Commandchmod 644 filename
Enter Octal Directly
Common Presets

Related Tools

What is chmod?

chmod ("change mode") is a Unix command (POSIX standard, originally Bell Labs Unix) that sets file and directory permissions. Unix permissions control three actions — read, write, execute — for three classes of user: owner, group, and others (everyone else).

The 9 permission bits

Every file has 9 permission bits arranged as 3 sets of (r, w, x):

-rwxr-xr-x
 ↑↑↑↑↑↑↑↑↑
 │└─┘└─┘└─┘
 │ │  │  └─ others (4=r, 2=w, 1=x)
 │ │  └──── group  (4=r, 2=w, 1=x)
 │ └─────── owner  (4=r, 2=w, 1=x)
 └───────── file type (- regular, d directory, l symlink)

Numeric vs symbolic notation

Two equivalent ways to express the same permissions:

  • Numeric (octal): Each user class becomes one digit (4 + 2 + 1). chmod 755 file
  • Symbolic: Class + operator + permissions. chmod u=rwx,g=rx,o=rx file
  • Symbolic relative: chmod +x file (add execute for everyone), chmod g-w file (remove group write)

Special bits: setuid, setgid, sticky

An optional 4th leading digit controls three special bits: setuid (4) — execute as the file's owner; setgid (2) — execute as the file's group, or new files in a directory inherit the group; sticky (1) — only the file's owner can delete it (used on /tmp). chmod 4755 /usr/bin/passwd gives passwd setuid root so any user can change their password.

⚠️ Reference Only

Output is generated based on your input and is provided for reference. Results may vary depending on your specific use case, edge cases, or environment-specific behavior. We do not guarantee accuracy of conversions, validations, or computed values.

Always verify critical outputs against official documentation or production environments. We are not responsible for any decisions or losses based on these tool results.