Chmod calculator

Convert checkbox permissions to octal and symbolic modes

No uploads — everything runs locally in your browser

Last updated: February 7, 2026
Frank Zhao - Creator
CreatorFrank Zhao

Tip: use a relative or absolute path (example: ./script.sh).

Owner (u)Group (g)Public (o)
Read (4)
Write (2)
Execute (1)
000
---------

Introduction / overview

The Chmod Calculator helps you turn a set of permissions (read/write/execute for owner, group, and public) into the two formats you see most often on Linux and Unix:

Octal mode

A 3-digit number like 755

Symbolic mode

A 9-character string like rwxr-xr-x

It’s useful for developers, sysadmins, students, and anyone who needs to set file permissions without memorizing the bit math.

If you’re working with encoded strings or tokens, you may also like our Basic auth generator for quick header creation.

How to use (quick start)

  1. Select the checkboxes for the permissions you want (owner, group, public).
  2. Read the big octal result (like 755) and symbolic result (like rwxr-xr-x).
  3. Optionally change the path field, then copy the generated command.
  4. Use the Share button to copy a link (you can include results if you want).

Worked example

Suppose you want:

  • Owner: read + write + execute
  • Group: read + execute
  • Public: read + execute
Owner\text{Owner}==4+2+14+2+1==77, Group,\ \text{Group}==4+14+1==55, Public,\ \text{Public}==4+14+1==55

Result: 755 and rwxr-xr-x.

Command you’ll run

With the octal value you can run:

chmod 755 path

Replace path with your actual file or folder.

Real-world examples / use cases

Make a script executable

Background: A cloned repo contains a script you need to run.

Inputs: Owner: rwx, Group: r-x, Public: r-x

Result: Octal: 755 (symbolic: rwxr-xr-x)

How to apply it: Run chmod 755 ./script.sh, then execute the script.

Lock down a private key file

Background: You created an SSH key and want it readable only by you.

Inputs: Owner: rw-, Group: ---, Public: ---

Result: Octal: 600 (symbolic: rw-------)

How to apply it: Run chmod 600 ~/.ssh/id_ed25519 to satisfy strict SSH checks.

Share read-only logs

Background: A service writes logs; teammates should read but not edit.

Inputs: Owner: rw-, Group: r--, Public: ---

Result: Octal: 640 (symbolic: rw-r-----)

How to apply it: Set group ownership, then apply chmod 640 to keep logs read-only.

Fix permission drift in a project folder

Background: Some files are executable when they shouldn’t be (or vice versa).

Inputs: Pick a target mode for files and folders.

Result: Common defaults: 644 for files, 755 for folders

How to apply it: Use the calculator to sanity-check modes before applying them in bulk.

Common scenarios / when to use

You need the chmod number quickly

You know the desired behavior (who can read/write/execute) but not the octal mode.

You want to avoid over-sharing

You’re making something private and want to double-check that group/public are off.

You’re setting folder defaults

You want common folder modes (like 755) for web roots or shared directories.

You’re debugging “Permission denied”

You’re comparing the symbolic mode you see in ls -l with the chmod you intend to apply.

You’re learning Linux permissions

You want an interactive way to connect checkboxes to rwx and octal math.

You need a quick sanity check

Before running a command in production, you want to confirm the mode is exactly right.

When this may not apply

This calculator covers the classic three-digit modes (like 755). It does not include special bits such as setuid, setgid, or sticky bit (the 4th digit) — if you need those, use the man page as the source of truth.

Tips & best practices

  • Use 755 for executable scripts and directories

    Owner can edit; others can read/enter/execute but not modify.

  • Use 644 for typical text files

    Owner can edit; group/public can read.

  • Use 600 for secrets

    Good for private keys or sensitive config files.

  • Double-check execute (x)

    Accidentally setting execute on a file can be confusing and sometimes risky.

Working with binary or octal representations elsewhere? Our Integer base converter can help you translate between bases.

Calculation method / formula

Each group (owner, group, public) is a 3-bit value built from the same weights:

d=4r+2w+1xd = 4r + 2w + 1x
dd==4r4r++2w2w++1x1x

Where rr is read, ww is write, and xx is execute. Each variable is either 1 (checked) or 0 (unchecked).

Example: rw-

dd==414\cdot 1++212\cdot 1++101\cdot 0==66

Example: r-x

dd==414\cdot 1++202\cdot 0++111\cdot 1==55

Related concepts / background

Owner vs group vs public

“Owner” applies to the file’s owning user. “Group” applies to the owning group. “Public” (sometimes called “others”) applies to everyone else.

Read, write, execute

On files, execute means “you can run it as a program/script”. On directories, execute effectively means “you can enter/traverse the directory”.

Frequently asked questions

What does 755 mean?

It means owner has rwx, and group/public have r-x. In weights: 7=4+2+17 = 4+2+1, 5=4+15 = 4+1.

Why does a directory need execute to be accessible?

For directories, execute is “traverse”. Without it, you can’t cd into the directory even if you can list its name.

Should I share a link with results?

Usually yes — results are not sensitive. But if you put a real path in the input, consider clearing it before sharing.

Does this include setuid/setgid/sticky bits?

No. This calculator focuses on the classic three digits. Special bits are often represented as a fourth digit.

Is symbolic mode always 9 characters?

For the basic rwx permissions, yes: three characters for each of owner, group, and public.

Limitations / disclaimers

This tool is for educational and convenience purposes. Always verify permissions before applying them to production systems, especially when dealing with secrets, server config, or shared environments.

If you’re unsure, consult your OS documentation or a systems administrator.

External references / sources

Chmod calculator | CalculatorVast