Skip to content

chmod Calculator

Tick who can read, write and run a file and get the chmod number, or type a number to see what it allows.

Pick the permissions

ReadWriteExecute
Owner
Group
Everyone else
Command -

    How the numbers work

    Each digit is one group of people: owner, group, everyone else. Add up what they may do:

    • 4 = read
    • 2 = write
    • 1 = execute (for folders: open)

    So 7 (4+2+1) is everything, 6 is read and write, 5 is read and execute, 4 is read only.

    The usual choices

    Number Shown as Use it for
    644 rw-r--r-- normal files, web pages
    755 rwxr-xr-x folders, scripts, programs
    600 rw------- private keys, .env files
    700 rwx------ private folders such as ~/.ssh
    775 rwxrwxr-x folders shared by a team

    Avoid 777: it lets anyone on the server change or replace the file. If something only works with 777, fix the owner instead with chown.

    To change a whole folder: chmod -R 755 folder. Better for websites: folders 755 and files 644, with find . -type d -exec chmod 755 {} + and find . -type f -exec chmod 644 {} +.

    Frequently asked questions

    What does chmod 755 mean?
    The owner can read, write and run it; the group and everyone else can read and run it, but not change it. It is the standard for folders and scripts.
    What does chmod 644 mean?
    The owner can read and change the file; everyone else can only read it. It is the standard for ordinary files.
    What permissions should an SSH private key have?
    600 (only you can read and write it). SSH refuses to use a key that others can read.

    Sources

    The rules and figures in this tool come from these official sources, last checked November 12, 2026.

    1. POSIX: chmod pubs.opengroup.org