chmod Calculator

Tick the permissions and get the chmod number, or type a number and see what it means.

How it works

Tick read, write and execute for the owner, the group and others, and get the number and the command. Or type a number such as 644 to see what it means.

The formula

read = 4, write = 2, execute = 1. Add them for each of the three groups.

Worked example

rwx r-x r-x is 7, 5, 5, so chmod 755 filename.

Good to know

Common questions

What does 644 mean?
Owner can read and write, everyone else can only read.
What is chmod +x?
It adds execute permission for everyone without changing the other bits.
Does it work on Windows?
Not directly. It is for Linux, macOS and similar systems.

More in CS Labs & Coding.