Skip to content

CHMOD Calculator

Work out Unix file permissions with checkboxes or octal numbers. Converts between octal and symbolic notation, supports setuid, setgid and the sticky bit, explains file versus directory access and previews the chmod command.

Developer Runs client-side Free to use
Jump to the tool
Share: X WhatsApp
Loading CHMOD Calculator…

About the CHMOD Calculator

CHMOD Calculator converts Unix permissions between checkboxes, octal numbers such as 755 and symbolic notation such as rwxr-xr-x. Tick read, write and execute for the owner, group and others, or type an octal mode, and the other views update instantly. Setuid, setgid and the sticky bit are supported, giving four-digit modes such as 4755 or 1777, with the familiar s, S, t and T letters in the symbolic view.

Choose file or directory to see what each class of user can actually do — for a directory, read lists names, execute lets you enter it, and write (with execute) allows creating and deleting entries. The page previews both numeric and symbolic chmod commands, and warns about world-writable modes and setuid or setgid programs. It only describes a mode: it cannot read or change permissions on your system, and real access also depends on ownership, ACLs, mount options, umask and the operating system.

How to use

  1. Choose File or Directory.
  2. Tick the read, write and execute boxes, or type an octal mode.
  3. Add setuid, setgid or sticky if needed.
  4. Optionally type a file or directory name for the command.
  5. Copy the command or download the summary.

Key features

  • Two-way sync between checkboxes and octal input.
  • Octal 000–777 plus four-digit special-bit modes.
  • Symbolic notation with s/S and t/T.
  • Numeric and symbolic chmod command previews.
  • File and directory explanations.
  • Warnings for world-writable and setuid/setgid modes.
  • Copy Command and Download Summary.

Best practices

  • Give the least access that works — 644 for most files, 755 for programs and directories.
  • Avoid 777; it lets anyone modify the file.
  • Use setgid on shared directories so new files keep the group.
  • Use the sticky bit on shared, world-writable directories such as /tmp.
  • Check ownership with ls -l before changing modes.

Benefits

  • Makes octal permissions easy to read and write.
  • Explains the difference between files and directories.
  • Highlights risky modes before you apply them.
  • Works offline; nothing is stored.

Frequently asked questions

What does 755 mean?

Each digit is a sum of read (4), write (2) and execute (1) for owner, group and others. 755 is rwxr-xr-x: the owner can read, write and execute; group and others can read and execute.

What are setuid, setgid and the sticky bit?

They form an optional first octal digit: setuid (4) runs a program with the owner’s privileges, setgid (2) runs it with the group’s privileges or makes new files in a directory inherit its group, and the sticky bit (1) stops users deleting other users’ files in a shared directory.

What do capital S and T mean?

They show a special bit set without the matching execute bit — for example rwS means setuid is set but the owner cannot execute the file, so it has no effect.

Can this tool change permissions on my files?

No. It only calculates and explains modes. Run the chmod command yourself on the system, after checking it.

Why can’t I access a file even with the right mode?

Access also depends on who owns the file, your group membership, ACLs, the permissions of parent directories, mount options such as noexec, security modules and the operating system.

What input is accepted?

Three octal digits from 000 to 777, or four digits with special bits such as 2775. Digits 8 and 9, letters and other lengths are rejected.

Is anything I paste uploaded or saved?

No. Everything is processed in your browser on your device. Nothing is uploaded, no request is sent, and inputs and results are not saved in browser storage. Reset clears them from the page.