Skip to content

Chmod Calculator

Convert Unix permissions between checkboxes, numbers and rwx.

  • 100% Free
  • No Sign Up
  • Works in Your Browser

Chmod calculator

Unix file permissions, numeric and symbolic

More Developer Tools

View all tools

Every everyday developer tool, right in your browser.

No installs. No uploads. No signup.

Browse all 36 tools
Developer tools
36
Cheat sheets
10
Bytes uploaded
0

How to use the chmod calculator

Three steps, all in your browser.

  1. 1

    Set the permissions

    Tick read, write and execute, or type a number such as 755.

  2. 2

    Read the result

    Matches, differences or the explanation update as you type.

  3. 3

    Copy the result

    Copy the output in one click. Nothing is saved or sent anywhere.

Chmod Calculator: what to know

The chmod calculator converts Unix file permissions between checkboxes, the numeric (octal) form such as 755 and the symbolic form such as rwxr-xr-x. Tick read, write and execute for the owner, the group and everyone else, or type a number, and copy the chmod command.

Each permission has a value: read is 4, write is 2 and execute is 1. Add them for each class of user to get one digit, so rwx is 7, r-x is 5 and r-- is 4. The three digits are for the owner, the group and others, in that order. For directories, execute means permission to enter the directory and read means permission to list it.

Common settings: 644 for regular files (owner can write, everyone can read), 755 for directories and executable scripts, 600 for private files such as SSH keys, which ssh refuses to use if others can read them. 777 lets every user modify the file and is almost never the right fix for a permission error.

Popular uses

  • Setting permissions on web server files
  • Fixing 'permissions are too open' errors for SSH keys
  • Making a script executable
  • Reading permissions shown by ls -l

Tips for the best result

  • Run ls -l to see current permissions in symbolic form.
  • Use chmod -R carefully: files and directories usually need different permissions.
  • Prefer fixing ownership (chown) over widening permissions to 777.

Read how JustYourDev works and our privacy details. Code, data and files you use here are processed in your browser and are never sent to our server.

Frequently asked questions