Free tool

chmod Calculator (Octal ↔ rwx)

Convert Linux permissions between octal and symbolic notation with visual checkboxes. 100% in your browser.

ReadWriteExecute
Owner
Group
Other
Special
rw-r--r--

Recursive: chmod -R 644 folder/

Each octal digit sums: read = 4, write = 2, execute = 1. For example, 644 = owner reads and writes, group and others only read — the typical permission for a file. 755 = owner has everything, everyone else only reads and executes — typical for a folder or script. An optional fourth digit adds setuid = 4, setgid = 2 and sticky = 1; the symbolic view shows s or t when the execute bit is also set, and S or T when it is not.

Built by

Miguel Ángel Colorado Marin (MACM)

Full-Stack Developer · Guadalajara, España

I develop web apps, digital tools and full projects — from design to deployment.

Contact me

This calculator converts Linux/Unix file and folder permissions between octal notation (like 755 or 644) and symbolic notation (like rwxr-xr-x). Check the read, write and execute boxes for owner, group and other, or type the octal number: the symbolic view updates instantly and the boxes check themselves. The setuid, setgid and sticky bits have their own buttons and appear as s, S, t or T. The button copies the chmod command with the octal; you add the file name yourself.

Features

  • ✓Checkboxes for owner, group and other (read, write, execute)
  • ✓setuid, setgid and sticky bits with their letter in the symbolic view
  • ✓3- or 4-digit octal kept in sync with checkboxes and symbolic view
  • ✓Ready-to-copy chmod command and recursive chmod -R form
  • ✓100% in browser, no uploads

How to use the chmod calculator?

  1. 1

    Check the permissions

    Read, write and execute for owner, group and other, plus the special bits if you need them.

  2. 2

    Or type the octal directly

    Type 755 or 4755 and the boxes check themselves. With three digits, the special bit stays off.

  3. 3

    Copy the command

    The button copies chmod followed by the octal. Add the file, or use the chmod -R line for whole folders.

Special bits: setuid, setgid and sticky

Linux reserves a fourth octal digit for three special bits. Setuid (4) makes an executable run with the permissions of its owner, and setgid (2) does the same with the group. On a directory, setgid makes new files inherit the group of the folder. Sticky (1) prevents deleting files owned by others inside a shared directory.

The classic case is /tmp, which uses 1777: anyone can create files, but only each file owner can delete it. The calculator shows it as rwxrwxrwt. Special bits also carry risk: a buggy program with setuid root can grant privileges to whoever runs it, so enable them only when you know why you need them.

Reading the symbolic view

The symbolic view has nine characters: three for owner, three for group and three for other, always in read, write, execute order. A dash means that permission is not granted. So 644 gives rw-r--r-- and 755 gives rwxr-xr-x.

When a special bit is set, its execute position changes letter. Setuid and setgid use a lowercase s if execute is also set and an uppercase S if not; sticky uses t or T with the same logic. So 4755 gives rwsr-xr-x, 2644 gives rw-r-Sr-- and 1777 gives rwxrwxrwt.

An uppercase S or T means the special bit is set but the execute permission is not, so the bit has no practical effect on execution. Check the number before applying it. For example, 4644 gives rwSr--r--: the file has setuid but is not executable, so that bit does nothing when it runs, and the symbolic view makes that visible.

Recursive chmod: use with care

chmod -R applies the same mode to a folder and everything inside it, subfolders and files included. A recursive 755 makes every text file executable; a recursive 644 strips execute from your scripts. That is why it is usually better to treat directories and files separately.

find can do that: find folder -type d -exec chmod 755 {} + for directories and find folder -type f -exec chmod 644 {} + for files. Before changing anything, save the current modes with stat -c %a file so you can roll back.

Frequently asked questions

What does each octal digit mean?

Each digit sums read (4), write (2) and execute (1) for owner, group and other. For example, 6 = 4+2 = read and write without execute; 7 = 4+2+1 = all three permissions. An optional leading fourth digit adds setuid (4), setgid (2) and sticky (1): 4755 = setuid plus 755.

What exactly are 755 and 644?

755 (rwxr-xr-x) is typical for folders and executable scripts: the owner has full control, everyone else can only read and execute. 644 (rw-r--r--) is typical for normal files: the owner reads and writes, everyone else only reads.

Is anything uploaded to a server?

No, it is a purely mathematical calculation that happens in your browser.

Related tools

Embed chmod Calculator on your site

Add chmod Calculator to any web page with a simple iframe. Free, with attribution to miguelacm.es.

<iframe
  src="https://miguelacm.es/embed/chmod-calculator?locale=en"
  width="100%"
  height="700"
  frameborder="0"
  allow="clipboard-write"
  title="chmod Calculator — miguelacm.es"
></iframe>
View embed in new tab →