FREE · No Sign-up
Free Tool · Developer Tools

Chmod Calculator

Convert Linux file permissions between numeric (755) and symbolic (rwxr-xr-x) and get the chmod command.

Linux and macOS file permissions control who can read, write and execute a file. Tick the boxes or type a value like 755 or rwxr-xr-x to convert between numeric and symbolic notation and get the exact chmod command — including setuid, setgid and the sticky bit.

Read (4)Write (2)Execute (1)
Owner (user)
Group
Others
Special
Command

Common permissions
How It Works

Using Chmod Calculator

1

Set permissions

Tick read, write and execute for owner, group and others, or type a numeric or symbolic value.

2

Read the result

See the octal number, the rwx string and a plain-English explanation.

3

Copy the command

Use chmod with the number or the symbolic form; add -R for a whole folder.

Why Use This Tool

What you get with Chmod Calculator

Numeric ↔ symbolic in both directions

Special bits: setuid, setgid, sticky

Warns about world-writable permissions

Reference pages for every common mode

Works Great With

Nginx Reverse Proxy Config Generator

Setting up a server? Generate the nginx config for your app next.

Try Nginx Reverse Proxy Config Generator →

Permission values

NumberSymbolicMeaning
7rwxread, write, execute
6rw-read, write
5r-xread, execute
4r--read only
0---no access

Typical web server permissions

  • Folders: 755 — find /var/www/site -type d -exec chmod 755 {} \;
  • Files: 644 — find /var/www/site -type f -exec chmod 644 {} \;
  • Private keys and .env files: 600
  • SSH private key: 600; ~/.ssh folder: 700
FAQ

Chmod Calculator questions

Owner can read, write and execute (7 = 4+2+1); group and others can read and execute (5 = 4+1). It is the usual permission for scripts, programs and web folders.

Owner can read and write (6); group and others can only read (4). It is the usual permission for normal files such as HTML, images and config files that the web server only needs to read.

Rarely. 777 lets every user on the system modify and execute the file. On web servers it is a common security mistake — fix ownership with chown instead, and use 755 for folders and 644 for files.

Read = 4, write = 2, execute = 1. Add them for each of owner, group and others: rwx = 7, rw- = 6, r-x = 5, r-- = 4.

An optional fourth leading digit: 4 = setuid (run as the file’s owner), 2 = setgid (run as the group; in folders new files inherit the group), 1 = sticky (in a shared folder like /tmp, only a file’s owner can delete it). Example: 1777, 2755, 4755.

More from GrowLytics

Free tools for your site — and for you

More Free Tools

Other tools you can try free