Developer tools

Chmod Calculator

Chmod Calculator

Linux file permissions: checkboxes, octal, symbolic and umask.

About this tool

About Chmod Calculator

Work out Linux and macOS file permissions without counting bits in your head. Tick read, write and execute for the owner, group and others and the calculator shows the octal mode (755), the symbolic form (rwxr-xr-x) and a plain-English explanation of who can do what. It works in both directions: type an octal mode or a symbolic string from ls -l and the checkboxes follow. Setuid, setgid and the sticky bit are supported, with the s, S, t and T letters shown exactly as ls prints them. To change a mode the way the chmod command does, type an expression such as u+x,go-w or a=r and apply it to the current permissions; capital X follows the directory setting. Presets cover the common cases (644, 755, 600, 700, 400, 1777) and 777 is flagged as world-writable. The umask section shows the default permissions new files and directories will get. Copy a ready chmod command in octal or symbolic form, with notes on safe recursive changes. Optionally, describe who needs access and AI suggests the mode with your own key.

Built and maintained by Abhi JainUpdated

How to Calculate chmod Permissions

  1. 1

    Set permissions

    Tick Read, Write and Execute for Owner, Group and Others, pick a preset, or type an Octal or Symbolic value.

  2. 2

    Apply a change

    Optionally type an expression like u+x,go-w in Apply symbolic change and press Apply.

  3. 3

    Choose the target

    Under Command pick File or Directory, tick Recursive if needed and enter the path.

  4. 4

    Copy the command

    Copy the chmod command in octal or symbolic form and run it in your terminal.

Chmod Calculator: questions and answers

What does chmod 755 mean?

7 for the owner (read 4 + write 2 + execute 1), 5 for the group (read 4 + execute 1) and 5 for others. In symbolic form that is rwxr-xr-x: the owner can change the file, everyone else can read and run it. It is the usual mode for scripts and directories.

What is the difference between 644 and 755?

644 (rw-r--r--) has no execute bits, which suits ordinary files such as HTML, images and config. 755 adds execute for everyone, which programs and scripts need to run and directories need so people can open them.

How are octal permissions calculated?

Each digit is the sum of read = 4, write = 2 and execute = 1 for one class: owner, group, others. An optional leading digit adds setuid = 4, setgid = 2 and sticky = 1, so 2775 is setgid plus 775.

Is chmod 777 safe?

Rarely. 777 lets every user on the system modify or replace the file, and on a web server that often leads to compromise. Give write access only to the owner or a specific group instead, for example 775 with the right group.

What does umask 022 do?

The umask removes permission bits from new files and directories. Files start from 666 and directories from 777, so umask 022 gives 644 for files and 755 for directories. Umask 077 gives 600 and 700, keeping new files private.

Can AI help me choose permissions?

Yes, optionally. Click AI on the Permissions panel and describe who needs to read, write or run the file or directory; the suggested mode is checked by the calculator, world-writable modes are flagged, and you apply it with one click. Only your description, and whether it is for a file or a directory, is sent. It uses the AI provider and key you connect in AI settings (Claude, OpenAI, Gemini, DeepSeek, OpenRouter or a compatible endpoint), and the request goes straight from your browser to that provider; KissThePDF has no server in between.