Skip to main content

Chmod Calculator

Convert Unix file permissions between octal (755), symbolic (rwxr-xr-x) and checkboxes, with setuid, setgid and sticky bits, chmod commands, expressions like u+x and umask.

100% client-side · no data leaves your browser

Permissions

ClassReadWriteExecuteValue
Owner7
Group5
Others5

Run as the file's owner

Run as group / inherit group

Only owners delete (/tmp)

Notation

3 or 4 digits, e.g. 644 or 2775

Or paste an ls -l column like drwxr-sr-x

Octal (4-digit)
0755
ls -l
-rwxr-xr-x

What it means

  • Owner: can read, write and execute.
  • Group: can read and execute.
  • Others: can read and execute.

Common use: Directories and scripts.

Command

Applies to every file and folder inside. For mixed trees, prefer chmod -R a+rX or find … -type f/-type d.

Run this
chmod 755 deploy.sh

Try a chmod expression

Starts from the current mode (755). Clauses like u+x, go-w, a=rX, g=u or +t.

755 → 755 (rwxr-xr-x)

umask

Which permissions new files and folders get.

New files
644 (rw-r--r--)
New directories
755 (rwxr-xr-x)

About this tool

Tick read, write and execute for the owner, group and others, or type an octal mode like 644 or 2775, or paste the permission column from ls -l (drwxr-sr-x). All three stay in sync and the tool explains in plain words who can do what, for files or directories. It handles the setuid, setgid and sticky bits (s, S, t, T), writes the chmod command in octal or symbolic form, shows what a chmod expression such as u+x,go-w or a=rX does to the current mode, and works out the default permissions a umask gives new files and folders. Warnings point out risky modes like 777 or world-writable files.

How to calculate chmod permissions

Turn permissions into an octal mode and a chmod command.

  1. 1

    Set the permissions

    Tick read, write and execute for owner, group and others, or type 755 or rwxr-xr-x.

  2. 2

    Add special bits if needed

    Switch on setuid, setgid or the sticky bit.

  3. 3

    Copy the command

    Enter the file name and copy the chmod command.