Skip to content
Accessibility
Theme
Text size
High contrast
Limit animations
Readable fontAtkinson Hyperlegible
Increased text spacing
Underline links
Always show focus

Runs in your browser — nothing you paste is uploaded.

chmod Calculator

Convert Unix permissions between the checkboxes, symbolic rwxr-xr-x and octal 755. Runs in your browser.

ReadWriteExecute

    

What it does

Converts Unix file permissions between three representations: the tick-box grid, the symbolic string (rwxr-xr-x) and the three-digit octal number (755). Change any one and the others follow, and the result pane shows the exact command — chmod 755 file — ready to copy.

How it works

Permissions are split into three classes: owner, group and others. Each class carries three bits — read (4), write (2) and execute (1). Add the bits that are set to get that class's octal digit, so rwx = 4+2+1 = 7 and r-x = 4+1 = 5. Line the three digits up in owner-group-others order and you have the octal mode.

Worked examples

  • 644 → rw-r--r--: owner can read and write, everyone else can only read. The usual mode for a plain file.
  • 755 → rwxr-xr-x: owner has full control, group and others can read and execute. The usual mode for a script, binary or directory.
  • 600 → rw-------: owner-only read/write, used for private keys and secrets.

Gotchas

  • On a directory, execute (x) means "may enter / traverse", not "run" — a directory with read but no execute lets you list names but not cd into it.
  • This calculator covers the three base classes. The leading fourth digit for setuid, setgid and the sticky bit (as in chmod 1777) is a separate concept not modelled here.
  • chmod never widens access past what the parent directory and ownership allow; permissions are only part of the picture.

When to use it

Whenever you need to translate a permission you have read somewhere into the number for a chmod command, or sanity-check what a mode like 775 actually grants. Handy alongside htpasswd and .htaccess work when hardening a web server's files.

Privacy

Everything is computed locally in your browser; nothing is uploaded.

Frequently asked questions

What is the difference between 644 and 755?

644 (rw-r--r--) gives the owner read and write and everyone else read only — right for data files. 755 (rwxr-xr-x) adds execute for all three classes — right for scripts, programs and directories that must be traversable.

Why is execute needed on a directory?

On a directory the execute bit controls whether you can enter it and access files by name. Without execute you may be able to list the directory (with read) but cannot cd into it or open anything inside.

Does it handle the setuid, setgid or sticky bits?

No. This tool covers the standard three digits for owner, group and others. The optional leading digit used for setuid/setgid/sticky (for example 1777 or 4755) is not included.

Related tools