# Chmod Calculator > Free chmod calculator at https://chmod-calculator.skillsafe.ai/ - type an octal mode (755, 0644, 4755), rwx letters, an ls -l line or listing, stat output or a chmod command (chmod u+x file), or tick read/write/execute, and get the octal, rwx, ls -l and chmod-letter forms, what the owner, group and everyone else can do, a risk check and the chmod/find/chown commands. Runs in the browser; nothing is uploaded. An optional AI step (sign-in, metered) recommends modes, owners and commands for a described situation or a Permission denied error. ## What it does - Reads 3- and 4-digit octal modes, nine rwx letters (with s/S/t/T), ls -l lines and whole ls -la listings, stat "Access: (0644/-rw-r--r--)" output, and chmod commands with numbers or letters (u+x, go-w, a=r, g=u, X). Letter changes apply to a starting mode (644 file, 755 folder) and the umask. - Explains each class for files (read, change, run) and folders (list, add/delete, enter), and setuid, setgid and sticky. - Checks: 777, everyone-write (unless a sticky folder), setuid/setgid on files, capital S/T, 000, write without read, folders readable but not enterable, private keys/.env/~/.ssh/authorized_keys others can reach, execute on data files. - Commands: chmod with the number and with letters; for a folder and everything inside, find -type d / -type f forms and chmod -R with capital X; chown; a check. Download as a bash script (set -euo pipefail) or a Markdown summary. umask calculator. ## Optional AI step (API) Endpoint base: https://api.skillsafe.ai/v1/app-api (app slug chmod-calculator). Docs: https://chmod-calculator.skillsafe.ai/api.html Input fields (all strings): task ("advise"), situation (the visitor's words and pasted output, up to 6,000 characters), facts (JSON: current mode, ls -l lines found, error lines). Output: one JSON object {task, summary, diagnosis, changes:[{path, kind, mode, owner, group, why}], commands:[{cmd, why}], warnings, questions}. The page recomputes every mode, keeps only paths the visitor named and single permission commands, and refuses anything that lets everyone write. ## Sources Adapted from the agent skill @sickn33/bash-linux (Bash and Linux terminal patterns) from github.com/sickn33/antigravity-awesome-skills (MIT).