Chmod Calculator: Octal, Symbolic & umask
Convert Unix file permissions between octal (755) and symbolic (rwxr-xr-x), apply changes like u+x and calculate umask, with setuid, setgid and sticky bit.
| Read | Write | Execute | |
|---|---|---|---|
| Owner | |||
| Group | |||
| Others |
Command
As in ls -l:
Notes
| New files | |
|---|---|
| New directories |
At a glance
- Processing
- Locally in your browser, also offline once the page has been opened. Input never leaves your device.
- Input
- Octal (755, 4755), symbolic (rwxr-xr-x, ls style) and relative changes like u+x,g-w
- Also
- Setuid, setgid and sticky bit (s, S, t, T), umask for new files and directories
- For agents
-
WebMCP:
chmod_calculate· Module:/core/chmod.js· Markdown · llms-full.txt
How to Use
- 01 Set the permissions Tick the boxes, or type an octal mode like 755 or a symbolic one like rwxr-xr-x. All fields follow each other.
- 02 Apply a change Enter a change such as u+x or go-w and apply it to the current mode.
- 03 Copy the command Copy the chmod command. Warnings point out risky settings such as world-writable files.
About this tool
Every Unix file has a mode with read, write and execute bits for the owner, the group and everyone else, plus three special bits. chmod changes it, ls -l shows it.
Relative changes follow GNU chmod. The tool never touches files: it only converts and explains modes.
Frequently Asked Questions
The owner can read, write and execute (7), group and others can read and execute (5 each). It is rwxr-xr-x in symbolic form, the usual mode for programs and directories.
Read is 4, write is 2 and execute is 1. Add them per class: owner, group, others. 6 means read and write, 7 means all three.
A lowercase letter means the special bit (setuid, setgid or sticky) is set together with execute. An uppercase letter means the bit is set without execute, which usually has no effect.
The umask removes permissions from new files (which start at 666) and directories (777). With umask 022, files get 644 and directories 755.
Every user on the system can then change or replace the file. Give write access only to the owner or a group, and use 755 or 644 instead.