Chmod Calculator

Visually set Linux/Unix file permissions, get the octal notation, symbolic string, and the exact chmod command to run.

File Permissions
PermissionRead (r)Write (w)Execute (x)Octal
Owner 7
Group 5
Others 5
Symbolicrwxr-xr-x
Status World Readable
chmod 755 myfile
chmod -R 755 myfile/
Common Presets

How Chmod Permissions Work

Read (4)

Files: Allows viewing the file contents with commands like cat or less.

Directories: Allows listing contents with ls.

Write (2)

Files: Allows modifying, appending to, or deleting the file.

Directories: Allows creating, renaming, or removing files within the directory.

Execute (1)

Files: Allows running the file as a program or shell script.

Directories: Allows entering the directory with cd and accessing its files.

What is Chmod Calculator?

A chmod calculator is a practical developer tool that lets you build, decode, and understand Linux and Unix file permission strings without memorising the octal number system. In Linux, every file and directory carries three permission sets — owner, group, and others — each controlling read, write, and execute access. These permissions can be represented as an octal number (like 755 or 644) or a symbolic string (like rwxr-xr-x), and converting between them mentally is a common source of mistakes.

This tool provides interactive visual checkboxes for each permission bit, so you can simply tick the access levels you want and instantly see the resulting octal value and symbolic notation. Conversely, paste an octal number or symbolic string and the checkboxes update to reflect the corresponding permissions, making it easy to decode an unfamiliar permission set.

Understanding file permissions is critical for server security. Overly permissive settings — such as 777 — allow any user to modify or execute a file, creating serious security vulnerabilities. Restrictive settings protect sensitive configuration files and private keys. The chmod calculator also shows the corresponding 'chmod' command you can paste directly into a terminal, speeding up server administration and deployment workflows for developers and sysadmins alike.

How to Use Chmod Calculator

  1. Select permission bits

    Use the visual checkboxes to set read, write, and execute permissions for owner, group, and others independently.

  2. View octal and symbolic output

    The octal number and symbolic notation (e.g., rwxr-xr--) update instantly as you check or uncheck permissions.

  3. Or enter a value directly

    Type an octal number or paste a symbolic string to decode it. The checkboxes update automatically to match.

  4. Copy the chmod command

    Copy the ready-to-run chmod command to paste directly into your terminal or deployment script.

Key Benefits

Visual permission builder

Interactive checkboxes make it impossible to set wrong bits — you see exactly what each permission means.

Two-way conversion

Enter an octal value to decode it, or check boxes to build one — both directions work instantly.

Security guidance

Understand the implications of common permission patterns and avoid dangerously open settings like 777.

Terminal-ready command

Generates the exact chmod command string so you can copy and run it without any manual formatting.

Frequently Asked Questions

755 means the owner has read, write, and execute (7), while group and others each have read and execute (5). This is a common setting for directories and executable scripts.

Octal notation uses a three-digit number (e.g., 644) where each digit is the sum of read (4), write (2), and execute (1) bits. Symbolic notation uses characters like rwxr--r-- for the same information.

600 gives the owner read and write access with no access for anyone else. This is the recommended setting for SSH private keys and sensitive configuration files.

Yes, the calculator supports the setuid (4000), setgid (2000), and sticky bit (1000) special permission bits, represented as a leading fourth digit in four-digit octal notation.

Related Tools