Free online tools

Chmod Permission Calculator

Read a file mode and translate it into the other notation. See the separate owner, group and other permission bits and choose which form to copy.

Enter your values

Try 0644, rw-r--r--, or u=rw,g=r,o=r. The tool converts text in your browser.

This tool processes your input in your browser.

Result

Read the three permission classes

Each class has a read value of 4, a write value of 2 and an execute or search value of 1. Add the enabled values for the owner, group and others. For example, rw-r--r-- represents 6, 4 and 4, with a leading zero for no special bits.

Recognize the optional special digit

The first digit uses 4 for set-user-ID, 2 for set-group-ID and 1 for the sticky bit. The nine-character output shows s or t when the position also has execute or search permission, and S or T when that permission is absent.

Frequently asked questions

Can I paste a mode copied from a file listing?

Yes. Paste the nine permission positions, or prepend a conventional file-type character such as a hyphen or d. Use the mode characters alone when the listing adds ACL or other suffix markers.

What kind of symbolic assignments work?

Use one absolute assignment for each of u, g and o, in any order. Each assignment can contain r, w and x, or an empty value. Relative changes depend on a starting mode and are outside the conversion.

Does this change permissions on my device?

The output is text. File access behavior can also depend on filesystem attributes, directory permissions, ACLs and the system policy.