Chmod Calculator — Linux File Permissions Generator
Convert between numeric 755 and symbolic rwxr-xr-x Unix/Linux file permissions in real time. Click checkboxes, type an octal value, or pick a preset — then copy the ready-to-run chmod command. Preview a change like u+x. Compare two permission modes.
Looking for a shorter entry point? Visit /chmod-calc for a quick chmod calc guide plus the same generator.
Have a directory listing? Decode ls -l output. Seeing 100644 or 100755 in a diff? Check Git file modes.
Paste one ls -l row to convert its mode. Set the command’s path below.
Permission Grid
Command
Preview a symbolic chmod change
See what GNU chmod would change before running a command. Try u+x to let the owner execute a file or g=u,o-rwx to match the group to the owner and remove access for everyone else.
Applies when you omit u, g, o or a from the change.
- Before
- 644rw-r--r--
- After
- 744rwxr--r--
The command uses the filename or path in the calculator above.
Compare file permissions
Enter an octal mode, symbolic permissions, or one ls -l row in each field. The 644 to 755 example adds execute or search for all three classes.
644 (rw-r--r--) → 755 (rwxr-xr-x)
- Owner
- Added Execute or search
- Group
- Added Execute or search
- Others
- Added Execute or search
- Special bits
- No change
This compares the recorded mode bits in your browser. For permissions through a parent directory or an ACL, use the Linux permissions checker or ACL calculator.
Quick Presets
Permission Breakdown
Owner can read, write, and execute. rwx
Group can read and execute. rwx
Others can read and execute. rwx
How chmod numbers work
Each digit sets one class of user: the owner, the group, then everyone else. Add read (4), write (2) and execute (1): 7 is rwx, 6 is rw-, 5 is r-x, 4 is r-- and 0 is ---. So 755 is rwxr-xr-x (the owner can do everything, others can read and run it) and 644 is rw-r--r-- (the owner can edit, everyone else can read).
An optional fourth digit in front sets the special bits: 4 for setuid, 2 for setgid and 1 for sticky. 4755 shows as rwsr-xr-x, and 1777 as rwxrwxrwt. In a sticky directory such as /tmp, ordinary users can remove or rename only entries they own or entries in a directory they own.
Convert ls -l permissions to octal
Paste a row from ls -l into Symbolic. For example, -rw-r-----+ converts to 640 even with an access control list marker. For a Linux file marked +, check effective ACL permissions.
Setting permissions in a Linux container image? Build a Docker COPY --chmod instruction.
Debugging a permission error? Check access for an account and parent directory.
Setting permissions for new files and directories? Open the umask calculator.
Common chmod modes
- 644 (rw-r--r--): regular files such as web pages and config files.
- 755 (rwxr-xr-x): scripts and programs, and directories other users need to enter.
- 600 (rw-------): private files such as SSH keys.
- 700 (rwx------): private directories such as ~/.ssh.
- 664 / 775: files and folders shared with a project group.
- 777: anyone with access to the file can read, write or execute it. Deletion depends on the parent directory.
On a directory, execute (x) lets a user enter it and read (r) lets them list its names, so directories usually need x wherever r is set. Use chmod -R to apply a mode to a directory and everything inside it. Read the full chmod guide.