Chmod Calculator -- Linux File Permissions

Convert and understand chmod permissions visually

Set File Permissions

Quick Presets
Read (4)
Write (2)
Execute (1)
👤 Owner
👥 Group
🌍 Others
Numeric (Octal)
644
Symbolic
-rw-r--r--
r
w
-
Owner
r
-
-
Group
r
-
-
Others
Read
Write
Execute
$ chmod 644 yourfile.txt

Common Use Cases

Click any use case to apply its permissions:

📄 Regular Files 644
HTML, CSS, images, documents. Owner can edit, everyone can read.
⚙️ Scripts & Programs 755
Shell scripts, executables, CGI. Owner full access, others can run.
📁 Public Directories 755
Web directories, shared folders. Owner can modify, others can browse.
🔐 SSH Keys & Secrets 600
Private keys, .env files, passwords. Only owner can read/write.
🏠 Home Directory 700
Personal folders, .ssh directory. Complete privacy for owner only.
📝 Log Files 666
Files multiple users/services need to write to (use with caution).

Understanding Permissions

Each permission type has different meaning for files vs directories:

📖
Read (r = 4)
File: View contents
Dir: List files inside
✏️
Write (w = 2)
File: Modify contents
Dir: Create/delete files
Execute (x = 1)
File: Run as program
Dir: Enter directory (cd)

Quick Reference

Numeric Symbolic Description
644rw-r--r--Standard file (owner write, all read)
755rwxr-xr-xExecutable/directory (owner full, others read+execute)
700rwx------Owner only (complete privacy)
600rw-------Owner read/write only (secrets, keys)
444r--r--r--Read-only for everyone
777rwxrwxrwx⚠️ Full access for everyone (avoid!)
775rwxrwxr-xGroup collaboration (owner+group full)
664rw-rw-r--Group editable file

About Chmod

chmod (change mode) is a Unix/Linux command that sets file and directory permissions. Permissions control who can read, write, or execute files on a system.

The Three Permission Groups

  • Owner (u) — The user who owns the file
  • Group (g) — Users in the file's group
  • Others (o) — Everyone else on the system

Numeric vs Symbolic Notation

Numeric (octal): Three digits, each 0-7. Calculate each digit by adding: read (4) + write (2) + execute (1). Example: 755 = 7 (rwx) for owner, 5 (r-x) for group, 5 (r-x) for others.

Symbolic: 10 characters showing file type and all permissions. The first character is file type (- for file, d for directory), followed by 3 sets of rwx for owner, group, and others.

Security Best Practices

  • 🔒 Never use 777 in production — it's a security risk
  • 🔑 Keep SSH keys at 600 (SSH will reject insecure key files)
  • 📁 Web directories typically need 755 for proper access
  • 📄 Config files with passwords should be 600 or 640
  • 🏠 Home directories should be 700 or 750

Related Tools

Related Tools

View all tools

Chmod Calculator FAQ

What is Chmod Calculator?

Chmod Calculator is a free developer tools tool that helps you Convert between chmod numeric and symbolic notation.

How do I use Chmod Calculator?

Enter your input values, review the calculated output, and adjust inputs until you reach the result you need. The result updates in your browser.

Is Chmod Calculator private?

Yes. Calculations run locally in your browser. Inputs are not uploaded to a server by default, and refreshing the page clears session data.

Does Chmod Calculator require an account or installation?

No. You can use this tool directly in your browser without sign-up or software installation.

How accurate are results from Chmod Calculator?

This tool applies standard formulas or deterministic processing logic for estimates. For medical, legal, tax, or investment decisions, verify with a qualified professional.

Can I save or share outputs from Chmod Calculator?

You can bookmark this page and copy outputs manually. Results are not persisted in your account and are typically not embedded in the URL.

Request a New Tool
Improve This Tool