Chmod Calculator

Calculate Linux file permissions with visual rwx grid. Convert between octal (755), symbolic (rwxr-xr-x), and human-readable descriptions.

Read (4)Write (2)Execute (1)
Owner
Group
Others
755Octal
rwxr-xr-xSymbolic
rwxOwner Access
StandardSecurity

What is Chmod Calculator?

Chmod is the Unix/Linux command that sets file and directory permissions. Permissions control who can read (r), write (w), and execute (x) a file. The Chmod Calculator helps you convert between two common notations: octal (numeric, e.g. 755) and symbolic (letter-based, e.g. rwxr-xr-x). Each permission class—owner, group, and others—has three bits: read (4), write (2), and execute (1). The octal value is the sum of the enabled bits per class.

Octal notation uses three digits: owner (e.g. 7 = rwx), group (e.g. 5 = r-x), and others (e.g. 5 = r-x). Symbolic notation shows nine characters: three for each class. The calculator updates in real time as you toggle checkboxes or type an octal value, producing a ready-to-use chmod command.

How to Use Chmod Calculator

  1. Use the permission grid to toggle checkboxes for Owner, Group, and Others (Read, Write, Execute). Changes apply instantly.
  2. Alternatively, type an octal value (e.g. 755, 644) in the Octal field. The grid and outputs update automatically.
  3. Click a preset chip (755, 644, 777, 700, 600, 444) for common permission patterns.
  4. Optionally set a filename to customize the chmod command (default: filename).
  5. Copy the output with the Copy button. Press Esc to reset to 755.

Tips & Best Practices

Use 755 for directories and executables so the owner has full access and others can read/execute. Use 644 for regular files (HTML, CSS, configs)—owner read+write, others read-only. Avoid 777 in production; it grants full access to everyone and is a security risk. For private files (SSH keys, secrets), use 600 (owner only) or 700 for directories. 444 makes a file read-only for all. Press Esc to reset.

When to Use This Tool

Use the Chmod Calculator when deploying applications to Linux servers, configuring web hosting (Apache/Nginx), setting up CGI scripts or cron jobs, or securing SSH keys and config files. It's ideal for developers and sysadmins who need to quickly translate between octal and symbolic notation or verify permission patterns. For related tools: use the Number Base Converter to understand octal arithmetic, or the Unix timestamp converter for file metadata context.

Frequently Asked Questions

What does chmod 755 mean?

chmod 755 grants the owner full read/write/execute (rwx), while group and others get read and execute only (r-x). Owner: 7 (4+2+1), Group: 5 (4+1), Others: 5 (4+1). Commonly used for directories and executables.

What is the difference between octal and symbolic notation?

Octal uses numbers (e.g. 755) where each digit is the sum of read(4), write(2), and execute(1). Symbolic uses letters like rwxr-xr-x—nine characters for owner, group, and others. Both describe the same permissions.

What chmod should I use for web files?

Use 644 for web-accessible files (HTML, CSS, images): owner read+write, others read-only. Use 755 for directories and CGI scripts so the web server can traverse directories and execute scripts. Never use 777 in production.

Is chmod 777 safe?

No. chmod 777 grants read, write, and execute to everyone. It makes files and directories editable by any user and is a security risk. Avoid it in production; use 755 or 644 instead.

How do Linux file permissions work?

Linux permissions have three classes: owner (u), group (g), and others (o). Each has read (r=4), write (w=2), and execute (x=1). Permissions are shown as rwx or as octal digits 0-7.

Can I use this for directory permissions?

Yes. Directories use the same octal and symbolic notation. Execute on a directory means "traverse" (enter the directory). Standard directory permission is 755; private directories use 700.