Convert between octal and symbolic Unix permissions, including setuid, setgid and sticky, with the chmod commands.
Chmod Calculator
Build a chmod command from a permission mode, with the recursive and directory-safe variants.
- Free
- No sign-up
- Runs in your browser
Input
Ready
Everything happens on this device. No upload, no account, no network request.
How to use this tool
- 1
Enter the mode you want in either notation.
- 2
Copy the command from the commands section - including the find-based variants that avoid breaking directories.
Questions about Chmod Calculator
What are the sensible defaults?
644 for a regular file (owner writes, everyone reads), 755 for a directory or an executable, 600 for anything private such as a key or a .env file, and 700 for a private directory. If you are reaching for 777, the problem is ownership rather than permissions.
Octal or symbolic in a script?
Octal, because it is absolute: `chmod 644` sets exactly those bits regardless of what was there. Symbolic form can be relative (`chmod +x` adds execute to whatever exists), which is convenient interactively and unpredictable in a script.
Is my data sent anywhere?
No. This tool runs as JavaScript inside your browser tab. There is no network request carrying your input, nothing is written to a server log, and it keeps working with your connection switched off. You can confirm it in the browser’s network panel. That matters more here than elsewhere on the site: developer tools handle tokens, keys and production data.
Does the Chmod Calculator work offline?
Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the Chmod Calculator keeps working with the network switched off and nothing is ever sent to a server.
Is anything I enter into the Chmod Calculator uploaded or stored?
No. The Chmod Calculator runs in your browser, so whatever you type or paste never leaves your device — there is no server round-trip, nothing is logged, and there is nothing to delete afterwards.
Related tools
Other tools you might reach for next.
Format and indent JSON, with optional alphabetical key sorting and a precise syntax error when it will not parse.
Strip every byte of insignificant whitespace from JSON and report the saving.
Check that JSON is syntactically valid, report its structure, and flag duplicate keys that JSON.parse accepts silently.
Compare two JSON documents structurally, by path, distinguishing a type change from a value change.
Evaluate a JSONPath expression against a document and see every match with the path that produced it.
Escape text so it can be embedded as a JSON string value, handling control characters and astral code points.
Decode an escaped JSON string back to its raw text, with or without the wrapping quotes.