Skip to content
ToolZone

Chmod Calculator

Visually set Linux file permissions and instantly get the matching chmod octal and symbolic notation.

Runs in your browser. Nothing you enter or upload leaves your device.

owner
group
others
644
rw-r--r--
chmod 644 filename
What each permission does
read (r)
File: view the file's contents
Folder: list files inside the directory
write (w)
File: modify or delete the file
Folder: add, rename, or remove files inside
execute (e)
File: run the file as a program/script
Folder: enter (cd into) the directory

Owner is the file's creator, group is other members of the file's assigned group, and others is everyone else on the system. The octal digit for each (0–7) is read (4) + write (2) + execute (1) added together.

How to apply this on each OS
Linux

Run directly in the terminal: chmod 644 filename. Add -R to apply recursively to a whole directory, e.g. chmod -R 644 folder/.

macOS

Same command as Linux, macOS's Terminal is Unix-based, so chmod 644 filenameworks identically. You can also set permissions via Finder → Get Info → Sharing & Permissions, though that UI doesn't expose the execute bit.

Windows

Windows doesn't use Unix-style permissions natively, so plain chmodisn't available in Command Prompt or PowerShell. Use WSL or Git Bash to run the same command as Linux/macOS, or manage native NTFS permissions instead with icacls filename /grant User:F (full control), note this maps to a different permission model, not a direct octal equivalent.

Keyboard shortcuts

Run the main action
⌘ / Ctrl + Enter
Copy the result
⌘ / Ctrl + Shift + Enter
Download the result
⌘ / Ctrl + S
Paste a file or image into file tools
⌘ / Ctrl + V
Search all tools
⌘ / Ctrl + K
Show these shortcuts
?

You can also drop files anywhere on the page.

About the Chmod Calculator

Unix file permissions are usually written as three digits, such as 755, which are hard to decode from memory. This Chmod Calculator lets you tick the permissions you want and shows the octal number, the rwx notation, and the exact chmod command to run.

How it works

Each permission has a value: read is 4, write is 2, and execute is 1. For each of the three classes, owner, group, and others, the calculator adds the values of the boxes you have ticked, giving a digit from 0 to 7. Read and write is 4 + 2 = 6; read, write, and execute is 7; read and execute is 5.

The three digits are written in order, owner first, to form the octal mode. The symbolic form uses r, w, and x for granted permissions and a dash for missing ones, in groups of three. The tool starts at 644 (rw-r--r--), the usual mode for regular files.

How to use

  1. 1

    Tick Read, Write, and Execute in the Owner, Group, and Others boxes, type a mode such as 755 or rwxr-xr-x to decode it, or click a common mode like 644.

  2. 2

    Read the octal number and symbolic string in the result box.

  3. 3

    Copy the command shown, such as chmod 755 filename, and replace filename with your file or folder.

  4. 4

    Check the notes below the result if you need to apply it on macOS or Windows.

Worked examples

Regular file (default)

A web page or config file that everyone may read but only the owner may edit.

Input
Owner: read, write; Group: read; Others: read
Result
644, rw-r--r--, chmod 644 filename

Executable script or folder

A deploy script that others need to run but not modify.

Input
Owner: read, write, execute; Group: read, execute; Others: read, execute
Result
755, rwxr-xr-x, chmod 755 filename

Private key

An SSH private key that only you should read.

Input
Owner: read, write; Group: none; Others: none
Result
600, rw-------, chmod 600 filename

SSH refuses to use private keys that other users can read, so 600 (or 400) is required.

Limitations
Special bits (setuid, setgid, and the sticky bit) and four-digit modes are not supported. Only three-digit octal modes and nine-character rwx strings can be typed in. Symbolic chmod forms like u+x or g-w are not generated.
Assumptions
The file system uses standard Unix permissions (Linux, macOS, WSL). No access control lists (ACLs) are in effect that override the basic mode.
Privacy
All calculations happen in your browser, and nothing is sent or stored.

Frequently asked questions

What does chmod 755 mean?+

The owner can read, write, and execute (7), while the group and everyone else can read and execute (5). It is the standard mode for scripts, programs, and shared directories.

Is chmod 777 safe to use?+

Usually not. It lets every user on the system read, modify, and execute the file. On web servers it is a common security risk; fix the file owner instead.

What permissions should an SSH private key have?+

600 (rw-------) or 400 (r--------). SSH refuses to use a private key that other users can read.

Why is my script giving 'Permission denied'?+

It probably lacks the execute bit. Tick Execute for the owner (for example 755 or 744) and run the chmod command shown.

Can I use chmod on Windows?+

Not in Command Prompt or PowerShell. Use WSL or Git Bash to run chmod, or manage Windows permissions with icacls, which uses a different model.

Related tools