Skip to main content
ToolsHub

Chmod Calculator

Tick read, write, and execute boxes for owner, group, and others to get the exact chmod octal and symbolic notation — plus the command to run. No more guessing.

Updated

Files never leave your browser
PermissionOwnerGroupOthers
Read
Write
Execute
Octal
755
Symbolic
rwxr-xr-x
Command
chmod 755

How to use Chmod Calculator

The Chmod Calculator translates between Unix file permission checkboxes, octal notation (e.g. 755), and symbolic notation (e.g. rwxr-xr-x) interactively in your browser. Understanding Unix permissions is essential for anyone deploying files to Linux or macOS servers: wrong permission bits are one of the most common causes of web application errors, SSH key rejection, and cron job failures.

  1. Tick the read (r), write (w), and execute (x) checkboxes for each of the three permission groups: Owner, Group, and Others.
  2. Watch the octal value and symbolic string update live as you toggle each checkbox.
  3. Alternatively, type an octal value directly (e.g. 644) and the checkboxes will reflect the corresponding permissions.
  4. Review the generated chmod command (e.g. chmod 755 filename) ready to paste into your terminal.
  5. Use the sticky/setuid/setgid toggles for advanced cases such as shared directories or executables that run as their owner.

Your data never leaves your device — 100% private processing.

Octal permission notation explained

Unix permissions are stored as a 9-bit field divided into three 3-bit groups: owner, group, and others. Each group maps to one octal digit: read = 4, write = 2, execute = 1. Add the values for the permissions you want: 7 (4+2+1) means full access, 6 (4+2) is read-write, 5 (4+1) is read-execute, 4 is read-only. A 755 directory means the owner can read, write, and enter; everyone else can read and enter but not write. A 644 file is readable by all but writable only by the owner — the correct permission for most web content.

Chmod octal permission reference
OctalBinarySymbolicMeaning
0000---No permissions
1001--xExecute only
2010-w-Write only
4100r--Read only
5101r-xRead and execute
6110rw-Read and write
7111rwxRead, write, and execute

Common permission patterns and when to use them

The most commonly used chmod values cover the majority of real-world scenarios. 644 (rw-r--r--) is correct for static files: the web server reads them, no one executes them. 755 (rwxr-xr-x) is correct for directories and executable scripts: the owner can modify contents, everyone can list and traverse. 600 (rw-------) restricts a file to its owner only — required for SSH private keys (ssh will refuse keys with looser permissions). 777 (rwxrwxrwx) grants full access to everyone and should almost never be used in production as it creates significant security exposure.

Worked examples

Symbolic to octal

Inputs: rwxr-xr-x

Result: 755 (owner 7, group 5, others 5)

Web file permissions

Inputs: rw-r--r--

Result: 644

Private SSH key

Inputs: rw------- (owner only)

Result: 600

Glossary

Octal notation
A base-8 representation of Unix permission bits where each digit encodes read (4), write (2), and execute (1) for one group.
Setuid
A special permission bit that makes an executable run with the file owner's privileges rather than the caller's.
Sticky bit
When set on a directory, prevents users from deleting files they do not own — commonly applied to /tmp.
umask
A system mask that subtracts permissions from the default when new files are created; e.g. umask 022 creates files as 644.
ACL
Access Control List — an extended permission system beyond the basic owner/group/others model, supported on modern Linux and macOS.

Related reading

Free · No spam

Get weekly tool tips & updates

New tools, power-user tips, and productivity hacks — delivered free every Friday.

No spam, ever. Unsubscribe with one click.

Related Developer Tools

Explore all Developer Tools.