Chmod Calculator

About this calculator

Read a complete octal or symbolic mode, or choose its twelve flags, to see equivalent representations with file or directory context. This tool interprets bits; it does not inspect an object, determine actual access or change permissions.

Calculator inputs

Editable example: 755 regular-file mode. Convert to interpret its bits; this is not a recommendation.

Convert the example or use your own mode.

Permission controls are loading.

Complete-mode inputs and actions
Special mode flags

These flags are separate from execute/search. Their actual effects depend on object kind and platform.

Owner ordinary bits
Group ordinary bits
Other ordinary bits
Notation, limits and platform context

Text is at most 32 Unicode characters before trim. Octal accepts one to four ASCII digits 0 through 7. Symbolic accepts nine listing-mode characters with an optional regular-file - or directory d prefix. No five-digit mode, 0o prefix, sign, command, relative operation, ACL suffix or other file type is accepted. Checkboxes are the twelve mode flags; file-type bits are separate.

Lowercase s/t combines a special flag with execute/search. Uppercase S/T means that special flag is set while execute/search is absent. Context changes only how bits are explained, not whether a real object can be accessed. A supplied symbolic prefix governs context on successful Convert; explicitly changing context then replaces only a valid active prefix.

No path, host, account, ACL or operating-system state is read. Actual effects depend on ownership, privileges, parent access, ACLs, filesystem and platform. This is not a universal permissions recommendation.

Embed this calculator

Paste this code into a Custom HTML block on your site. The calculator fits the width of the block. Adjust the height in the code if you want more room for results.

Find this widget in the publisher directory

What do the four octal digits represent?

The last three digits describe owner, group and other mode bits. Within each digit, read has weight 4, write 2 and execute/search 1. A leading digit contains setuid (4), setgid (2) and sticky (1). For example, 0755 has no special flags, owner rwx and group/other r-x. These weights describe mode bits, not a recommendation to apply 755.

Binary groups are special, owner, group and other. For 0755 they are 000 111 101 101, with decimal mode value 493. Numeric file-type bits are separate and are not included in this twelve-bit value. The optional - or d prefix is a display/context marker, not an extra permission digit.

How do s, S, t and T work?

In an owner or group execute position, lowercase s means its set-ID flag and execute are both set. Uppercase S means the special flag is set but execute is absent. The other execute position uses t or T for sticky in the same way. Thus 4644 is rwSr--r--, while 4755 is rwsr-xr-x. Likewise 1666 is rw-rw-rwT and 1777 is rwxrwxrwt. Uppercase symbols never silently add execute/search.

For an original directory example, drwxr-s--- resolves to octal 2750 and decimal 1512: owner rwx, group r-x with setgid, and other no ordinary bits. Its four-digit result is 2750. This reader rejects five-digit 02750 instead of taking the last four digits. An all-off explicit checkbox submission is valid 0000 and ---------; an empty unsubmitted form has no result.

Why does file or directory context matter?

On a regular file, ordinary bits describe reading contents, modifying contents and executing as a program, subject to platform rules. On a directory, read concerns listing names, write concerns modifying entries and execute means search/traversal. Operations can require combinations such as directory write plus search. A file's write bit alone does not determine deletion of its directory entry, and write does not imply read.

Directory setgid commonly affects group inheritance; directory setuid effects vary. Sticky restrictions on entry removal/renaming have file-owner, directory-owner and privileged-process exceptions. A regular-file sticky flag is represented without promising a modern useful effect. Set-ID execution behavior is conditional on executable, filesystem, platform and privilege rules.

This is not an access-check simulator. Owner, group and other are not unioned into a real account's permissions here. Parent traversal, ACLs, mount flags and privileges can affect actual behavior. No path, username, host or local operating-system state is inspected.

What does the GNU template mean?

A separate explicit copy action offers a fixed text template such as chmod -- =0755 FILE. FILE is a placeholder; nothing is executed. The GNU =numeric extension requests explicit bits. Bare GNU numeric forms with four or fewer octal digits can preserve existing directory setuid/setgid bits. A correct 0755 representation therefore does not prove that a bare command would clear those existing flags.

The template is GNU-specific, not certified portable POSIX syntax. Ownership, privilege and filesystem rules can still alter whether a requested change succeeds. Default interpretation copy and print omit the command. There are no sudo, recursion, arbitrary path or shell-fragment controls.

Which inputs are supported?

Octal input is one to four ASCII digits from 0 to 7. Symbolic input is exactly nine listing-mode characters, optionally prefixed with - for regular file or d for directory. A valid supplied prefix sets context on successful Convert. A later explicit context change replaces only a valid active prefix, preserving all nine permission characters. Invalid and inactive text remain available for correction.

Text has a 32-character raw limit before outer whitespace is trimmed. This reader does not accept relative operations such as u+x, numeric operators, ACL suffixes, symlink markers, full listing columns or commands. It is deliberately narrower than a shell or a complete GNU argument parser.

Privacy and reproducible sharing

Interpretation is local, without saving or automatic URL updates. Copy/print include only the current interpretation and limitations. Public sharing requires unchecked consent after validation. The link contains model version, decimal mode integer and file/directory kind, with no paths, labels, accounts or hidden drafts. Reopening normalizes to the resolved checkbox state and recomputes all representations. Anyone with the link can read that mode and context.

Sources and method limits

The GNU coreutils manual documents octal weights and how GNU chmod handles directory set-ID bits. The POSIX.1-2017 chmod specification describes the portable utility. Linux chmod(2) and inode(7) describe the Linux system call and inode mode flags. The converter interprets the twelve mode bits using these references. Applying a mode on a real system can depend on ownership, privileges, filesystem and platform. Method reviewed November 8, 2026.

Frequently asked questions

Does 755 mean an object was changed?
No. This tool interprets a complete mode and does not inspect or change any object. Actual application can depend on platform, filesystem and privileges.
Why is uppercase S or T different?
Uppercase S/T marks a set special flag without its execute/search bit. Lowercase s/t includes both.
Can I enter u+x or a symlink listing?
No. This bounded reader accepts complete octal or regular-file/directory listing-style modes, not relative operations, other file types or full listing output.

Formulas and sample results on this page were checked against independent references. Page last reviewed or updated . How we verify calculators. Project led by Shaun Connell.