Developer Tools
Chmod Calculator
Unix file permissions visually: rwx checkboxes ⇄ octal ⇄ symbolic notation.
Updated July 8, 2026
How to use the chmod calculator
- 1Check the permissions each audience needs — owner, group, others.
- 2Read the octal code and symbolic string, updating live.
- 3Or start from a preset (755, 644, 600) and adjust.
- 4Copy the chmod command and run it on your file.
Common uses
- Fixing upload or deploy permission errors on a web server
- Locking SSH keys and .env files to owner-only (600)
- Decoding a permission string from ls -l output
- Learning the octal system with instant visual feedback
Frequently asked questions
How does the octal math work?
Each permission has a value — read 4, write 2, execute 1 — and each digit is the sum for one audience: owner, group, others, in that order. rwxr-xr-x is (4+2+1)(4+1)(4+1) = 755. Once you see the digits as sums, every permission string reads instantly.
When do I use 755 vs 644?
644 (rw-r--r--) for regular files: you edit, everyone reads. 755 (rwxr-xr-x) for anything that must be entered or run — directories and scripts — because execute on a directory means permission to enter it. That pair covers the vast majority of a web server's filesystem.
Why is 777 a problem if it 'makes things work'?
It grants every user on the system write and execute — meaning any compromised account or process can modify your file and have those modifications run. When 777 'fixes' something, the real issue is almost always ownership (fix with chown) rather than permissions; 755 plus correct ownership solves it without the hole.
What about permissions with four digits like 4755?
The leading digit holds special bits: setuid (4), setgid (2), and sticky (1). They're power tools with security implications — setuid executables run as their owner regardless of who launches them — and worth understanding before using, which is why this calculator sticks to the everyday three digits.
About this tool
The chmod calculator translates between the three ways Unix permissions are written: check read/write/execute boxes for owner, group, and others and watch the octal (755) and symbolic (rwxr-xr-x) forms update live — or tap a preset to go the other way. Common presets cover the real-world set: 755 for scripts and directories, 644 for regular files, 600 for private keys, 700 for private scripts — and choosing 777 triggers a warning, because world-writable files are a security finding waiting to be written up. The copy button gives you the full chmod command, and the digit math (r=4, w=2, x=1) is shown inline until it sticks.
Like most tools on UtilityBase, the chmod calculator runs entirely in your browser — nothing you enter is uploaded or stored on a server. It's free to use with no account required. Browse more developer tools here.
Was this tool helpful?
Related tools
Subnet Calculator
IPv4 CIDR calculator — network, broadcast, host range, masks, all copyable.
Developer Tools
Cron Expression Explainer
Explain a cron expression in plain English, or build one from a schedule with no syntax to memorize.
Developer Tools
Hash Generator
Generate SHA-1, SHA-256, SHA-384, and SHA-512 hashes from any text, live.
Developer Tools
HTTP Status Code Reference
Every status code that matters, explained in one plain-English line — searchable.
Developer Tools
What Is My IP
Your public IP, and exactly what it reveals — location, ISP, timezone.
Developer Tools
Regex Tester
Test regular expressions live with match highlighting, groups, and a cheat sheet.
Developer Tools