Skip to content
epitometool

chmod permission calculator

Dev quality-of-life

Convert Unix file permissions between checkbox, octal (755), and symbolic (rwxr-xr-x) notation with setuid, setgid, and sticky bits.

Updated

Permissions

Whoreadwriteexecute
owner
group
other

Result

Symbolicrw-r--r--
Commandchmod 644 file

Quick start

How to use the chmod calculator

Tick permissions or type an octal value, copy the chmod command — all local.

  1. Step 1
    Set permissions

    Tick read/write/execute for owner, group, and other, or type an octal value.

  2. Step 2
    Add special bits

    Enable setuid, setgid, or sticky if you need them.

  3. Step 3
    Copy the command

    Read the octal and symbolic forms and copy the ready-to-run chmod command.

In-depth guide

Unix permissions and the chmod calculator

Unix file permissions look cryptic — 755, rwxr-xr-x, 4755 — but they encode a simple grid: three audiences (owner, group, other) each with three rights (read, write, execute). This calculator lets you tick the boxes or type the octal value and shows the octal, symbolic, and ready-to-run chmod command, all in your browser.

How permission modes work

Each permission has a value: read = 4, write = 2, execute = 1. Add them up per audience to get one octal digit (0–7). So rwx = 4+2+1 = 7, r-x = 4+1 = 5, rw- = 4+2 = 6. Three digits — owner, group, other — make a mode like 755 or 644.

An optional leading fourth digit holds the special bits: setuid (4), setgid (2), and the sticky bit (1).

Common modes and when to use them

  • 644 (rw-r--r--) — regular files: the owner edits, everyone reads.
  • 755 (rwxr-xr-x) — directories and executables: everyone can enter/run, only the owner writes.
  • 600 (rw-------) — private files such as SSH keys: owner only.
  • 1777 — world-writable directories like /tmp with the sticky bit so users only delete their own files.

Step by step

  1. Tick the read/write/execute boxes for owner, group, and other — or type an octal value directly.
  2. Set setuid, setgid, or sticky if you need a special bit.
  3. Read the octal, symbolic (rwxr-xr-x), and chmod <mode> file forms.
  4. Copy the command and run it in your shell.

Common pitfalls

setuid on a writable executable is dangerous — it lets the program run with the owner's privileges. Use it sparingly and never on scripts you do not control.

  • 777 is rarely the answer. Granting everyone full access is a security risk; fix ownership and use 644/755 instead.
  • Directories need execute. Without the execute bit you cannot cd into a directory even if you can read it.
  • Uppercase S/T is a warning. A special bit set without the matching execute bit shows as a capital letter and usually means a mistake.

Privacy and how it runs

This is a pure calculator. It computes octal and symbolic modes in your browser and prints a command for you to run — it never touches your filesystem and never sends anything over the network. Close the tab and there is nothing to clean up.

Frequently asked questions

What does chmod 755 mean?

Each digit is the sum of read (4), write (2), and execute (1) for owner, group, and other. 755 = owner rwx (7), group r-x (5), other r-x (5) — the typical mode for a directory or an executable script: the owner can change it, everyone can read and run it.

What is the difference between 644 and 755?

644 (rw-r--r--) grants no execute bit — correct for regular files like text, images, and HTML. 755 (rwxr-xr-x) adds execute for everyone, which directories need to be entered and scripts need to be run. Applying 755 to a plain data file is harmless but unnecessary; applying 644 to a directory makes it unusable.

What is the fourth (leading) octal digit?

It holds the special bits: setuid (4), setgid (2), and sticky (1). For example 4755 runs the file with the owner's privileges (setuid), and 1777 on /tmp sets the sticky bit so users can only delete their own files. Tick the setuid/setgid/sticky boxes to set it.

Why do I see an uppercase S or T in the symbolic output?

A capital S or T means the special bit is set but the corresponding execute bit is not, which is usually a mistake. A lowercase s or t means both are set (the normal case). The calculator shows this faithfully so you can catch a misconfigured mode.

Does this tool change any files on my system?

No. It only computes the numbers and prints the chmod command for you to run yourself. Nothing executes and nothing is uploaded — it is a pure calculator running in your browser.

Should I ever use chmod 777?

Almost never. 777 grants read, write, and execute to everyone, so any user or process can modify or replace the file. It is a common but dangerous quick fix for permission errors; the right answer is usually correct ownership plus 644 or 755.

Keep exploring

More tools you'll like

Hand-picked utilities that pair well with the one you're on — all free, client-side, and zero-signup.