Developer Tools

Chmod Calculator

This free Chmod Calculator turns read, write and execute checkboxes for owner, group and others into the octal value (like 755 or 644), the symbolic string (like rwxr-xr-x) and a plain-English summary, with presets for 755, 644, 777, 700, 600 and 664. It runs entirely in your browser.

Runs in your browser. Your files and text never leave your device - nothing is uploaded.

ReadWriteExecute
Owner
Group
Others
755
Octal (chmod 755)
rwxr-xr-x
Symbolic

What this means

  • Owner: read, write, execute
  • Group: read, execute
  • Others: read, execute

Common presets

Calculate Unix File Permissions

The Tools Kit’s free Chmod Calculator turns read, write and execute checkboxes into the exact permission value the chmod command expects. Tick what the owner, the group and everyone else should be allowed to do, and it shows the octal number (such as 755 or 644), the symbolic string you see in ls -l (such as rwxr-xr-x), and a plain-English summary of who can do what.

It is a Linux and Unix file permissions calculator for anyone setting up a web server, fixing a “permission denied” error, or decoding a chmod line from a tutorial. Everything runs in your browser: it calculates the value, and you run the command on your own machine.

How to Use the Chmod Calculator

  1. 1

    Tick the permissions you want

    Use the Read, Write and Execute checkboxes for the Owner, Group and Others rows. The calculator starts at 755 (rwxr-xr-x).

  2. 2

    Or start from a preset

    Click 755, 644, 777, 700, 600 or 664 to tick the matching boxes in one step, then adjust any box you need to change.

  3. 3

    Read the octal and symbolic results

    The three-digit octal value (for example chmod 644) and the nine-character symbolic string (for example rw-r--r--) update as soon as a box changes.

  4. 4

    Check the plain-English breakdown and run the command

    The "What this means" list spells out what Owner, Group and Others can do. Then run chmod with the octal value on your server, for example chmod 644 index.html.

There is no field for typing a mode: to decode a value you already have, tick the boxes that match it or click its preset.

How Chmod Octal Numbers Work

Every file and directory has three permission classes — owner, group and others — and each class has three bits: read, write and execute. Chmod numbers are octal (base 8) because three bits give exactly eight combinations, 0 to 7, so each class fits in one digit. Read is worth 4, write 2 and execute 1, and the digit is the sum of the bits that are switched on.

DigitSymbolicPermissions
7rwxread + write + execute (4 + 2 + 1)
6rw-read + write (4 + 2)
5r-xread + execute (4 + 1)
4r--read only
3-wxwrite + execute (2 + 1)
2-w-write only
1--xexecute only
0---no permissions

A worked example: you want the owner to have full access, the group to read and run the file, and nobody else to touch it. Owner = 4 + 2 + 1 = 7, group = 4 + 1 = 5, others = 0, so the command is chmod 750 deploy.sh and the symbolic form is rwxr-x---. Each digit is really three binary bits — 7 is 111 and 5 is 101 — which you can confirm with the binary, octal and hex converter.

Common Chmod Values: 755, 644, 600 and More

The six presets in the calculator cover the modes you will meet most often:

  • chmod 755 (rwxr-xr-x) — directories, shell scripts and programs that others need to run or browse but not modify.
  • chmod 644 (rw-r--r--) — ordinary files such as HTML, CSS, images and most configuration files.
  • chmod 600 (rw-------) — private keys, .env files and anything holding passwords or API tokens.
  • chmod 700 (rwx------) — private directories such as ~/.ssh, or scripts only you should run.
  • chmod 664 (rw-rw-r--) — files a team edits together through a shared group.
  • chmod 777 (rwxrwxrwx) — full access for everyone; rarely the right answer, and a security risk on shared or public servers.

On most Linux systems a default umask of 022 is why new files are created as 644 and new directories as 755: the umask removes write access for group and others from the 666 or 777 starting point.

Securing Sensitive Files With Chmod

Permissions are the last line of defense for secrets that live on disk. A config file that holds a database password from the password generator, or a file of password hashes made with the bcrypt generator, should normally be 600 or 640 so other accounts cannot read it. OpenSSH goes further and refuses a private key that is readable by group or others, which is why 600 for the key and 700 for ~/.ssh are the standard fix for a “bad permissions” error.

Permissions control who can read or change a file, not whether its contents are intact. When you download a script before marking it executable with 755, compare its checksum using the SHA-256 hash generator against the one the publisher lists.

Octal vs Symbolic Chmod Notation

chmod accepts two notations. Octal sets all nine bits at once (chmod 644 file), which is what this calculator produces. Symbolic notation edits bits relative to the current mode, using u, g, o or a for the class, + or - to add or remove, and r, w or x for the permission — for example chmod u+x script.sh or chmod go-w file. The calculator does not build symbolic commands like these, but its nine-character rwx output is the same string ls -l prints after the file-type character, so you can compare it directly with what is on disk.

The calculator handles the standard three-digit modes from 000 to 777. Special bits — setuid, setgid and the sticky bit, written as a leading fourth digit such as 4755 or 1777 — are outside its scope.

Common uses

  • Setting the right permissions for WordPress or other web-root files and folders before upload
  • Making a deploy or backup script executable, then scheduling it with the cron expression generator
  • Fixing an SSH “unprotected private key file” or “permission denied” error
  • Decoding a chmod command copied from a tutorial, Dockerfile or install guide before running it
  • Learning how Unix permission bits map to octal digits for a Linux course or interview

For more utilities for server and code work, see all developer tools, including the regex tester for checking file-matching patterns.

Chmod terms explained

TermWhat it means here
chmodThe Unix and Linux command ("change mode") that sets a file or directory’s permission bits
Owner (u)The user who owns the file; the first octal digit and the first rwx triplet
Group (g)Members of the file’s group; the second digit and the second triplet
Others (o)Every other user on the system; the third digit and the third triplet
Read (r = 4)View a file’s contents, or list the names inside a directory
Write (w = 2)Change a file’s contents, or create, rename and delete entries in a directory
Execute (x = 1)Run a file as a program or script, or enter (cd into) and pass through a directory
Octal notationThe three-digit numeric form of a mode, such as 755, where each digit is 0-7
Symbolic notationThe nine-character rwx form of a mode, such as rwxr-xr-x, as printed by ls -l

Frequently Asked Questions

Reviewed by Raja Jahangir · Last reviewed: October 7, 2026

How do you calculate chmod permissions?

To calculate chmod permissions, tick read, write and execute for owner, group and others. Read is 4, write 2 and execute 1, and the values add up per group, so rwxr-xr-x is 755 and rw-r--r-- is 644. The result shows the octal value, the symbolic string and a plain-English breakdown of each group.

What does chmod 755 mean?

chmod 755 gives the owner read, write, and execute (4+2+1=7), while group and everyone else get read and execute (4+1=5), written symbolically as rwxr-xr-x. It is the usual setting for scripts, executables, and web directories: the owner can edit, everyone can run or enter, but nobody else can modify.

Sources and standards