Chmod Calculator
Tick read, write and execute boxes to get the chmod octal and symbolic notation — and back.
Unix file permissions compress nine yes/no answers into three digits, and the compression is where people slip. Each class — owner, group, others — gets one digit built by adding read (4), write (2) and execute (1). So an owner who can do everything is 7, a group that can read and execute is 5, and 755 unfolds to rwxr-xr-x: full access for the owner, read-and-enter for everyone else. This calculator runs the translation both ways, boxes to digits and digits to boxes, so the number you are about to type into a terminal is never a guess.
For directories, “execute” means being able to enter and list with known names — a folder without execute cannot be opened even if its files are readable. On a shared web host, 644 for files and 755 for folders are the usual safe defaults; 777 gives everyone write access and is almost never the right answer.
Quick answers
How do I work out a chmod number?
For each of owner, group and others, add read (4) + write (2) + execute (1) for the permissions you want. Read-and-execute is 5, everything is 7 — so full owner with read-execute for the rest is 755, symbolic rwxr-xr-x.
This calculator runs both directions: tick the boxes to build the number, or type a number like 644 and see the boxes it stands for (rw-r--r--).
What chmod should files and folders have on a website?
Files 644 (owner can edit, everyone else read-only) and folders 755 (owner full access, everyone else can enter and read). Avoid 777 — world-writable removes the protection the permissions exist to give.
Folders need the execute bit for anyone to open them, which is why their number is higher even when the intent — “others may look but not touch” — is the same as for files.
How to use
- Tick the read, write and execute boxes for owner, group and others until the grid matches the access you intend.
- Read the result: the three-digit octal value and the symbolic string, ready for a chmod command.
- Or go the other way — type an octal value such as 644 into the box and the grid ticks itself to show what it means.
About this tool
The two values worth memorising cover most of real life: 644 (rw-r--r--) for ordinary files — the owner can edit, everyone else can only read — and 755 (rwxr-xr-x) for folders and programs, where execute is what lets anyone open the folder or run the file. The dangerous one is 777, world-writable: it is the value people reach for when a permission error appears, and it “fixes” the error by removing the protection entirely. If a web upload folder seems to demand 777, the real problem is almost always ownership, not the permission bits.
Frequently asked questions
What does chmod 755 mean?
Owner: read, write, execute (7). Group: read and execute (5). Others: read and execute (5) — symbolic form rwxr-xr-x. It is the standard setting for folders and executable files: the owner controls it, everyone else can use it but not change it.
What is the difference between 644 and 755?
644 is rw-r--r--: the owner can read and write, everyone else read-only, nobody executes — right for documents, images and web pages. 755 adds execute for all three classes (rwxr-xr-x), which files only need if they are programs, but folders always need if anyone is to open them. A website is typically folders at 755 and files at 644.
How is each digit calculated?
Add the bits: read = 4, write = 2, execute = 1, absent = 0. Read plus execute is 5, read plus write is 6, all three is 7, none is 0. The three digits are owner, group and others, in that order — so 640 is an owner who can read and write, a group that can only read, and no access at all for anyone else.
Why is chmod 777 dangerous?
Because the last 7 gives every user and every process on the machine write access to the file or folder. On a web server that means any compromised script can rewrite it. 777 almost always papers over an ownership problem; the safer fix is to give the file the right owner and keep 644 or 755.
First time embedding? Read the step-by-step guide →
More free tools
UUID Generator
Generate random v4 UUIDs in bulk.
JSON Formatter & Validator
Format, minify and validate JSON in one click.
What Is My IP
See your public IP address instantly. No sign-up, nothing stored.
Regex Tester
Test, check and validate regular expressions with live highlighting.
JWT Decoder
Decode a JWT token without the secret — see its header and payload.
SHA-256 Hash Generator
Generate SHA-256 / SHA-512 hashes instantly.