Chmod Calculator
Calculate Linux file permissions as octal, symbolic letters, and a chmod command.
Introduction
Chmod Calculator converts Linux file permissions between octal (755, 644) and symbolic form (rwxr-xr-x). Paste an ls -l line, tick owner, group, and others, and copy a chmod command. A umask tab shows the default mode for new files and folders. The recursive helper writes find commands so directories and files are not given the same mode.
How chmod numbers work
Each digit is read (4) + write (2) + execute (1) for one of owner, group, and others.
| Number | Letters | Meaning |
|---|---|---|
| 0 | --- | no access |
| 1 | --x | execute only |
| 2 | -w- | write only |
| 3 | -wx | write and execute |
| 4 | r-- | read only |
| 5 | r-x | read and execute |
| 6 | rw- | read and write |
| 7 | rwx | read, write and execute |
Common chmod values
| Value | Letters | Use it for |
|---|---|---|
644 | rw-r--r-- | Normal files: HTML, CSS, images |
755 | rwxr-xr-x | Folders and scripts |
600 | rw------- | .env files and SSH private keys |
700 | rwx------ | Private folders such as ~/.ssh |
777 | rwxrwxrwx | Almost never — anyone can change the file |
400 | r-------- | Read-only keys, for example an AWS .pem |
Features
- Owner, group, others, and special bits (setuid, setgid, sticky)
- Octal, symbolic, and ls -l stay in sync
- chmod command in numeric and symbolic form
- Recursive find helper and umask defaults
- Presets for keys, web files, and shared folders
How to use
- 1Tick Read, Write, and Execute, or type an octal mode such as 755.
- 2Paste a symbolic string or a full ls -l line to decode it.
- 3Copy the chmod command, or open the umask tab for new-file defaults.
Example
Script mode
Input755Output
rwxr-xr-x chmod 755 file
Benefits
- Use Chmod Calculator without installing a desktop app or browser extension.
- Works well alongside Base Converter and Dockerfile for adjacent steps in the same workflow.
- Results stay in this browser tab until you copy or download them.
FAQs
The owner can read, write, and run the file. The group and everyone else can read and run it, but not change it. In letters that is rwxr-xr-x.
644 is rw-r--r-- and has no execute bit, so it fits normal files. 755 is rwxr-xr-x and adds execute, so it fits scripts and folders.
777 lets any user on the system change or replace the file. On a web server that can turn into a site takeover. Use 755 for folders and scripts and 644 for other files.
Use 600 or 400 for the private key, and 700 for the ~/.ssh folder. SSH refuses keys that other users can read.
The sticky bit is the 1 in modes such as 1777. On a folder, users can delete only their own files. That is why /tmp is 1777, shown with a t in the last position.
umask is a mask subtracted from the default mode of new files and folders. With umask 022, new files are 644 and new folders are 755. With 077, they are 600 and 700.
No. Modes, filenames, and pasted ls -l lines stay in your browser and are not sent to a server.
Related guides
Learn what chmod 755, 644, 600 and 777 mean, how to read rwxr-xr-x, and how to set safe Linux file permissions with our free chmod calculator.