chmod Permission Calculator (Octal and rwx Conversion)
About this tool
Check file permissions used on Linux and similar systems. Enter 644, for example, to see what the owner, group and other users can do. You can also paste the permission field from ls -l to convert it to octal. Select the permissions you need using the checkboxes to see the corresponding octal and rwx notation. All processing happens entirely in your browser (no data is sent).
Convert permissions
rw-r----- or -rw-r----- becomes 640. The directory permissions drwxr-x--- become 750.
Result 644(rw-r--r--)
The difference between 644 and 755
Each digit adds 4 for read (r), 2 for write (w) and 1 for execute/search (x). In symbolic notation, a permission that is not granted is shown as -.
- 644(
rw-r--r--) allows the owner to read and write, while the group and other users can only read. The owner's 6 is 4 + 2. - 755(
rwxr-xr-x) gives the owner all three permissions, and the group and other users read and execute/search permissions. Starting from 644, selecting execute/search for all three groups adds 1 to each digit, producing 755.
For regular files, x permits execution. For directories, r permits listing the names inside, and x is the search permission needed to access files and subdirectories by name.
Scope of the calculation
In the ls -l field -rw-r--r--, the first character is the file type and the next nine are permissions. Accepted type characters are -, d, l, b, c, p and s. When copying, omit the owner name, file name and extra information such as a trailing + or ..
This calculator handles the nine ordinary permission bits. It displays guidance for inputs containing setuid, setgid or the sticky bit, such as 4755 or -rwsr-xr-x. It does not operate on files or change their permissions.