PasteZap
🌐 English
Free · No account

FREE · DEVELOPER TOOLS

Chmod Calculator.

Convert Unix file permissions between octal (755) and symbolic (rwxr-xr-x) notation, with setuid, setgid and sticky bits, a who-can-do-what table and ready chmod commands.

Limits & supported formats

Standard Unix permission bits only; ACLs and SELinux labels are not covered. Everything is calculated in your browser; nothing you type is uploaded.

Loading the calculator…

Steps to use Chmod Calculator

Type a mode in octal or as nine letters (an ls -l line works too) and add a file name for the commands. Use the presets for common cases.

How Chmod Calculator processes your input

Each class (owner, group, others) adds read = 4, write = 2 and execute = 1. A fourth leading digit sets setuid (4), setgid (2) and the sticky bit (1), shown as s, s and t in the symbolic form.

Chmod Calculator: worked example

755 is rwxr-xr-x: the owner can read, write and run the file; group and others can read and run it. 1777 adds the sticky bit (rwxrwxrwt).

Convert chmod permissions

  1. Type a mode in octal, such as 755, or as nine letters, such as rwxr-xr-x. A full ls -l line works too.
  2. Add a file name to get ready-to-run chmod commands, or start from a preset for common cases.
  3. Read the table that shows who can read, write and run the file.

Example: 755 is rwxr-xr-x: the owner can read, write and run the file; the group and others can read and run it. 1777 adds the sticky bit and becomes rwxrwxrwt, the usual mode of /tmp.

How the numbers work

  • Each class (owner, group, others) adds read = 4, write = 2 and execute = 1. So 7 is rwx, 6 is rw- and 5 is r-x.
  • A fourth leading digit sets the special bits: setuid (4), setgid (2) and sticky (1), shown as s, s and t in the symbolic form.
  • Common modes: 644 for normal files, 755 for scripts and folders, 600 for private keys.
  • Only standard Unix permission bits are covered; ACLs and SELinux labels are not. Everything runs in your browser. To check an SSH key, see the SSH public key fingerprint tool; for numbers in other bases, the number base converter.

Questions about Chmod Calculator

What does chmod 755 mean?

The owner can read, write and execute; group and others can read and execute. It is typical for scripts and folders.

Should I use chmod 777?

Rarely. It lets every user modify the file. Prefer 755 or 775 with the right group.

What is the sticky bit?

On a folder, it lets only the owner of a file delete or rename it, even if others can write in the folder, as in /tmp.

Is Chmod Calculator free, and do I need an account?

Yes. This tool is free to use in your browser without an account. Processing takes place on your device.

What are the limits and what should I check?

Standard Unix permission bits only; ACLs and SELinux labels are not covered. Everything is calculated in your browser; nothing you type is uploaded. Review the result before using it in your work.

Is my input sent to a server?

Your input is processed in your browser and is not uploaded by this tool. Files and pasted text are cleared when the page is refreshed. Normal website requests are still required to load the page and its libraries. Read the privacy explanation.