Linux Chmod Permissions Calculator

Runs in your browser · Files stay on your device · 100% private

Convert chmod octal and rwx permissions

Owner (u)

Group (g)

Public / Other (o)

Special bits

chmod 755 deploy.sh

About Linux Chmod Permissions Calculator

Linux Chmod Permissions Calculator translates between numeric octal modes (such as 600, 644, 755, and 1777), symbolic strings (rwxr-xr-x), and interactive Owner, Group, Public, and Special-bit checkboxes in real time. Toggle any checkbox or type an octal or symbolic value directly, enter your file or directory path, enable recursive (-R) if needed, and copy the exact shell command with a plain-English summary of who can read, write, and execute.

How to Use Linux Chmod Permissions Calculator

1

Tick permissions or pick a common preset

Check Read, Write, and Execute flags under Owner, Group, and Public, or click a shortcut like 600 (SSH key), 644 (Web file), or 755 (Script / Dir).

2

Or type an octal or rwx string directly

Paste an octal mode such as 0640 or symbolic string like rw-r----- into the top boxes to decode what each bit grants.

3

Set target path and recursive option

Type your filename or folder path and toggle Recursive (-R) only when you intend to update every nested item inside a directory.

4

Copy the ready-to-run chmod command

Click Copy command and paste it into your terminal.

Common Use Cases

Fixing SSH private key permissions

OpenSSH rejects private keys readable by other users. Click 600 (SSH key) to generate chmod 600 ~/.ssh/id_ed25519 cleanly.

Deploying web server files and executable scripts

Set static HTML/CSS/JS files to 644 and shell scripts or web directories to 755 without risking insecure 777 permissions.

Configuring shared group directories with Setgid or Sticky bit

Inspect 4-digit modes like 2775 (Setgid shared folder) and 1777 (Sticky /tmp directory) visually before applying them.

Technical Specifications

Input Formats Octal (3 or 4 digits), Symbolic (9 chars), Permission checkboxes
Output Formats Octal, Symbolic rwx, chmod CLI command
File Size Limit No strict limit (dependent on device memory)
Processing Engine 100% Client-side (Runs locally in your browser)
Data Retention never uploaded
Batch Processing Single file processing

Tips for Best Results

  • Never use chmod 777 on public web servers; directories normally need 755 and uploaded files need 644.

  • Generating a new SSH key pair? Create one locally with SSH Key Generator and lock the private key with chmod 600.

  • Directories require the Execute (x) bit so users can cd into them and list files inside.

Frequently Asked Questions

How are chmod octal numbers calculated?

Read equals 4, Write equals 2, and Execute equals 1. Adding those bits per role gives a digit from 0 to 7 for Owner, Group, and Public (for example 4+2+1 = 7, 4+1 = 5).

What is the difference between 644 and 755?

644 (rw-r--r--) lets the owner read and write while everyone else can only read, ideal for documents and web assets. 755 (rwxr-xr-x) adds Execute permission for scripts and directories.

What do Setuid, Setgid, and Sticky bit (4-digit chmod) do?

Setuid (4000) runs an executable as the file owner, Setgid (2000) makes new files in a folder inherit the folder group, and Sticky bit (1000) stops users from deleting other users files inside shared directories like /tmp.

Why does SSH complain about permissions being too open?

SSH requires private keys to be readable only by the owner (600 or 400). Group or public read bits cause ssh to refuse the key.

Does this calculator run offline?

Yes. All bitmask math runs locally inside your browser.