100% Client-Side · Zero Server Uploads

Chmod calculator

Compute your chmod permissions and commands with this online chmod calculator.

Initializing interactive Chmod calculator workspace…

About Chmod calculator

Calculate Unix and Linux file permissions effortlessly with this interactive Chmod Calculator on XMOOO Tools. Toggle Read (4), Write (2), and Execute (1) permissions for Owner, Group, and Public to generate exact octal numbers, symbolic modes, and ready-to-run `chmod` commands.

Formulas & Technical Rules

  • Read (r) = 4, Write (w) = 2, Execute (x) = 1. Sum each column (Owner, Group, Public) to get the 3-digit octal mode.

How to Use Chmod calculator

  1. Check or uncheck Read, Write, and Execute permissions for Owner, Group, and Public.
  2. View the calculated 3-digit octal value (e.g., 755) and symbolic string (rwxr-xr-x) instantly.
  3. Copy the generated chmod command directly into your terminal.

Essential Linux Chmod Permission Presets

OctalSymbolicMeaning & Best Practice
600rw-------SSH private keys (~/.ssh/id_rsa) & .env secrets
644rw-r--r--Standard web files, HTML, configs, and source files
755rwxr-xr-xDirectories and executable scripts
700rwx------Private user directories (~/.ssh)
777rwxrwxrwxWorld-writable — avoid in production servers

Frequently Asked Questions

What is the difference between chmod 644 and chmod 755?

644 (rw-r--r--) allows the owner to read/write and everyone else to read—ideal for regular files. 755 (rwxr-xr-x) adds execute permission—required for directories and runnable scripts.

Why does SSH require chmod 600 for private key files?

OpenSSH refuses to use private keys readable by other users on the machine. Setting chmod 600 restricts both reading and writing exclusively to the file owner.

How do I apply chmod recursively to a folder?

Use chmod -R 755 folder/ to change permissions recursively, or use find to set 755 on directories and 644 on files separately.