This free chmod calculator requires no sign-up and converts one complete Unix permission snapshot between strict octal and nine-character rwx notation entirely in your browser.
Open the Chmod Calculator, choose the direction that matches the value you already have, and convert it before copying a command template. The calculation, validation, permission table, and clipboard action run in the current browser tab. No file path, permission value, or command is uploaded to Lizely, and the calculator never changes a file itself.

Choose the input form that matches your source
The calculator accepts complete snapshots, not individual letters, fragments of a listing, or commands intended to modify an existing mode. Select the input format based on the exact value in your notes or listing.
| Conversion direction | Required input | Coverage |
|---|---|---|
| Octal to symbolic | Exactly three ASCII digits from 0 through 7 | Owner, group, and others ordinary permissions with no special bits |
| Octal to symbolic | Exactly four ASCII digits from 0 through 7 | A leading special-bit digit followed by owner, group, and others |
| Symbolic to octal | Exactly nine position-valid characters | Three positions each for owner, group, and others, including supported special-bit characters |
Octal input is intentionally strict. It cannot contain an 0o prefix, sign, space, separator, decimal point, underscore, or Unicode lookalike digit. A three-digit value explicitly means that setuid, setgid, and sticky are absent. In a four-digit value, the first digit combines special-bit contributions: setuid contributes 4, setgid contributes 2, and sticky contributes 1. A redundant leading zero is accepted when no special bit is set, but the canonical output removes that zero.
Symbolic input must also be complete. It contains nine characters, with read, write, and execute positions for each of owner, group, and others. Do not include the leading file-type dash shown in a full listing, and do not enter a modification expression such as u+x. Those forms contain different information and are rejected rather than guessed. The case-sensitive s, S, t, and T characters are accepted only in the execute position for their corresponding special bit.
The raw field also has a 32-UTF-16-code-unit budget. At exactly 32 units, the full value remains visible and receives the normal syntax error; the next unit receives an explicit budget error. Content is never silently truncated.
Convert a complete mode in the browser
- Select a conversion direction. Choose octal-to-symbolic when you have a numeric mode, or symbolic-to-octal when you have a complete nine-character permission snapshot.
- Enter the source value in its required form. For octal, provide exactly three or four ASCII octal digits. For symbolic input, provide all nine positions without a file-type prefix or modification operator.
- Run the conversion. Review the canonical octal value, the complete nine-character symbolic value, and the owner/group/others table. Confirm that read, write, and execute or directory-search permissions appear in the intended positions.
- Check the operational details. Before using the result, verify the target file, its ownership, whether special bits are actually required, and whether the mode grants the least privilege needed by the intended user or service.
- Copy the command template only after that review. The copied text has the form chmod OCTAL FILE. Replace FILE with a real target only after independently confirming that path.
Changing the conversion direction loads an appropriate example and clears the previous result, error, and copy status. Editing the input does the same, so a failed validation cannot leave an earlier conversion visible. A late clipboard response also cannot publish stale success feedback after the input or mode changes.
Decode owner, group, others, and special bits
The three ordinary octal positions always follow the same order: owner, group, and others. Within each position, read contributes 4, write contributes 2, and execute or directory search contributes 1. These are permission masks, not decimal place values. That is why 7 combines all three ordinary permissions, 6 combines read and write, and 5 combines read with execute or search.
| Special bit | Contribution to the leading octal digit | Symbolic position | Case rule |
|---|---|---|---|
| Setuid | 4 | Owner execute | Lowercase s when execute is also set; uppercase S when it is absent |
| Setgid | 2 | Group execute | Lowercase s when execute is also set; uppercase S when it is absent |
| Sticky | 1 | Others execute | Lowercase t when execute is also set; uppercase T when it is absent |
Worked example: take the four-digit mode 4755. Its leading digit selects setuid with no setgid or sticky contribution, while the remaining digits decode as owner 7 = 4 + 2 + 1, group 5 = 4 + 1, and others 5 = 4 + 1. The owner execute permission is present alongside setuid, so that position becomes lowercase s. The complete symbolic snapshot is therefore rwsr-xr-x, and the canonical octal value remains 4755.
The capitalization is part of the mode state, not decorative styling. Lowercase s or t means the relevant special bit and execute bit are both set. Uppercase S or T means the special bit remains set while the corresponding execute bit is absent. Preserving that distinction is necessary for an accurate round trip between the two notations.
Check what the mode can actually enable
A converted mode describes requested permission bits; it does not prove that a particular user can access the target. Effective access can still be affected by several layers outside the calculator.
- The file or directory owner and the process’s group membership
- Access control lists and Linux capabilities
- Mount options and read-only filesystem state
- Application sandboxing and other operating-system policy
- Permissions required to traverse each parent directory
- The identity under which a service or scheduled task runs
- Filesystem rules that clear, ignore, or otherwise limit requested bits
Special bits also deserve operational care. Setuid and setgid on executable files can alter effective identities, and systems may clear or ignore them under particular ownership or security conditions. Setgid on a directory commonly influences the group assigned to new children. Sticky on a directory commonly restricts deletion or renaming by users who do not own the entry or directory. These meanings are operational rules, not merely labels in a symbolic string.
Umask affects permissions requested when files are created, but it is not an extra digit silently added by this converter. The tool also does not calculate the final permissions that a particular umask would produce. For command-level syntax and special-bit behavior, consult the GNU chmod manual page before applying a mode.
Review least privilege before copying a command
Use the converted value as a review aid, not as proof that broad access is necessary. If access is failing, investigate ownership, groups, directory traversal, ACLs, mount state, and the service identity before widening permissions. A broad mode such as 777 can remove useful protection and still fail to resolve every policy or traversal issue.
The copy action writes a simple command template rather than applying a change. Its FILE portion is a placeholder; the calculator never asks for, resolves, or operates on a real path. If clipboard permission is denied, the visible octal and symbolic results remain available for manual copying.
Copying the template also does not make its permissions safe by default. Choose a mode that provides only the access required for the actual user or service, then verify it against the target’s current ownership and operating environment.
Know what the calculator does not do
The conversion is precise, but its scope is deliberately narrow. It does not:
- Run chmod or modify a local or remote file
- Recursively change directories
- Follow symbolic links
- Create or modify access control lists
- Calculate a umask-adjusted result
- Inspect the target’s current permissions
- Determine whether a mode is secure for a particular program
Use the output to confirm notation, inspect the permission table, and prepare a command for review. Actual access and the final effect on a filesystem still require separate verification.