Chmod calculator
Tick who may read, write and run a file to get the permission number and the chmod command, or type a number such as 644 to see what it allows.
How file permissions work
Three digits, three groups
The first digit is for the owner, the second for the group and the third for everyone else.
Add up 4, 2 and 1
Read is 4, write is 2 and execute is 1. Read and write together make 6; all three make 7.
Safe defaults
On most web hosting, files should be 644 and folders 755. Avoid 777: it lets anyone on the server change the file.
Understand your results
Plain-English guides from the AuroxHost Journal.
Chmod calculator: common questions
What permissions should website files have?
On most shared hosting: 644 for files and 755 for folders. Files that hold secrets, such as wp-config.php, are often set tighter, for example 640 or 600.
What does chmod 755 mean?
The owner can read, write and run the file; the group and everyone else can read and run it but not change it. It is the usual setting for folders and scripts.
What does chmod 644 mean?
The owner can read and change the file; the group and everyone else can only read it. It is the usual setting for web pages, images and PHP files.
Why is 777 dangerous?
It lets every user on the server read, change and run the file. On shared hosting, a fault in any other account or script could then alter your files.
Everything you need to check a website
A faster, safer home for your website
NVMe hosting with free SSL that renews itself, daily backups and free migration, with real people on WhatsApp 24/7.