Chmod Calculator

Read (4)Write (2)Execute (1)
Owner
Group
Others
In short: 755 is rwxr-xr-x (owner does everything; group and others read and execute), 644 is rw-r--r--, 600 is rw------- and 777 is rwxrwxrwx — almost always a mistake. Click the boxes, pick a preset, or type the number: all three views stay in sync.

Nine bits that guard every Unix file

Every file and directory on a Unix or Linux system carries nine permission bits: read, write and execute, for three audiences — the file's owner, its group, and everyone else. The system is fifty years old, brutally simple, and still the first line of defence on nearly every server on earth. Its two notations confuse every beginner in the same place: the symbolic form (rwxr-xr-x) shows the bits directly, while the octal form (755) compresses each triple into one digit by giving read the weight 4, write 2 and execute 1, and adding. Once that single idea clicks — 7 is 4+2+1, all three; 5 is 4+1, read and execute; 0 is nothing — every mode you will ever meet becomes readable at sight. This calculator exists to make the click happen: tick boxes and watch the number, type a number and watch the boxes, and use the presets to memorise the half-dozen modes that cover nearly all real work.

The subtlety that catches people is that the same bit means different things on a directory. Read lets you list its names; write lets you create and delete entries; execute — the one nobody expects — lets you enter it and reach the files inside at all. A directory at 644 is therefore a locked door with a window: you can see the filenames and read nothing, enter nowhere. That is why the standard pairing is directories 755, files 644, and why "permission denied" on a folder so often traces back to a missing x rather than a missing r.

How the conversion works

Each audience's digit is the sum of its ticked weights (read 4, write 2, execute 1), and the three digits are written owner-group-others. The optional fourth digit carries the special bits with the same weighting pattern: setuid 4, setgid 2, sticky 1. The command line shown under the result is ready to paste, with the filename as a placeholder — and the calculator also accepts a typed octal mode, including a four-digit one, and rebuilds the checkboxes from it.

Worked examples

755: owner 7 (rwx), group 5 (r-x), others 5 (r-x) → rwxr-xr-x. The directory and executable standard.

644: owner 6 (rw-), group 4 (r--), others 4 (r--) → rw-r--r--. The ordinary file standard.

600: owner 6, group 0, others 0 → rw-------. SSH keys, .env files, anything with a secret in it.

1777: the sticky bit plus full permissions → rwxrwxrwt — the /tmp arrangement, where everyone can create files but only owners can delete their own.

The modes you will actually use

ModeSymbolicUse it for
644rw-r--r--Regular files: code, documents, web assets
755rwxr-xr-xDirectories; executable scripts and programs
600rw-------Private keys, config with secrets, personal data
700rwx------Private directories (home subfolders, key stores)
664 / 775rw-rw-r-- / rwxrwxr-xShared team folders where the group edits
444r--r--r--Freezing a file against accidental edits (including yours)
777rwxrwxrwxDebugging for five minutes — then put it back

Frequently asked questions

What does chmod 755 mean?

The owner can read, write and execute (7 = 4+2+1); the group and everyone else can read and execute but not write (5 = 4+1). In symbolic form: rwxr-xr-x. It is the standard setting for directories and executable programs — directories need the execute bit to be entered at all, which is why folders are so often 755 while the ordinary files inside them are 644.

How do I read rwxr-xr-x?

As three triples, for owner, group and others, each triple in read-write-execute order, with a dash where a permission is absent. rwxr-xr-x therefore reads: owner read+write+execute, group read+execute, others read+execute. Convert each triple to a digit by adding 4 for r, 2 for w and 1 for x, and you have the octal number — 755. The calculator above converts in both directions as you click.

What permissions should files on a web server have?

The common, safe baseline: directories 755, ordinary files 644, and configuration files containing passwords or keys 600 (owner only). Upload folders that the web server must write to are the one regular exception and deserve extra care. Avoid 777 — world-writable — on anything a server serves: it lets any process or compromised account on the machine rewrite your files, and it is almost never actually required.

What are the setuid, setgid and sticky bits?

Three extra permissions carried in a fourth, leading octal digit: setuid (4) runs an executable with its owner's rights, setgid (2) does the same for the group — and on a directory, makes new files inherit the directory's group — and the sticky bit (1) on a directory stops users deleting each other's files, which is why /tmp is 1777. They show in listings as s, s and t inside the triples. Powerful, occasionally essential, and worth auditing.

Why does SSH refuse my private key file?

Because OpenSSH checks the key's permissions and rejects keys that anyone else can read: it insists on 600 (or stricter). A key copied from a USB stick or a shared folder often arrives as 644 or 664, and SSH reports 'permissions are too open' and ignores the key rather than risk it. chmod 600 on the private key file fixes it — one of the few times a permission is enforced by the application, not just the filesystem.

Note: Permissions interact with ownership, groups, ACLs and umask defaults — this calculator converts the mode itself. On shared hosting and managed servers, your provider's configuration may add rules of its own.

Related tools

Conversions and guidance last verified: 24 November 2026. Everything is calculated in your browser — nothing you type is sent anywhere.