Skip to content

Chmod calculator

Tick permissions in the table or type a number like 755 or symbols like rwxr-xr-x; they convert instantly, with a ready chmod command and a warning when a value is risky.

Permission table
Read (r=4)Write (w=2)Execute (x=1)
Owner
Group
Others

Common values

Command
chmod 644 file

    This tool runs in your browser. We don't store what you type and we use no trackers.

    How to use it and read the results

    How to read the numbers

    Each digit is a sum of three values: read 4, write 2, execute 1. The first digit is for the owner (your account), the second for the group, the third for everyone else. So 755 means rwx for the owner (4+2+1) and r-x for group and others (4+1). On folders, "execute" means permission to enter the folder, which is why folders need it. Read more about file permissions.

    You may also see four digits, like 0755. The first is for special bits (setuid, setgid, sticky) and is zero on normal websites, so you can ignore it and work with the last three.

    Recommended values on shared hosting

    ItemPermissionWhy
    Folders755The web server can enter them; only you can change them.
    Regular files (PHP, HTML, CSS, images)644The server can read them; only you can change them.
    wp-config.php and .env600 or 640They hold database passwords, and PHP reads them as your account.
    A script you run yourself over SSH or cron700 or 755It needs the execute bit.

    How to change permissions

    In cPanel's File Manager, right-click the file, choose Change Permissions and tick the boxes. Over SSH on AI and Developer plans, use the command the tool writes, or fix a whole site with two commands:

    find ~/public_html -type d -exec chmod 755 {} \;
    find ~/public_html -type f -exec chmod 644 {} \;

    Common mistakes

    • Using 777: any process can change the file, and the server may refuse to run it, giving a 500 error.
    • 600 on images and CSS: the web server can't read them, so you get a 403 error.
    • Removing execute from a folder: everything inside becomes unreachable.
    • Opening up the uploads folder: wp-content/uploads stays at 755; PHP writes to it as your account and doesn't need the 777 that old tutorials suggest.
    • Permission denied: usually the file's owner, not the numbers. See fixing Permission denied when writing files.

    FAQ

    What's the difference between 755 and 644?

    755 gives the owner everything and everyone else read and execute; it's for folders. 644 gives the owner read and write and everyone else read only; it's the normal value for files.

    Should I use 777 to fix an upload or write error?

    No. When PHP runs as your account you never need 777, and the server may refuse to run a file anyone can change, giving a 500 error. Look for the real cause, such as the file's owner or a wrong path.

    What permission should wp-config.php have?

    600 or 640: PHP reads it as your account and nobody else needs to. Don't use 600 for images or CSS, because the web server has to read those.

    More tools

    Free tools