Category: Developer tools

chmod Calculator

Community idea by Tomás #9K5BMissing a tool?

Convert rwx permissions, octal modes and chmod command lines in sync

Toggle owner, group and other read/write/execute plus setuid, setgid and sticky, or enter a 3/4-digit octal mode to generate rwx and chmod.

Octal755Symbolicrwxr-xr-x
Commandchmod 755 file

Everything on this page is processed in your browser. Nothing is uploaded.

What this tool does

This chmod calculator keeps Unix permission checkboxes, octal mode, symbolic rwx text and a chmod command line in sync. Toggle read, write and execute independently for owner, group and other, plus setuid, setgid and sticky special bits. Those special bits add a leading fourth octal digit. You can also type a 3- or 4-digit octal mode, and the page rebuilds every checkbox and special bit from it. The symbolic output is exactly nine characters, without a file-type prefix such as d, l or -. When setuid or setgid is enabled, the owner or group execute position becomes s or S depending on execute; sticky uses t or T in the other execute slot. The octal mode is padded to three digits without special bits and shown as four digits with them. Invalid octal input must be three or four digits from 0 to 7, otherwise it is rejected and the current selection stays unchanged. The tool does not calculate umask, accept symbolic input such as u+x, apply recursive options, handle ownership, ACLs, extended attributes, SELinux, AppArmor or Windows permissions, advise which mode is secure, read real files, change permissions, copy output or download files. Everything stays in the browser.

How to use it

  1. Toggle read, write and execute for owner, group and other, and optionally setuid, setgid or sticky.
  2. Or type a 3- or 4-digit octal mode to rebuild the checkboxes and special bits.
  3. Read the octal mode, nine-character rwx string and chmod command; invalid octal input is rejected.

Privacy

This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.

Frequently asked questions

What does chmod 644 mean?
644 means owner can read and write, while group and other can read only. It has no execute bits and no special bit.
How do I convert rwxr-xr-x to octal?
Read each group as a sum: rwx is 7, r-x is 5 and r-x is 5, so the octal mode is 755.
When should I use 755 instead of 644?
755 includes execute bits, while 644 does not. LocalTools calculates the mode but does not advise which permission is appropriate or secure for a file.
Does it handle setuid, setgid or sticky bit?
Yes. The special bits add a leading fourth octal digit and appear in the symbolic string as s, S, t or T depending on execute bits.
Does this tool change file permissions?
No. It never reads, selects or changes a real file. It only calculates the mode and displays the matching chmod command line.