Chmod Calculator
Pick read/write/execute bits and get the octal mode plus the chmod command
| Identity | Read r (4) | Write w (2) | Execute x (1) | Value |
|---|
Instructions
chmod Permission Calculator Instructions
Overview
Linux file permissions come in two forms: octal (755) and symbolic (rwxr-xr-x). This tool lets you convert between them by checking boxes, so you avoid mistakes that leave files unopenable or permissions too wide open.
How to Use
- In the table, check the read (r=4), write (w=2) and execute (x=1) permissions for owner, group and others
- The value for each group appears on the right in real time, and the three-digit octal, four-digit octal and symbolic forms are shown below
- You can also type 755 directly into the "octal" input box and the checkboxes will sync in reverse
- Click a common permission button to quickly apply 644 / 600 / 755 / 700 / 775 / 777
- The dark box at the bottom holds a copy-ready
chmod xxx filenamecommand
Notes
- 777 means anyone can rewrite the file, so do not use it in production; the usual practice for website directories is 644 for files and 755 for directories
- Give execute permission (x) only to scripts that actually need to run; plain text files and images do not need x
- Each octal digit can only be 0-7; if you enter 8 or 9 the tool takes the value per digit and shows a hint
- For directories, x means "you can enter this directory", which differs from the meaning of x on files
FAQ
Where are 644 and 755 used?
644 is for regular files: the owner can read and write, others can only read. 755 is for directories and scripts that need to run: the owner can read, write and execute, others can read and execute.
Why can't 777 be used in production?
777 means anyone can modify the file. If a website directory is 777, an attacker only needs to find an upload entry point to replace it with their own script and run it, which is very risky.
What does x mean in directory permissions?
For a directory, x means "you can enter it and look up files inside it". If a directory has no x, you cannot access the files inside even if it has r permission.
Related Articles
What Is the Difference Between Image Compression and Format Conversion?
Through this article, you can distinguish the applicable scenarios of image compression and format conversion, master specific solutions to three types of problems: poor image quality, format errors, and batch processing, and learn to choose install-free local processing tools to reduce ineffective retries.
tool-tutorialsHow to Fix Favicon Generator Icons Not Displaying in the Browser
Troubleshoot favicon not displaying in three steps: path, declaration, and cache. Learn format and size selection, generator usage flow, and mobile creation methods, and handle large file errors.
tool-tutorialsWhat Is the Difference Between Deleting PDF Pages and Splitting a PDF, and Which Should You Choose?
This article helps you quickly decide whether to use page deletion or splitting, and provides step-by-step local browser page deletion operations, methods for handling large files on a phone, and troubleshooting ideas for files that won't open after deletion and page number misalignment in scanned documents.
tool-tutorialsWhat Is HTML Entity Encoding and Decoding? Principles and Usage of Special Character Escaping
Use a tool that runs locally in the browser to complete HTML entity encoding and decoding, distinguish its boundaries from URL encoding, troubleshoot garbled text step by step, and correctly choose the encoding direction in API debugging and mobile scenarios.