# Chmod calculator

> Turn a permission grid into octal and symbolic chmod, and back.

Free chmod calculator. Check read, write, and execute for owner, group, and others, including setuid, setgid, and the sticky bit. See the octal mode, the symbolic mode, and the chmod command.

- Page: https://benchline.fabwaseem.com/t/chmod-calculator
- Runs: in the browser. Input stays on the device.
- Price: free, no account
- Input: Permission checkboxes, an octal or symbolic mode, and an optional path.
- Output: Octal mode, symbolic mode, and a chmod command.
- Keywords: chmod calculator, file permission calculator, octal permissions
- Updated: 2026-10-18
- Built by: Waseem Anjum (https://fabwaseem.com)

## How to use it

1. **Check the boxes or type a mode.** Each row is owner, group, or others. You can also paste 755 or rwxr-xr-x.
2. **Read the octal and symbolic forms.** They stay in sync. Special bits add a leading octal digit and replace x with s or t.
3. **Copy the command.** The chmod line uses the path you type, or file when the path is empty.

## Use it from an AI agent

MCP tool name: `explain_chmod`
MCP endpoint: https://benchline.fabwaseem.com/mcp (Streamable HTTP, no key)
HTTP: POST https://benchline.fabwaseem.com/api/v1/tools/chmod-calculator with the input as the JSON body
This call does not fetch anything. It runs on the arguments you send.

Convert an octal or symbolic file mode into octal, symbolic notation, and a chmod command, including setuid, setgid, and the sticky bit.

### Input schema

```json
{
  "type": "object",
  "properties": {
    "mode": {
      "type": "string",
      "description": "Octal such as 755 or 4755, or symbolic such as rwxr-xr-x."
    },
    "path": {
      "default": "file",
      "type": "string"
    }
  },
  "required": [
    "mode",
    "path"
  ],
  "additionalProperties": false
}
```

### Example tools/call

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "explain_chmod",
    "arguments": {
      "mode": "example",
      "path": "file"
    }
  }
}
```

Setup for Claude, Cursor, and VS Code: https://benchline.fabwaseem.com/mcp/guide

## Questions

### What does 755 mean?

Owner read, write, and execute (7), group read and execute (5), others read and execute (5). The command is chmod 755 file.

### What is the leading digit in 4755?

The thousands digit is the special bits: 4 setuid, 2 setgid, 1 sticky. 4755 is setuid plus 755. Symbolic form shows s or t in place of x.

### What is the difference between s and S?

Lowercase s means the special bit and execute are both set. Uppercase S means the special bit is set and execute is not.

### Does this change a file on my computer?

No. It only writes the command. Run that command yourself in a terminal if you want to change a file.

## Related tools

- [Unix timestamp converter](https://benchline.fabwaseem.com/t/unix-timestamp): Turn epoch seconds or milliseconds into a date, and a date in any time zone back into epoch time.
- [Hash generator](https://benchline.fabwaseem.com/t/hash-generator): MD5, SHA-1, SHA-256, and SHA-512 checksums for text or a file, with HMAC.
- [Cron expression builder](https://benchline.fabwaseem.com/t/cron-expression-builder): Build or paste a cron schedule, read it in plain English, and see the next run times.
- [Next.js Dockerfile generator](https://benchline.fabwaseem.com/t/nextjs-dockerfile-generator): Generate a production multi-stage Dockerfile for Next.js, plus .dockerignore and compose.
