Skip to content

DevOps

chmod Calculator

Convert Unix file permissions between octal and symbolic notation.

Loading tool…

Find this tool in

About this tool

What is chmod Calculator?

Translate ordinary Unix permission bits into a representation you can read before changing a file or directory. Owner, group and other permissions are separate decisions. The calculator explains the notation locally; it does not know a file's actual owner, access-control lists, mount options or the policy of the machine where it is stored.

A worked example

Read the three permission classes in 754

Example input

754

Expected result

rwxr-xr--

Seven grants read, write and execute to the owner; five grants read and execute to the group; four grants read to others. This is a notation conversion, not a recommendation for every file. Directory execute permission has traversal meaning, so decide what people must actually do with the target before choosing its bits.

Common mistakes and limits

  • A broad permission such as 777 is not a general fix for an access problem. Inspect ownership and the actual operation that is failing.
  • Permission bits alone do not describe every access rule. ACLs, platform controls and parent-directory permissions can still affect effective access.

Features

What you can do

  • Convert octal permissions such as 755, 644 and 1777.
  • Generate symbolic permissions such as rwxr-xr-x.
  • Toggle read, write and execute permissions visually.
  • Configure owner, group and other user permissions.
  • Support setuid, setgid and the sticky bit.
  • Explain the numeric values of read, write and execute permissions.
  • Generate a complete chmod command for a file or directory.
  • Copy octal, symbolic and command results.
  • Load common Unix permission examples.
  • Perform every calculation locally in your browser.

Frequently asked questions

Questions about chmod Calculator

What does chmod 755 mean?

The owner can read, write and execute. The group and other users can read and execute, but cannot write.

What does chmod 644 mean?

The owner can read and write. The group and other users can only read.

What do the numbers 4, 2 and 1 represent?

Read has a value of 4, write has a value of 2 and execute has a value of 1. Adding them produces each permission digit.

What is the sticky bit?

On a shared directory, the sticky bit prevents users from deleting files owned by other users. A common example is chmod 1777.

What are setuid and setgid?

setuid runs an executable with the file owner's effective user ID. setgid runs with the file group's ID or causes new files in a directory to inherit its group.

Does this tool change file permissions?

No. It only calculates and generates chmod values and commands. It never accesses or modifies your files.

Related tools