Build a chmod command from a permission mode, with the recursive and directory-safe variants.
Unix Permission Calculator
Convert between octal and symbolic Unix permissions, including setuid, setgid and sticky, with the chmod commands.
- Free
- No sign-up
- Runs in your browser
Input
Octal (755, 0644, 4755) or symbolic (rwxr-xr-x). Converts either way.
Ready
Everything happens on this device. No upload, no account, no network request.
How to use this tool
- 1
Enter either an octal mode or a symbolic one; the tool converts in whichever direction is needed.
- 2
The breakdown shows exactly who can do what, and the commands section gives the chmod you need.
- 3
Warnings call out world-writable modes, setuid and the recursive-chmod trap.
Questions about Unix Permission Calculator
Why is 777 a bad idea?
Because it lets every user on the system read, modify and execute the file. It is almost always applied as a workaround for an ownership problem, and it leaves the real problem in place. Fix the owner or group instead - `chown` is usually the command you actually wanted.
What does the sticky bit do?
On a directory, it means only a file’s owner can delete or rename it, regardless of the directory’s write permission. That is why `/tmp` is mode 1777: anyone can create files there, but nobody can delete someone else’s.
Why is setuid dangerous?
A setuid binary runs as its owner rather than the invoking user. A setuid-root program with any exploitable bug hands an attacker root, which is why they are audited heavily and why `find / -perm -4000` is a standard security check.
Why did chmod -R 644 break my directory?
Because a directory needs execute permission to be entered at all - without it you cannot even list what is inside. Apply file and directory modes separately: `find . -type f -exec chmod 644 {} +` and `find . -type d -exec chmod 755 {} +`.
Is my data sent anywhere?
No. This tool runs as JavaScript inside your browser tab. There is no network request carrying your input, nothing is written to a server log, and it keeps working with your connection switched off. You can confirm it in the browser’s network panel. That matters more here than elsewhere on the site: developer tools handle tokens, keys and production data.
Related tools
Other tools you might reach for next.
Format and indent JSON, with optional alphabetical key sorting and a precise syntax error when it will not parse.
Strip every byte of insignificant whitespace from JSON and report the saving.
Check that JSON is syntactically valid, report its structure, and flag duplicate keys that JSON.parse accepts silently.
Compare two JSON documents structurally, by path, distinguishing a type change from a value change.
Evaluate a JSONPath expression against a document and see every match with the path that produced it.
Escape text so it can be embedded as a JSON string value, handling control characters and astral code points.
Decode an escaped JSON string back to its raw text, with or without the wrapping quotes.