Skip to content
Free website migration on every plan, done by our team.Learn more ›
Free tool · Hosting

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.

Owner
Group
Others
Command

How it works

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.

Questions

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.

More free tools

Everything you need to check a website

Hosting plan finderAnswer five quick questions and get the hosting plan that fits.Uptime calculatorTurn an uptime percentage into real downtime per day, month and year.WHOIS lookupSee who a domain is registered with and when it expires.DNS lookupCheck A, MX, TXT, SPF, DMARC and other records in seconds.SSL checkerCheck a site’s certificate, who issued it and when it expires.Website speed testMeasure how fast a server answers, plus its security headers.What is my IP?See the public IP address websites see when you visit.Domain name generatorTurn a few words into domain names that are free to register.Email security checkerGrade a domain’s SPF, DKIM and DMARC and see why email lands in spam.Website checkerOne check for DNS, SSL, speed, security headers and email protection.IP address lookupLook up any IP: its provider, network, country, reverse DNS and abuse contact.DNS propagation checkerSee if a DNS change has reached the world’s big DNS resolvers yet.Email blacklist checkerSee if a mail server IP or a domain is on the email block lists.SPF and DMARC generatorCreate the SPF and DMARC records that keep your email out of spam.Subnet calculatorNetwork, host range and masks for any IPv4 or IPv6 subnet.Password checker and generatorTest a password’s strength and create strong ones, privately in your browser.Binary translatorTurn text into binary or hex and decode it back, in your browser.Base64 encoder and decoderEncode text to Base64 or decode Base64 back to text.Hash generator (SHA-256)SHA-256, SHA-1, SHA-384 and SHA-512 hashes of any text.Unix timestamp converterTurn a Unix timestamp into a date, or a date into a timestamp.
See all 21 free tools
AuroxHost

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.