Chmod (File Permission) Calculator
Convert Linux/Unix file permissions between octal (755), symbolic (rwxr-xr-x), and a clickable 3×3 grid. Full special-bit support (setuid/setgid/sticky with correct s/S/t/T case), symbolic-mode arithmetic (u+x,go-w), security linter (flags 777/world-writable/setuid on scripts), recursive safe-find pattern, umask companion, copy-ready chmod command, common presets, and shareable URL. 100% client-side.
About Chmod (File Permission) Calculator
Convert Linux/Unix file permissions between octal (755), symbolic (rwxr-xr-x), and a clickable 3×3 grid. Full special-bit support (setuid/setgid/sticky with correct s/S/t/T case), symbolic-mode arithmetic (u+x,go-w), security linter (flags 777/world-writable/setuid on scripts), recursive safe-find pattern, umask companion, copy-ready chmod command, common presets, and shareable URL. 100% client-side. Everything runs locally in your browser — your data never leaves your device.
How to use
- Enter your input in the tool above.
- Adjust any options to your preference.
- Use the Copy or Download buttons to save the result.
- Everything happens locally — your data never leaves your browser.
FAQ
How does the chmod calculator handle special bits (setuid/setgid/sticky)?
The calculator always works with the full 4-digit octal (special bits are the leading digit). Toggling setuid/setgid/sticky produces the correct symbolic display: lowercase 's'/'t' when the underlying execute bit is set, uppercase 'S'/'T' when the special bit is on but execute is off — matching the kernel's own rendering.
What's the difference between the three permission representations?
Octal (755) packs each of owner/group/other into one digit where read=4, write=2, execute=1, summed. Symbolic (rwxr-xr-x) shows the nine literal letters (or '-' for absent). The grid is the same nine bits as checkboxes. All three stay in sync as you click or type, and you can paste any of them to load the others.
Can it generate the chmod command, not just show the mode?
Yes. It emits the copy-ready numeric form 'chmod 755 file' and the symbolic form 'chmod u=rwx,go=rx file'. For recursive changes it offers the safer 'find . -type d -exec chmod 755 {} \;' / '-type f -exec chmod 644 {} \;' pattern that distinguishes files from directories.
Does it warn me about insecure modes?
Yes — the security linter flags: 777 (world-writable+executable), any world-writable mode on a non-shared file, group-writable on what looks like a web root, setuid/setgid on scripts (a privilege-escalation vector), sticky bit set on a non-directory, and octal digits that exceed 7.
What extra features does this tool have versus other chmod calculators?
(1) Full 4-digit octal with special bits (setuid 4000 / setgid 2000 / sticky 1000). (2) Three-way sync: grid ↔ octal ↔ symbolic, including paste-anywhere. (3) Symbolic-mode arithmetic engine (u+x, go-w, a=r, u+X conditional). (4) Correct s/S/t/T case in symbolic display. (5) Plain-English per-bit explainer that's file-vs-directory aware. (6) Security linter for 777 / world-writable / setuid-on-scripts. (7) Copy-ready chmod command in both numeric and symbolic forms. (8) Recursive safe-find pattern with file/dir distinction. (9) Umask companion panel. (10) Common-mode presets (644 docs, 755 scripts/dirs, 600 SSH keys, 700 ~/.ssh, 1777 /tmp). (11) localStorage history (max 20). (12) Shareable URL (#755). 100% offline; pure bitwise math.
Related tools
.bashrc / .zshrc Alias & Config Manager
Build shell aliases, functions, exports, and PATH edits in a visual editor, then export a clean, commented .aliases file sourced from both .bashrc and .zshrc — with shadowing detection against shell builtins and common CLI tools, function suggestions when args are needed, starter packs (git, docker, kubectl, navigation, safety, ls, dev, devops, data science), import of existing rc files, dedupe, history (localStorage), and shareable URL. 100% client-side.
Add / Subtract Date Calculator
Add or subtract years, months, weeks, days, hours, minutes and seconds from a starting date/time. Calendar-day or business-day mode with custom weekend + holiday list. Month-end policy toggle (clamp to last day vs overflow). Repeat/series mode (e.g. every 2 weeks x 10) with CSV export. Shareable URL. 100% client-side.
Age Calculator
Calculate exact age from a birth date in calendar years/months/days (no negative-day bugs) plus totals in months/weeks/days/hours/minutes/seconds. Next-birthday countdown with weekday. Feb-29 birthday policy toggle. Milestones (1,000 days, 10,000 days, 1 billion seconds). Zodiac sign + Chinese zodiac. Age gap comparison. Shareable URL. 100% client-side.