<link rel="stylesheet" type="text/css" href="/mirawhite.css">

Chmod calculator

Tick the permissions, or type an octal or symbolic mode: the other notations, the chmod command and a plain-English explanation follow, for free. Everything stays in your browser.

Free, no sign-up, no limit Runs in your browser: your text and files are never sent or saved.

Chmod calculator

Permissions by category
WhoReadWriteExecute
Owner
Group
Others
Special bits
3 digits (755), or 4 with special bits (4755).
9 characters, like rwxr-xr-x. A leading - or d, or a whole ls -l line, is accepted.
As with chmod: u+x, go-w, a=r, g=u, +t… Without u, g or o, it applies to everyone. Press Enter to apply.

Common presets

How to use it

  1. Tick read, write and execute for the owner, the group and others, or type 755 or rwxr-xr-x.
  2. Check the explanation and any warning (777, writable by everyone, setuid…).
  3. Type the file name and copy the ready-made chmod command.

Example

Input

755

Output

rwxr-xr-x

Good to know

  • Relative changes (u+x, go-w…) are applied to the mode shown; without u, g or o, the real chmod also respects your umask, which is not simulated here.
  • The execute bit means “can enter” for a folder: a folder usually needs 755 or 700, a file 644 or 600.
  • ACLs, SELinux labels and Windows permissions are not covered.
  • Nothing is sent to a server.

Frequently asked questions

What does chmod 755 mean?

rwxr-xr-x: the owner can read, write and execute; the group and everyone else can read and execute but not modify. It is the usual mode for folders, scripts and programs, for example the folders of a website.

How are chmod numbers calculated?

Each digit is the sum of read = 4, write = 2 and execute = 1, for the owner, the group and others in that order. 7 = 4 + 2 + 1 (rwx), 6 = 4 + 2 (rw-), 5 = 4 + 1 (r-x), 4 = r-- and 0 = no access. So 640 means rw- for the owner, r-- for the group, nothing for others.

What is the difference between 644, 755 and 777?

644 (rw-r--r--) suits ordinary files: only the owner can edit. 755 (rwxr-xr-x) adds execute, for folders and scripts. 777 (rwxrwxrwx) lets anyone modify or replace the file: avoid it, especially on a web server; the calculator warns you about it.

What do setuid, setgid and the sticky bit do?

They form an optional fourth digit in front: 4 = setuid (the program runs as its owner), 2 = setgid (runs as its group, or new files in a folder inherit its group), 1 = sticky (in a shared folder, only a file’s owner can delete it). /tmp is 1777, shown as rwxrwxrwt.

How do I chmod a folder and everything inside it?

chmod -R 755 folder applies the same mode to everything, which also makes every file executable. To give folders 755 and files 644: find folder -type d -exec chmod 755 {} + then find folder -type f -exec chmod 644 {} +.

What does drwxr-xr-x mean in ls -l?

The first character is the type: d for a directory, - for a regular file, l for a symbolic link. The next nine are the permissions, here rwxr-xr-x, so 755. Paste the whole string from ls -l into the symbolic field: the leading type letter is accepted.

Sources

Checked on November 26, 2026

← Back to all tools