Unix File Permissions Calculator

Convert between chmod numeric modes (e.g. 755) and symbolic strings (e.g. rwxr-xr-x). Toggle bits or type a value — results update instantly.

Build permissions (numeric → symbolic)

Toggle rwx per entity
Owner
7
Group
5
Others
5
Special bits (leading digit)
Symbolic
rwxr-xr-x
Full chmod
chmod 755

Parse symbolic (symbolic → numeric)

Numeric
755
chmod command
chmod 755

How it works

Unix permissions split into three entities: owner, group, and others. Each entity has three bits — read (r = 4), write (w = 2), execute (x = 1). The numeric digit for an entity is the sum of its bits (0–7). Concatenating the three digits gives the standard mode like 755. An optional leading digit encodes special bits (setuid = 4, setgid = 2, sticky = 1). The calculator sums the toggled bits per entity and renders both the nine-character symbolic string and the full chmod number.

Frequently asked questions

What does chmod 755 mean in Unix?

chmod 755 means the owner has read, write, and execute (rwx = 7), while group and others have read and execute (r-x = 5). It is the standard permission for executable scripts and directories that must be world-traversable.

How do I convert symbolic permissions to a number?

Assign r = 4, w = 2, x = 1, and “-” = 0. Sum the three letters for each group (owner, group, others). For example, rwxr-xr-x becomes 7, 5, 5 → 755.

What are setuid, setgid, and the sticky bit?

These are special mode bits encoded as a leading digit (0–7) before the three permission digits. setuid = 4, setgid = 2, sticky = 1. A common example is 4755, where setuid makes a binary run as its owner instead of the user who launched it.

Related tools

Free tools by TUNA — energy supply from vetted manufacturers