Chmod Calculator screenshot

Chmod Calculator

Convert between octal and rwx permission notation, including the setuid, setgid and sticky bits.

Privacy First
0 Runs
Updated 2026-11-07
Runs in your browser
No account
Nothing is sent

Permission notation, both ways

Type an octal mode such as 755 and read rwxr-xr-x, or type the nine symbolic characters and read the digits back. Read is 4, write is 2 and execute is 1, in owner, group and other order.

A fourth digit carries setuid (4), setgid (2) and the sticky bit (1), shown as s, s and t when execute is also set, and as S, S and T when it is not.

The page converts notation and nothing else. It never reads or writes a file, so it cannot apply a mode or tell you whether a mode is appropriate for a system.

This page converts file-permission notation in both directions. Type an octal mode such as 755 and read rwxr-xr-x, or type the nine symbolic characters and read the octal digits back. The two fields stay in step.

Three digits cover owner, group and other, each built from read (4), write (2) and execute (1). A fourth digit adds setuid (4), setgid (2) and the sticky bit (1), shown as s, s and t when execute is also set and as S, S and T when it is not.

The page explains notation; it does not change anything. It never reads a file, never applies a mode and has no access to a filesystem — the conversion is string and number work in the tab.

Reading one digit

Each octal digit is a sum of three bits. Read is 4, write is 2 and execute is 1, so 7 is all three, 6 is read and write, 5 is read and execute, and 4 is read alone. The three positions are owner, group and other, in that order.

Symbolic form repeats the same order: rwx for the owner, then r-x for the group, then r-x for other in 755. A dash means that bit is absent, not that permission is denied by a separate rule.

  • r = 4, w = 2, x = 1
  • 755 = rwxr-xr-x
  • 644 = rw-r--r--

The special bits and their spelling

A leading digit carries the special bits. 4755 is setuid plus 755, and its owner execute position becomes s because execute is set; 4644 would show S because it is not. The sticky bit works the same way on other's execute position with t and T.

The page validates the shape: three or four octal digits from 0 to 7, or exactly nine symbolic characters drawn from r, w, x, s, S, t, T and the dash. Anything else is reported rather than guessed at.

How to use the two notations

Type an Octal mode of 3 or 4 digits, each 0 to 7, or the nine Symbolic characters; the other field follows at once. The 644, 755, 775, 777, 4755 and 1777 preset buttons fill in common modes, including setuid and sticky variants, and the two panels show the spelling both ways.

Read 4, write 2, execute 1, in owner, group, other order; a fourth digit adds setuid, setgid and the sticky bit, shown as s or t with execute and S or T without. The page converts notation only and never touches a file.

What to Expect

Best for

  • Translating a chmod mode into symbolic form
  • Checking what 755 or 644 means before running a command
  • Understanding a mode that includes setuid or the sticky bit

Not ideal for

  • Applying permissions to a real file
  • Access-control lists, SELinux or other richer policy
  • Deciding whether a mode is safe for a particular system

What this tool keeps

  • The nine-character symbolic form and its octal digits
  • The special-bit spelling (s/S and t/T) exactly as ls writes it
  • Your last value until the page is reloaded

What may need cleanup

  • A digit outside 0–7 or a wrong-length symbolic string, which is refused
  • An upper-case S or T, which means the special bit is set without execute
  • A mode with no leading zero when you expected four digits

Common errors

  • Reading 7 as read-only rather than read, write and execute
  • Forgetting that the order is owner, group, other
  • Confusing setuid's s with execute's x

Example use cases

  • Checking a chmod command before running it
  • Translating an octal mode from documentation
  • Explaining a permission string to a colleague

Sample input

The octal mode 755.

Sample output

rwxr-xr-x, and typing that symbolic string returns 755.

Who this is for

  • Developers reading a deployment script
  • System administrators checking a mode
  • Students learning permission notation

Frequently asked questions

Does this page change a file's permissions?

No. It converts between octal and symbolic notation; it never reads or writes a file and cannot apply a mode to anything.

What does the fourth digit mean?

It carries setuid (4), setgid (2) and the sticky bit (1). A lower-case s or t means execute is also set; an upper-case S or T means it is not.

Is 777 the same as full access for everyone?

It grants read, write and execute to owner, group and other. Whether that is appropriate depends on the file and the system, which this page does not assess.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.