Chmod Calculator
Tick the permission boxes and see the chmod octal number (755), symbolic notation (rwxr-xr-x) and command update instantly. Type a number to convert it back to checkboxes. setuid / setgid / sticky are supported. Everything stays in your browser.
When in doubt, 644 (regular files) and 755 (executables and directories) are the classics.
Enter 3 digits (755) or 4 digits with a special bit (4755).
| Who | Read r · 4 | Write w · 2 | Execute x · 1 |
|---|---|---|---|
| Owner u | |||
| Group g | |||
| Others o |
--------- chmod 000 How to use the chmod calculator
Toggle the permission checkboxes, or type a value like 755 into the number field, and the symbolic notation (rwxr-xr-x) and chmod command update on the spot. Grab any value with its Copy button.
- Number and checkboxes stay in sync: typing a number ticks the boxes, and ticking the boxes changes the number.
- What each digit means: it is the sum of read
r=4, writew=2and executex=1. So7=rwx,5=r-x,4=r--. - Special bits: setuid / setgid / sticky add a leading fourth digit, and in symbolic notation the execute position becomes
s/t(uppercaseS/Twhen execute is off). - The command is ready to run: append the target file or directory name (use
chmod -Rto recurse into a directory).
Handy for
- Confirming
644(files) /755(directories) in a web server's public folder - Fixed permissions such as an SSH private key that must be
600or it is rejected - Security reviews to spot overly open modes like
chmod 777 - Quickly reading "who can do what?" from a bare number
The symbolic notation is 9 characters (owner, group, others × r/w/x). In ls -l a file-type character precedes it (- for a regular file, d for a directory, l for a symlink).