Skip to main content

Chmod Calculator (Unix Permissions)

Convert Unix file permissions between octal, symbolic and checkbox forms, see the chmod command, and apply a umask.

For developers and admins setting file modes.

Last updatedHow we build & check our tools
Results will appear here once you enter your values.

The three triplets

A Unix file mode has nine permission bits in three groups: owner, group, other. In each group, read is 4, write is 2 and execute is 1. Add the ones you want. Read and write is 6, read and execute is 5, everything is 7, nothing is 0.

  • 644 (rw-r--r--): owner edits, everyone reads. Typical for text files.
  • 755 (rwxr-xr-x): owner edits, everyone reads and runs. Typical for directories and programs.
  • 600 (rw-------): private to the owner. SSH private keys are commonly kept at this mode.
  • 1777 (rwxrwxrwt): world-writable with the sticky bit, the usual mode for /tmp, where only a file's owner can delete it.

The tool prints the command as chmod followed by the octal value and the word path; replace path with your file. Directories need the execute bit to be entered, which is why they usually get 755 rather than 644.

Limits

This calculator handles the nine permission bits and the three special bits only.

It does not parse symbolic chmod expressions such as u+x or g-w, does not model ACLs or file attributes, and does not read or change any file.

Behavior of setuid and setgid on directories or scripts varies by operating system and mount options.

Check your system's manual before relying on special bits.

Sources

File mode bits and the chmod utility follow POSIX.1 (IEEE Std 1003.1), the chmod(1p) page of the POSIX Programmer's Manual. The creation mask rule follows the umask definition in the same standard.

Related tools: the Gitignore Generator and the Docker Command Builder.

Frequently Asked Questions

Common questions about the Chmod Calculator (Unix Permissions)

755 is three octal digits for owner, group and other. Each digit adds read 4, write 2 and execute 1, so 7 is rwx and 5 is r-x. The symbolic form is rwxr-xr-x: the owner can read, write and execute, while group and others can read and execute. It is a common mode for directories and executable scripts.

From the same team

Turn your GPU into an OpenAI-compatible API endpoint

Wide Area AI routes your LLM API calls to your own hardware over a Cloudflare Tunnel — free local inference with edge caching and automatic cloud failover. Works with any OpenAI SDK.

Start routing — free

Sources & References

Web platform and protocol references

Authoritative definitions for web technologies, encodings, and data formats used by these developer tools.

Internet standards (RFCs)

Formal specifications for internet formats and protocols.