Updated · Built and checked by the PlinzoTools team, formulas tested against published sources
Convert between symbolic (rwxr-xr--) and numeric (754) Unix permissions.
754
Unix/Linux file permissions can be written two ways: symbolic (rwxr-xr--) or numeric (754), the format chmod commonly uses. This tool converts between them in either direction, since translating one to the other by hand is a common source of small mistakes.
Choose a conversion direction and enter permissions in the matching format. The converted value appears instantly.
Permissions are grouped in 3 sets of 3: owner, group, and others -- each set has read (r=4), write (w=2), and execute (x=1) flags. Summing the flags present in each 3-character group gives that group's single numeric digit (e.g. rwx = 4+2+1 = 7, r-x = 4+0+1 = 5).
rwxr-xr-- (owner: read/write/execute, group: read/execute, others: read-only) converts to 754.
For a general number base conversion (not specifically permissions), see the Number Base Converter.
In symbolic-to-numeric mode, enter either nine characters such as rw-r--r--, or ten characters where the first is the file-type marker as in ls output, for example -rw-r--r--. The leading marker is dropped before converting. In numeric-to-symbolic mode, enter exactly three digits, each from 0 to 7. Four-digit values such as 0755 or 4755 are rejected, as are digits 8 and 9, and the tool shows an error message rather than guessing.
The digits mean slightly different things for directories than for files. Read lets you list the names inside, write lets you create or delete entries, and execute lets you enter the directory or reach items inside it by path. A directory with 644 is usually a mistake because the missing execute bit stops people from accessing its contents even though they can see its name. The calculator itself only converts notation; it does not know whether the target is a file or a directory, so apply this reasoning yourself.
If a symbolic string contains s or t in the execute position, the calculator treats that position as execute set and outputs only the ordinary three digits. It does not produce the fourth leading digit for setuid, setgid, or sticky bits, so a value like rwsr-xr-x will come out as 755 without any indication of the special bit. Access control lists and file attributes are also outside its scope. For any change on a production server, confirm the meaning with your system administrator or documentation, and test on a copy first.
Owner gets read/write/execute (7), while group and others each get read/execute (5) -- a very common setting for executable scripts and directories that need to be readable/executable but not writable by non-owners.
644 (rw-r--r--) is typical for a non-executable file like a text document or image; 755 (rwxr-xr-x) adds execute permission, appropriate for a script or program that needs to be run.
This tool handles the standard rwx permission set only; special bits (setuid, setgid, sticky) use a 4th leading digit in numeric notation and additional symbolic characters (s, t) not covered here.
The tool accepts exactly three digits from 0 to 7. Drop the leading zero and enter 644.
600 gives only the owner access, while 644 also lets the group and everyone else read it. Use the narrower setting for anything sensitive.
Yes, if you paste the ten-character permission string, the leading file-type character is ignored. Trim any extra text such as link counts or owner names first.
Reference: MDN Web Docs