Unix File Permission Calculator

Convert Unix file permissions between octal and symbolic notation instantly.

Enter Unix file permissions in octal format (like 755 or 644) or select read/write/execute permissions for owner, group, and others. Get the equivalent octal number and symbolic notation instantly.

Updated June 2026 · How this works

Worth knowing
How It Works
The formula, explained simply

Unix file permissions control who can read, write, or execute files and directories on Linux, macOS, and other Unix-like systems. The permission system uses three categories: owner (the user who owns the file), group (users belonging to the file's group), and others (everyone else on the system).

Each category can have three types of permissions: read (r), write (w), and execute (x). These are represented in two ways: symbolic notation like 'rwxr-xr-x' and octal notation like '755'. This Unix file permission calculator converts between both formats instantly.

In octal notation, each digit represents the permissions for one category. The digit is calculated by adding values: read=4, write=2, execute=1. So rwx=7 (4+2+1), rw-=6 (4+2), r-x=5 (4+1), and r--=4. The first digit is owner permissions, second is group, third is others. When you see 'chmod 644 filename', you're setting owner to read/write (6) and group/others to read-only (4).

When To Use This
Right tool, right situation

Use this Unix file permission calculator when setting up web servers, configuring system scripts, or managing user access on shared systems. Web developers commonly need 755 for CGI scripts, 644 for HTML files, and 600 for configuration files containing database passwords.

System administrators use it when creating backup scripts (700 for owner-only execution), log files (644 for system-readable logs), and shared directories (755 for group collaboration). DevOps engineers rely on precise permissions when deploying applications, setting up automated processes, and securing sensitive files.

The calculator is essential when troubleshooting permission-denied errors, auditing file security, or preparing files for deployment. Instead of guessing or looking up permission tables, you can quickly verify what each octal number means and ensure your chmod commands grant exactly the access needed without security risks.

Common Mistakes
Why results sometimes look wrong

The most dangerous mistake is setting permissions too broadly, especially 777 (rwxrwxrwx) which gives everyone full access. This creates security vulnerabilities by allowing any user to read sensitive data or execute malicious code. Use 755 for executables and 644 for regular files instead.

Another common error is misunderstanding directory permissions. Execute permission on directories means the ability to enter them, not run them as programs. Without execute permission, users cannot access files inside a directory even if they have read permission on the directory itself.

Many users also forget that file permissions are checked in order: owner, then group, then others. If you're the file owner, only owner permissions apply regardless of group memberships. This means an owner with no read permission (like 077) cannot read their own file, even if group and others can.

The Math
Worked examples and deeper derivation

The mathematical foundation of Unix permissions uses binary representation converted to octal for human readability. Each permission bit (read, write, execute) is either 0 (denied) or 1 (allowed). These three bits form a binary number: rwx = 111₂ = 7₈, rw- = 110₂ = 6₈, r-x = 101₂ = 5₈.

The octal conversion works by treating each permission as a power of 2: execute=2⁰=1, write=2¹=2, read=2²=4. To calculate the octal digit, add the values for granted permissions. For example, read and execute permissions (r-x) equals 4+0+1=5.

This mathematical system allows 8 possible permission combinations per category (0-7), giving 8³=512 total permission combinations for any file. The most common patterns are 755 for executables, 644 for regular files, 600 for private files, and 777 for world-writable files (generally avoided for security).

Web server executable
755 (rwxr-xr-x)
Owner can read, write, and execute; group and others can read and execute but not modify the file.
Configuration file
644 (rw-r--r--)
Owner can read and write; group and others can only read the file but cannot modify it.
Private script
700 (rwx------)
Only the file owner has any access; group and other users cannot read, write, or execute the file.

Common questions

What does chmod 755 mean in Unix file permissions?
chmod 755 means the file owner has read, write, and execute permissions (7), while group members and other users have read and execute permissions only (5 each). This is commonly used for executable files and scripts that should be runnable by everyone but only modifiable by the owner.
How do I convert octal file permissions to symbolic notation?
Each octal digit represents permissions for owner, group, and others respectively. Convert each digit: 4=read, 2=write, 1=execute. Add them up: 7=rwx (4+2+1), 6=rw- (4+2), 5=r-x (4+1), 4=r-- (4), etc. So 644 becomes rw-r--r--.
Why would I use 600 file permissions instead of 644?
Use 600 permissions for sensitive files like private keys, passwords, or configuration files containing secrets. This gives read and write access only to the file owner, preventing group members and other system users from viewing the file contents, which is crucial for security.

Need something this doesn't cover?

Suggest a tool — we'll build it →