chmod Calculator for Files and Folders

Tick read, write and execute for owner, group and others, or type a number such as 755, and get the explanation and the ready command, with a warning when the permission is dangerous.

Calculate now
rwxrwxrwxchmod 755rwxr-xr-x777 unsafe

Calculator

ReadWriteExecuteOwnerGroupOthers

How the tool works

Simple steps, all in your browser with no sign-up.

Tick permissions

Or type the number.

Read the meaning

With warnings for unsafe values.

Copy the command

For a file or a whole folder.

Common permissions

NumberSymbolicUsed for
644rw-r--r--Normal website files
755rwxr-xr-xFolders and executable scripts
600rw-------Secret files such as private SSH keys
640rw-r-----Config files such as wp-config.php
777rwxrwxrwxNever use it on hosting

Each digit is a sum: read 4, write 2, execute 1. So 7 means all three, 5 read and execute, 6 read and write.

Safe WordPress permissions

  • Folders 755, files 644.
  • wp-config.php at 640, or 600 if your host allows.
  • Do not use 777 to fix image uploads; the cause is usually file ownership, not permissions.
  • In cPanel, change permissions from File Manager with the Permissions button.
  • Protect sensitive files with the htaccess generator too.

Special permissions: the fourth digit

NumberNameExample
4xxxsetuid: runs with the owner's rights/usr/bin/passwd
2xxxsetgid: new files inherit the folder groupShared team folders
1xxxsticky: only the owner can delete files/tmp at 1777

Websites rarely need them; three digits cover most cases.

Key terms

Short definitions of what you meet along the way.

chmod
A Linux command that changes file and folder permissions.
Owner and group
The owner is the account that owns the file; the group shares its permissions.
chown
A command that changes a file's owner; many upload problems are about ownership, not permissions.

Frequently asked questions

Did not find your answer? Ask us on WhatsApp

Why is 777 dangerous?

It lets any user or script on the server modify the file, making code injection easy.

What does execute mean for a folder?

For a file it means running it as a program; for a folder it means entering it and reading its contents.

I got a 500 error after changing permissions. Why?

Some servers refuse to run PHP files or folders writable by everyone. Set them back to 644 and 755.

Want hosting with correct security settings?

cPanel hosting with protection against hacking.

Contact us on WhatsApp