Chmod calculator
Work out Unix file permissions in octal and symbolic form by ticking boxes.
In your browser
| Read | Write | Execute | |
|---|---|---|---|
| Owner | |||
| Group | |||
| Everyone else |
Symbolic
Command
Popular uses
About this tool
Calculate and understand Linux and Unix file permissions visually. Select read (r), write (w), and execute (x) permissions for Owner (User), Group, and Others (World) to generate standard octal numbers (e.g. 755, 644) and symbolic notation (-rwxr-xr-x), or enter an octal code to decode permissions.
How to use it
- 1 Check or uncheck permission boxes for Owner, Group, and Public/Others.
- 2 Or type an octal number like 755 or 644 into the input box.
- 3 Read the resulting octal representation, symbolic permission string, and terminal chmod command.
- 4 Copy the command to apply it in your SSH terminal or shell script.
Questions
What do the numbers in chmod 755 mean?
Each digit represents permissions for Owner (7), Group (5), and Others (5). 7 = Read (4) + Write (2) + Execute (1); 5 = Read (4) + Execute (1). This allows the owner full control while others can only read and run the file.
What permissions should web server files have?
Best security practice on Linux web servers (Nginx/Apache) is chmod 644 for regular files (HTML, PHP, images) and chmod 755 for directories, allowing the server to enter directories and serve files safely.
Why is chmod 777 dangerous?
chmod 777 grants every user on the system permission to read, modify, overwrite, and execute the file. On shared hosting or public servers, this exposes your files to tampering, malicious code injection, and security breaches.
Is my data uploaded?
No. This tool runs in your browser, so your text and files never reach our server.
Is this tool free?
Yes. It’s free to use with no sign-up and no limits for normal use.
More in Code & markup
- Regex tester Test a regular expression against your text, with matches and capture groups highlighted live.
- Cron expression parser Explain a cron schedule in plain English and list the next times it will run.
- HTTP status codes Look up what any HTTP status code means and when to use it.
- HTML minifier Remove comments and collapse whitespace in HTML.
- CSS minifier Remove comments and unnecessary whitespace from CSS.
- JavaScript minifier Minify JavaScript onto one line with Terser: strips comments and spaces, shortens local names and simplifies code.