🗝️

Chmod Calculator

Convert Unix file permissions to octal and symbolic

🧑‍💻 Developer ToolsFreeRuns in your browser
ClassRead (4)Write (2)Execute (1)Octal
Owner6
Group4
Other4
0644
Octal
rw-r--r--
Symbolic
chmod 0644 path/to/file
Terminal command
Quick guide: 644 lets everyone read a file but only the owner write it, which suits web pages. 755 adds execute for folders and scripts. 600 keeps a file private to its owner. Avoid 777 on anything reachable from the internet.

About the Chmod Calculator

The Chmod Calculator converts read, write, and execute permissions into the octal number used by chmod. Tick the boxes for owner, group, and others, then copy the command.

Permissions are best set as narrowly as the application allows. If a deployment needs broader access, fix the ownership instead of opening the file to everyone.

  • ✓Octal and symbolic notation at once
  • ✓Presets for common permission sets
  • ✓Copy-ready chmod command

How to use the Chmod Calculator

  1. 1

    Tick read, write, and execute for each class.

  2. 2

    Check the octal and symbolic results.

  3. 3

    Copy the chmod command and run it on your server.

Frequently asked questions

What does 777 mean and why avoid it?+

It gives every user read, write, and execute access. On a web server that lets anyone modify files, which is a common way sites get compromised.

Which permissions do folders need?+

Folders need execute to be entered, so 755 is typical for directories and 644 for regular files. Scripts additionally need execute for the user running them.

Save Chmod Calculator to your favorites, or keep browsing developer tools.

Browse all 35 developer tools →