Monu Tools

chmod Calculator

Convert Unix file permissions between checkboxes, octal (like 755) and symbolic notation (like rwxr-xr-x).

How to use the chmod Calculator

  1. 01

    Tick the read, write and execute boxes for owner, group and other.

  2. 02

    Or type an octal value like 755 to set the boxes automatically.

  3. 03

    Copy the ready-to-run chmod command.

What Unix permissions are

Unix file permissions control who can read, write and execute a file or directory, split across three groups: the owner, the group, and everyone else. This calculator converts between interactive checkboxes, the numeric octal form like 755, and the symbolic form like rwxr-xr-x, keeping all three in sync.

How the numbers work

Each group gets three bits, read (4), write (2) and execute (1), and you add them up to get one digit. So 7 is read plus write plus execute (rwx), 5 is read plus execute (r-x), and 6 is read plus write (rw-). Three digits, one per group, give you the familiar permission number.

Common values worth knowing

The common values are worth memorizing. 755 suits directories and executables: the owner has full access while group and others can read and execute but not write. 644 suits normal web files: the owner can read and write, everyone else can only read.

For sensitive files, 600 keeps things tight: only the owner can read or write, and nobody else has any access, which is what SSH private keys and similar secrets need.

Special bits and the fourth digit

There is also an optional fourth leading digit for special bits, setuid, setgid and the sticky bit, which change how programs run or how a shared directory behaves. When one is set, the execute position shows as s or t instead of x.

How to use the output

The calculator gives you the ready-to-run chmod command to copy, and runs entirely in your browser. It is a reference and converter, so it does not change any files itself.

Frequently asked questions

What do 755 and 644 mean?

755 gives the owner full access and everyone else read and execute, used for directories and scripts. 644 gives the owner read and write and everyone else read only, used for normal files.

What does 777 mean and is it safe?

777 grants read, write and execute to everyone. It is almost always unsafe on a server because any user can modify the file. Prefer 755 or 644 instead.

How do I make a file executable?

Add the execute bit. From 644 you would move to 755 (or chmod +x), which turns on execute for owner, group and others.

What is the difference between symbolic and octal notation?

Octal (like 755) encodes the permissions as numbers, while symbolic (rwxr-xr-x or u+x) describes them as letters. This tool shows both and keeps them in sync.

What are setuid, setgid and the sticky bit?

They are a fourth leading digit. Setuid and setgid run a program as its owner or group, and the sticky bit on a directory stops users deleting each other's files (as on /tmp).

Why is the execute bit shown as s or t?

When setuid, setgid or the sticky bit is set, the execute position is shown as s or t instead of x to signal the special bit is active.

Sources

Embed this tool

Add this tool to your own website. Copy the snippet below; it stays up to date automatically.

<iframe src="https://monu.tools/embed/en/chmod-calculator" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>

Related tools