Chmod Calculator

Calculate and convert Linux/Unix file permissions between numeric (octal) and symbolic formats. Visual permission grid with common presets and SUID/SGID/Sticky bit support.

Numeric (Octal)
644
Symbolic
rw-r--r--
Command
chmod 644 filename

Permission Grid

OwnerGroupOthers
Read
Write
Execute

Manual Input

Special Permissions

Common Presets

How to Calculate Linux File Permissions

  1. 1

    Select permissions using the visual grid

    Click the checkboxes in the permission grid to toggle Read, Write, and Execute permissions for Owner, Group, and Others. Each combination updates the numeric and symbolic output instantly, so you can see the result as you build your permission set.
  2. 2

    Choose a common preset or enter an octal value

    Use the common presets like 644, 755, or 777 to quickly set standard permission configurations. Alternatively, type a three- or four-digit octal number directly into the numeric field and the grid will update to reflect your input.
  3. 3

    Configure special permissions if needed

    Enable SUID, SGID, or the Sticky Bit for advanced scenarios. SUID (4000) runs executables as the file owner, SGID (2000) runs them as the group, and the Sticky Bit (1000) prevents other users from deleting files they do not own in shared directories.
  4. 4

    Copy the chmod command and apply it

    Copy the generated chmod command with a single click and paste it into your terminal. The command includes both the permission value and a placeholder filename you can replace with your actual file or directory path.

Common Use Cases

1

Web Server File Permissions

Set correct permissions for web files served by Apache or Nginx. Typical configurations are 644 (rw-r--r--) for HTML, CSS, and PHP files, and 755 (rwxr-xr-x) for directories and CGI scripts. Incorrect permissions can expose sensitive files or prevent your site from loading.
2

Deployment Script Permissions

Make shell scripts and CI/CD deployment scripts executable with chmod 755 or 700. Use 700 when only the owner should run the script, and 755 when other users on the server also need execute access. This tool helps you verify the correct octal value before applying it.
3

Shared Directory Configuration

Configure shared directories on multi-user servers using the Sticky Bit (1777) so that users can create files but cannot delete files owned by others. The classic example is /tmp, which uses this exact permission set on nearly every Linux system.
4

SSH Key and Config Security

SSH requires strict permissions on key files and configuration. Private keys must be 600 (rw-------), the .ssh directory must be 700 (rwx------), and authorized_keys must be 644. Getting these wrong causes SSH to reject connections silently.

Why Use Our Chmod Calculator?

File permissions are critical for Linux and Unix system security. Our chmod calculator lets you visually set permissions using an intuitive checkbox grid, instantly see the numeric (octal) and symbolic representations, and copy the ready-to-use chmod command. It supports special permissions like SUID, SGID, and Sticky bit, and includes common presets like 644, 755, and 777. Everything runs in your browser — no installation or server upload needed.

The chmod command is one of the most essential tools in Linux and Unix system administration. It controls who can read, write, and execute files and directories, forming the first line of defense in your server's security. This free chmod calculator converts between numeric (octal) and symbolic permission formats instantly, so you never have to memorize octal codes or count permission bits manually.

Each permission digit represents a combination of Read (4), Write (2), and Execute (1). The first digit applies to the file owner, the second to the group, and the third to all other users. Advanced scenarios require a fourth digit for special permissions: SUID (4), SGID (2), and the Sticky Bit (1). This calculator handles all four digits and displays the full symbolic representation alongside the octal value. Pair it with the Regex Tester when parsing permission strings from ls -l output, or use the Cron Expression Generator to schedule permission audits on your servers.

Whether you are hardening a production web server, configuring SSH keys, setting up shared directories, or writing deployment scripts, getting file permissions right prevents security vulnerabilities and silent failures. Use the Diff Checker to compare permission configurations across environments, or the Base64 Encoder when encoding permission data for configuration files. All processing runs entirely in your browser -- nothing is uploaded to any server, keeping your workflow fast and private.

How It Compares

Most chmod reference charts online are static images or tables that require you to look up values manually. Dedicated tools like chmod-calculator.com and permissions-calculator.org offer basic conversion but lack special permission support and preset shortcuts. This chmod calculator provides a fully interactive visual grid where you click to set permissions and see the octal, symbolic, and full chmod command update in real time. SUID, SGID, and Sticky Bit are first-class features, not afterthoughts.

Unlike server-based permission tools, this calculator runs entirely in your browser. There is no signup, no usage tracking, and no data leaves your device. For developers who frequently switch between numeric and symbolic notation, the instant two-way conversion and one-click command copying eliminate the need to keep a chmod cheat sheet open in another tab.

Chmod Tips & Best Practices

1
Never use chmod 777 in production. It grants every user full read, write, and execute access, which is a serious security risk. Use 755 for directories and 644 for files as a safe default.
2
Use the -R flag (chmod -R 755 /path) to apply permissions recursively to a directory and all its contents. Be cautious -- applying execute permissions to regular files when only directories need them is a common mistake.
3
Remember that directories need the execute bit to be traversable. A directory with permissions 644 (no execute) cannot be entered with cd, even if the user can read its contents.
4
On shared hosting, set your web root to 750 and files to 640 so that your web server group can read them but other users on the same server cannot access your files at all.
5
Use symbolic chmod (chmod u+x script.sh) when you want to add or remove a single permission without affecting the rest. Use numeric chmod (chmod 755 script.sh) when you want to set all permissions at once to a known state.

Frequently Asked Questions

1

What does chmod 644 mean?

chmod 644 sets the file owner to read+write (6), and group and others to read-only (4). In symbolic notation this is rw-r--r--. This is the standard permission for most files.
2

What does chmod 755 mean?

chmod 755 gives the owner read+write+execute (7), and group and others read+execute (5). Symbolically: rwxr-xr-x. This is the standard permission for directories and executable scripts.
3

What is the SUID bit?

The SUID (Set User ID) bit (4000) makes an executable run with the permissions of the file owner instead of the user running it. Common example: /usr/bin/passwd runs as root to modify /etc/shadow.
4

What is the difference between numeric and symbolic chmod?

Numeric chmod uses octal numbers (e.g., chmod 644) to set all permissions at once. Symbolic chmod uses letters (e.g., chmod u+x) to add or remove specific permissions. Both achieve the same result.
5

Is this chmod calculator free?

Yes, this chmod calculator is completely free with no signup required. All calculations happen in your browser — nothing is uploaded to any server.

Rate This Tool

0/1000

Get Weekly Tools

Suggest a Tool