Linux Tools

File Permission Converter

Convert between octal, symbolic, and binary file permission notations.

Quick Presets

Bidirectional Converter

3 or 4 digit octal value (0000 - 7777).

9-character notation (r, w, x, s, t, or -).

9-bit or 12-bit binary notation (grouped by 3 bits).

Interactive Permissions Grid

Special Flags
Owner (u)
Group (g)
Others (o)
Equivalent chmod command
$ chmod 0755 file.txt
Symbolic chmod command
$ chmod u=rwx,g=rx,o=rx file.txt

Permission Breakdown

What is the File Permission Converter?

The File Permission Converter allows you to instantly translate Linux file permissions between Octal numbers (like 755), Symbolic strings (like rwxr-xr-x), and Binary representations (like 111101101).

How to Use

  1. Type an octal number (e.g., 644) into the Octal input box.
  2. Instantly see the equivalent Symbolic string and Binary values update.
  3. Alternatively, type a symbolic string (e.g., rwxrw-r--) to see what its octal number is.
  4. Review the plain-English breakdown that explains exactly what access each user class has.

Common Use Cases

  • Translating complex symbolic strings found in `ls -l` outputs into easy-to-read octal numbers.
  • Learning how Linux permissions map to binary bits for computer science classes.
  • Verifying that you are applying the correct permissions before running a `chmod` command.

Key Benefits

  • Supports bidirectional conversion (Octal to Symbolic, or Symbolic to Octal).
  • Works instantly in your browser without requiring a Linux terminal.
  • Helps prevent security mistakes by explaining permissions in plain English.

Frequently Asked Questions

What is the difference between 644 and 755?

644 (rw-r--r--) gives owner read/write and others read-only, ideal for files. 755 (rwxr-xr-x) adds execute permission for all, used for directories and executables.

How does octal notation map to permissions?

In octal, Read is 4, Write is 2, and Execute is 1. You add these numbers together for each user class. For example, Read (4) + Write (2) = 6.

What are the three user classes in Linux?

Permissions apply to three groups: the Owner (the user who created the file), the Group (other users in the file's assigned group), and Public (everyone else on the system).

What does rwxr-xr-x mean?

This is symbolic notation. It breaks down into three chunks of three letters. rwx means the Owner can read, write, and execute. r-x means the Group and Public can only read and execute.

How do I convert binary to file permissions?

Each permission (r, w, x) can be thought of as a bit (1 for yes, 0 for no). Thus, r-x is 101 in binary, which equals 5 in octal.

What does permission 400 do?

Permission 400 (r--------) grants read-only access to the file owner, and absolutely zero access to anyone else. It is commonly used to secure private SSH keys (like .pem files).

Why is permission 777 dangerous?

777 grants every single user on the server the ability to read, write, modify, or execute your file. It is a massive security risk and should almost never be used.

What happens if a directory does not have execute permission?

If a directory lacks the execute (x) permission, users cannot use the cd command to enter it, nor can they access any files inside it, even if they know the exact file names.

How do I apply permissions to all files inside a folder?

You can use the -R (recursive) flag with the chmod command, like chmod -R 755 /path/to/directory. Be careful, as this applies the exact same permission to both files and subdirectories.

What is the standard permission for web server files?

If you are configuring Apache or Nginx, you should generally set directories to 755 and standard files (like .html or .php) to 644.

Discover More Tools

Explore our full collection of free, privacy-first developer and SEO tools.

Browse All 134+ Tools