chmod

Convert a Unix mode between octal and symbolic form.

Added 2026-10-31

What it does

chmod converts one Unix file mode between octal and a symbolic string such as rwxr-xr-x. Paste either form. The page always shows both. Octal is four digits with a leading zero, so 755 is shown as 0755 and the special bits stay visible. 4755 is setuid and reads rwsr-xr-x. 6755 is setuid and setgid, so it reads rwsr-sr-x. A sticky bit with execute is t. Without execute it is T. The same rule uses S when setuid or setgid is set and execute is not. The page does not run a command and does not change a file. It reads one mode, not a script and not a path. The text stays in this tab.

How to use it

  1. Paste 755, 4755, or a symbolic mode such as rwxr-xr-x.
  2. Read both forms. Octal is always four digits.
  3. Nothing is executed, and no file is changed.

Common mistakes

  • 755 is shown as 0755. Four digits keep the special-bit place visible. 0755 and 755 are the same mode.
  • s and S are not the same. s means the special bit and execute are both set. S means the special bit is set and execute is not.

The conversion stays in this tab. No command is run.

Related tools