Chmod Calculator
Convert between octal and symbolic Unix file permission notation
/v1/chmod-calc
curl "https://devtools.toolkitapi.io/v1/chmod-calc?mode=755"
import httpx
resp = httpx.get(
"https://devtools.toolkitapi.io/v1/chmod-calc?mode=755",
)
print(resp.json())
const resp = await fetch("https://devtools.toolkitapi.io/v1/chmod-calc?mode=755", {
});
const data = await resp.json();
console.log(data);
# See curl example
{
"octal": "755",
"symbolic": "rwxr-xr-x",
"numeric": 493,
"owner": {"read": true, "write": true, "execute": true},
"group": {"read": true, "write": false, "execute": true},
"others": {"read": true, "write": false, "execute": true}
}
Try It Live
Description
How to Use
1. Pass a permission mode in the `mode` query parameter. - Octal: `755`, `644`, `0777` - Symbolic: `rwxr-xr-x` (9 chars) or `-rwxr-xr-x` (10 chars with file type prefix)
2. Inspect the response for both octal and symbolic representations plus the per-class breakdown.
About This Tool
Chmod Calculator converts between octal (e.g. `755`) and symbolic (e.g. `rwxr-xr-x`) Unix file permission notation. It breaks down each permission class — owner, group, and others — into individual read, write, and execute flags.
Pass either format and get back both representations plus the decimal numeric value and per-class permission details.
Why Use This Tool
- Server hardening — Verify file permissions match security requirements
- Deployment scripts — Convert between formats when writing chmod commands
- Documentation — Generate human-readable permission breakdowns for runbooks
- Code review — Quickly decode octal permissions in Dockerfiles or config management scripts
Frequently Asked Questions
Does it support setuid/setgid/sticky bit?
Can I pass a 10-character symbolic string?
What's the `numeric` field?
Start using Chmod Calculator now
Get your free API key and make your first request in under a minute.