Developer Utilities

Chmod Calculator

All tools

Translate between chmod numbers like 644 and the rwxr--r-- string you see in ls -l.

How it works

Four simple steps

1

Tick the permissions

Read, write and execute for owner, group and public.

2

Read the octal mode

The three-digit value updates with every checkbox.

3

Or type a number

Enter 644 or 755 and the checkboxes follow.

4

Use it in your shell

Type chmod with the mode and file name yourself.

Chmod Calculator

About Chmod Calculator

A deploy script fails with 'permission denied' and ls -l shows -rw-r--r-- on it. You know it needs execute permission, but which number gives the owner rwx and everyone else read and execute? Tick the boxes here and read off the octal value.

Nine checkboxes cover read, write and execute for the owner, the group and everyone else (labelled Public). Every change updates the three-digit octal mode and the nine-character symbolic string, such as 755 and rwxr-xr-x. It works the other way too: type an octal value into the input and the checkboxes follow. Each digit is the sum of read (4), write (2) and execute (1), so 6 means read and write, and 5 means read and execute.

Only the last three digits are used. If you type a four-digit mode such as 2755 or 1777, the leading digit for setuid, setgid or the sticky bit is ignored, and the symbolic string never shows s or t. The tool shows the numbers rather than a ready-made command, so type chmod 755 yourself. As a rule of thumb, 644 suits regular files, 755 suits scripts and directories, and 600 suits private keys. For container builds, where chmod lines often live, the Dockerfile linter reviews the build steps, and the .gitignore generator helps keep key files out of the repository.

The calculation is a few bit operations in the page; nothing is read from or written to your file system.

Keyboard shortcut

Ctrl Enter - Run tool
FAQ

Frequently asked questions

See all FAQs

Answers for this tool. For site-wide help, open the FAQ hub.

The middle digit is the group. 755 gives the group read and execute, while 775 also lets group members modify the file. Use 775 for shared project directories where several users need to write.

It gives every user on the system write access, so it hides the real problem, which is usually the wrong owner or group. Fix ownership with chown and grant only the bits that are needed.

Not in this calculator. Only the last three octal digits are read, so special bits from a four-digit mode are dropped. When writing such modes by hand, 4 is setuid, 2 is setgid and 1 is the sticky bit.

View more FAQs

Related tools

View all

Cron Calendar

Explain cron expressions and preview the next run times in any timezone.

Open

CSV to SQL

Infer column types and generate CREATE TABLE + INSERT statements from CSV.

Open

SQL Query Builder

Build SELECT queries visually and reverse-parse SQL into a structure tree.

Open

Log Pattern Miner

Cluster log lines into templates, surface anomalies, and mask PII locally.

Open

Explore 321 free tools

Everything you need as a developer, marketer or creator - in one beautiful place.

Browse all tools