Octal, rwx and chmod commands
- Free
- No sign-up
- No upload
- Works offline
Tool facts
- Price
- Free, no sign-up, no watermark
- Are files uploaded?
- No. Everything is processed in this browser, on your device.
- Offline use
- Works without a connection once this page has loaded
- Browser
- A recent Chrome, Edge, Firefox or Safari, on computer or phone.
Check it yourself: press F12, open the Network tab, then use the tool. No request carries your data.
About Chmod Calculator
Chmod Calculator converts Unix and Linux file permissions between the 3×3 read/write/execute grid, octal numbers such as 755 or 2775, and the rwxr-xr-x string that ls -l prints. Click the grid, pick a preset or paste a value, and every form updates at once, along with two ready commands: chmod 755 file and the equivalent chmod u=rwx,g=rx,o=rx file. A sentence spells out who can do what, and it changes wording when you mark the target as a directory, where r means list, w means create or delete entries and x means enter.
The input box also takes symbolic chmod expressions like u+x,go-w, g=u or a+rX and applies them to the current permissions using the same rules as GNU chmod, including X, copying from another class and several operators in one clause. Errors name the bad character and its position. The setuid, setgid and sticky bits are shown as s, S, t and T exactly as ls does, with warnings for world-writable modes such as 777 or 666. A umask panel shows the default mode of new files and directories.
Chmod Calculator runs entirely in your browser. Your data is processed on your device and is never uploaded to Qiyi or anyone else.
How to use Chmod Calculator
- Click the r, w and x buttons for Owner, Group and Others, and toggle setuid, setgid or sticky if you need them.
- Or type an octal mode, an ls -l string or a symbolic expression such as u+x,go-w in the Type here box, or pick a preset.
- Turn on This is a directory if the target is a folder, then read the Meaning text and any warnings.
- Edit the file name, switch on Recursive -R if needed, and copy the octal or symbolic chmod command.
- Enter your umask, for example 022, to see the permissions new files and directories will get.
Frequently asked questions
What does chmod 755 mean?
Each digit is the sum of read (4), write (2) and execute (1) for owner, group and others. 7 = 4+2+1 gives the owner rwx, and 5 = 4+1 gives group and others r-x, so 755 is rwxr-xr-x. A fourth leading digit holds setuid (4), setgid (2) and sticky (1); 2775 is rwxrwsr-x.
How does the tool apply symbolic modes such as u+x or g=u?
It follows GNU coreutils chmod: who letters u, g, o and a, operators +, - and =, permission letters r, w, x, X, s and t, or one of u, g and o to copy that class. Clauses are separated by commas, and a clause may chain operators, as in u+r-w. The expression works on the permissions shown before you started typing. One deliberate difference: when you leave out the who letters, real chmod masks the change with your umask, while this tool treats the clause as a. It was checked against GNU chmod 9.4 on Linux with 2,600 test cases (random expressions and numeric modes on files and directories) and gave the same result in every case.
What is the difference between x and X?
x always sets execute. X sets execute only if the target is a directory or if someone already has execute on it. That is why chmod -R u=rwX,go=rX is the usual way to fix a whole tree: folders stay enterable and plain files do not become executable. Turn on This is a directory to see how X behaves on a folder.
Why does chmod 755 not remove setgid from my directory?
GNU chmod keeps the setuid and setgid bits of a directory when a numeric mode has fewer than five digits, so chmod 755 and even chmod 0755 leave a 2755 directory at 2755. The same happens with u=, g= and o= when s is not mentioned. To clear the bits use five digits, chmod 00755 dir, or chmod g-s dir. On regular files the digits replace every bit. The tool shows this note when This is a directory is on.
What do the capital S and T mean in ls -l output?
A lowercase s or t means the special bit and the execute bit are both set. A capital S means setuid or setgid is set without execute in that position, and a capital T means sticky is set without execute for others. The tool accepts all of them as input, with or without the leading file type letter, and ignores a trailing . or + that marks SELinux context or ACLs.