Octal Format Examples:
755 - rwxr-xr-x (Directory with execute for all)
644 - rw-r--r-- (Regular file, read-write for owner)
4755 - setuid+rwxr-xr-x (Setuid bit set)
Textual Format Examples:
drwxr-xr-x (Directory)
-rw-r--r-- (Regular file)
-rwsr-xr-x (Setuid executable)
Parses UNIX file permissions in octal (e.g., 755) or textual (e.g., drwxr-xr-x) format and explains which permissions are granted to which user groups. It also displays special bits like setuid, setgid, and sticky bit.
If you manage a Linux server, develop software, or host a website, you will inevitably encounter "Permission denied" errors. Unix and Linux operating systems use a strict permission model to secure files and directories. Every file has three classes of users: the Owner (User), the Group, and Others (Everyone else). For each class, you can assign three distinct permissions: Read (r), Write (w), and Execute (x).
Understanding how to read or assign these permissions—either through 3-digit octal numbers (like 755) or symbolic strings (like -rwxr-xr-x)—is a fundamental skill for any sysadmin or developer. Misconfiguring permissions (such as recklessly applying chmod 777) can leave your entire server vulnerable to devastating security breaches.
Our Unix File Permissions Parser and Calculator takes the guesswork out of the chmod command. It instantly translates confusing numeric values into visual, human-readable matrices, and vice versa.
We know developers hate waiting. This tool is built entirely on client-side JavaScript.
Zero Server Requests: The conversion between octal numbers, symbolic strings, and the visual permission matrix happens instantly in your browser.
Privacy by Default: We do not track or log what permission structures you are testing for your infrastructure.
Our bidirectional tool makes managing Linux file security effortless:
Parse from Numbers (Octal): Type a 3-digit or 4-digit number (e.g., 644 or 0755) into the numeric input box. The tool will instantly generate the symbolic string (-rw-r--r--) and check the corresponding visual boxes.
Parse from Symbols: Paste a directory listing string (like drwxr-xr-x) into the symbolic input field, and we will instantly decode it into its exact octal numeric value.
Visual Calculator: If you aren't sure what number to type, simply click the checkboxes in the visual matrix (Read/Write/Execute for User/Group/Other). The tool will automatically generate the correct chmod command value for you to copy and paste into your terminal.
Q: How is the octal permission number actually calculated?
A: Unix permissions use a simple mathematical system where each action has a specific value: Read = 4, Write = 2, and Execute = 1. To get the number for a user class, you add the values together.
For Read + Write (4 + 2) = 6
For Read + Write + Execute (4 + 2 + 1) = 7
For Read only (4) = 4
Therefore, 644 means the Owner can Read & Write (6), the Group can Read (4), and Others can Read (4).
Q: What does chmod 777 mean, and why is it dangerous?
A: 777 means Read (4) + Write (2) + Execute (1) for all three categories: User, Group, and Others. This grants absolute, unrestricted access to the file or directory to anyone on the system or the internet. It is a massive security risk and should never be used on a production web server.
Q: What are the standard permissions for web server files and directories?
A: As a best practice for web servers (like Nginx or Apache) and CMS platforms (like WordPress):
Directories/Folders: Should be set to 755 (drwxr-xr-x), allowing the owner to write, and everyone else to read and execute (enter the directory).
Files: Should be set to 644 (-rw-r--r--), allowing the owner to read and write, and everyone else to only read the file.
Q: Does this parser support special permissions like SUID, SGID, and Sticky Bit?
A: Yes. If you input a 4-digit octal number (e.g., 4755 or 1777), the first digit represents the special permission flags. A 4 enables SUID, a 2 enables SGID, and a 1 enables the Sticky Bit (commonly used on the /tmp directory to prevent users from deleting each other's files).