JSON Parser

chmod Calculator — Unix File Permissions

Tick read, write and execute for owner, group and others and get the octal number (like 755), the symbolic form (-rwxr-xr-x) and a ready-to-run chmod command. You can also type an octal value to see which permissions it grants.

How to use the chmod calculator

  1. Tick the permissions you want in the grid, or click a preset such as 644 or 755.
  2. Enter your file or directory name so the command is ready to copy.
  3. Copy the command, for example chmod 755 script.sh, and run it in your terminal.

How permission numbers are calculated

Each permission has a value: read = 4, write = 2, execute = 1. Add them for each of the three groups (owner, group, others) to get one digit, giving a three-digit number.

DigitPermissionsSymbolic
7read + write + execute (4+2+1)rwx
6read + write (4+2)rw-
5read + execute (4+1)r-x
4read onlyr--
2write only-w-
1execute only--x
0no access---

Common chmod values

ModeMeaningUse for
644Owner read/write; everyone else read-onlyRegular files, HTML, config
755Owner full access; everyone else read and executeScripts, programs, directories
600Owner read/write onlyPrivate files, SSH keys
700Owner full access onlyPrivate directories
400Owner read-onlyFiles that must not change, key files
777Everyone can read, write and executeAvoid: a security risk

Reading ls -l output

In a listing like -rwxr-xr--, the first character is the file type (- for a file, d for a directory), followed by the owner, group and others permissions in three-letter groups. This one is 754: owner rwx (7), group r-x (5), others r-- (4). The calculator shows this symbolic form for a regular file.

Good to know

  • On directories, execute means permission to enter and access files inside, so directories usually need x (755, not 644).
  • To change a whole folder tree, add -R yourself: chmod -R 755 folder. The calculator produces the basic command.
  • It covers the standard three-digit modes. Special bits (setuid, setgid and sticky) use a fourth leading digit and are not included.
  • Avoid 777. If something “only works” with 777, fix the owner or group instead.

Related tools

See how octal relates to binary with the number base converter, schedule scripts with the cron expression parser, or generate strong secrets with the password generator.

Frequently asked questions

What does chmod 755 mean?
The owner can read, write and execute (7); the group and others can read and execute (5). It is the usual permission for scripts and directories.
What does chmod 644 mean?
The owner can read and write (6); the group and others can only read (4). It is the usual permission for regular files.
How are the numbers calculated?
Read is 4, write is 2 and execute is 1. Add them for each of owner, group and others, giving three digits. Everything runs in your browser — nothing you enter is uploaded to a server.
Handles JSON files up to 20MB smoothly