XTools Logo
XTools
Blog
/
JSON Formatter & YAMLXML FormatterCode Formatter & MinifierJSON to TypeScriptMarkdown ⇄ HTMLMermaid Diagram EditorRegex TesterJWT DecoderUUID GeneratorEncode & DecodeCron Expression BuildercURL Command BuilderMeta Tag GeneratorPX to REM & Line HeightCSS GeneratorChmod Calculator

© 2026 XTools. All rights reserved.

Privacy PolicyContact Us

    Chmod Calculator

    Convert Unix permissions between checkboxes, octal, and rwx notation
    • Files never leave your device
    • Runs in your browser
    • Free, no sign-up, no watermark

    Permissions

    Read (4)Write (2)Execute (1)Σ
    OwnerThe user who owns the file7
    GroupMembers of the file’s group5
    OthersEveryone else5

    Special bits

    3 or 4 digits, e.g. 755 or 4755

    9 characters, e.g. rwxr-xr-x

    Command

    $ chmod 755 script.sh
    $ chmod u=rwx,g=rx,o=rx script.sh

    As shown by ls -l: -rwxr-xr-x · drwxr-xr-x

    What this mode allows

    • 0400Owner can read the file, or list a folder.
    • 0200Owner can change the file, or add and delete entries in a folder.
    • 0100Owner can run the file, or enter a folder.
    • 0040Group members can read the file, or list a folder.
    • 0010Group members can run the file, or enter a folder.
    • 0004Everyone else can read the file, or list a folder.
    • 0001Everyone else can run the file, or enter a folder.

    Common modes

    umask calculator

    Bits removed from new files and folders. Common values: 022, 002, 077.

    Related tools

    • JSON Formatter & YAML
    • XML Formatter
    • Code Formatter & Minifier
    • JSON to TypeScript
    • Markdown ⇄ HTML
    • Mermaid Diagram Editor
    • Regex Tester
    • JWT Decoder
    • UUID Generator
    • Encode & Decode
    • Cron Expression Builder
    • cURL Command Builder
    • Meta Tag Generator
    • PX to REM & Line Height
    • CSS Generator

    How to use Chmod Calculator

    Work out Unix file permissions by ticking boxes or typing octal (755) or symbolic (rwxr-xr-x) notation; every view stays in sync. The tool writes the chmod command, explains what each bit allows, warns about risky modes, and includes a umask calculator.

    1. 1

      Tick Read, Write, and Execute for Owner, Group, and Others, or pick from Common modes.

    2. 2

      Or type a value into Numeric (octal) or Symbolic; the checkboxes update.

    3. 3

      Add Special bits such as setuid, setgid, or Sticky if needed.

    4. 4

      Enter a File or folder name, choose Apply to subfolders (-R) if wanted, and copy the command.

    Frequently asked questions

    What does chmod 755 mean?

    The owner can read, write, and execute; group and others can read and execute. It is the usual mode for scripts, programs, and folders.

    Which permissions should an SSH private key have?

    600: only the owner can read and write it. SSH refuses keys that other users can read.

    Why is 777 flagged as a warning?

    With 777 anyone on the system can modify the file. On servers this is a common security hole.

    What do a capital S or T mean in ls -l output?

    setuid or setgid is set without execute (S), or sticky is set without execute for others (T). An S has no effect on a regular file.

    How does umask affect new files?

    umask removes bits from the default permissions. Enter a value such as 022 in the umask calculator to see the resulting modes for new files and folders.