---
title: "Chmod Calculator: 755, 644 and rwx Notation | VulCode"
description: "A chmod calculator converts file permissions between octal (755) and rwx notation and gives you the chmod command. Click permissions or type a number. Free."
url: "https://vulcode.com/en/tools/chmod-calculator"
lang: "en"
---

[Home](https://vulcode.com/en) [Resources](https://vulcode.com/en/resources) [Tools](https://vulcode.com/en/tools)

# chmod calculator

A chmod calculator converts file permissions between octal (755) and rwx notation and gives you the chmod command. Click permissions or type a number. Free.

[Free quote](https://vulcode.com/en/quote) [Full pricing](https://vulcode.com/en/services/pricing)

Octal

3 or 4 digits from 0 to 7.

Kind

File Directory

Common sets

644 -rw-r--r--

755 -rwxr-xr-x

600 -rw-------

700 -rwx------

640 -rw-r-----

750 -rwxr-x---

775 -rwxrwxr-x

2775 -rwxrwsr-x

| Who | rread | wwrite | xexecute | Digit |
| --- | --- | --- | --- | --- |
| Owner |  |  |  | 7 |
| Group |  |  |  | 5 |
| Others |  |  |  | 5 |

Special bits

setuid the program runs with the rights of the file owner setgid on a directory: new files inherit the group sticky on a directory: only the owner of a file can delete it

Path in the command

With subdirectories (-R)

## Who can do what

- Octal
  Copy

- As in ls -l
  Copy

- Command
  Copy

- Command, symbolic
  Copy

-R gives files and directories the same mode, so every file gets the execute right. Directories usually want 755 and files 644, set separately with find -type d and find -type f.

## How to use it in three steps

Step by step, with this page's example.

- Tick permissions or type a number, such as 755.

- Read the rwx notation.

- Copy the ready chmod command.

What you enter

755 for the file script.sh

What you get

```
-rwxr-xr-x
chmod 755 script.sh
chmod u=rwx,g=rx,o=rx script.sh
```

## Questions

- **What does chmod 755 mean?**: The owner can read, write and execute the file, while the group and others can only read and execute (rwxr-xr-x).
- **What does chmod 777 mean and is it safe?**: 777 gives everyone the right to read, write and execute. It is not safe, because any user on the server can change the file, so set the owner properly and use 755 or 644 instead.
- **What permissions should files and directories have on a web server?**: Usually 644 for files and 755 for directories. A directory needs the execute bit so that it can be entered, and an ordinary file does not need it.
- **How is 755 different from 644?**: 755 lets everyone read and execute and only the owner write. 644 lets nobody execute, so it suits ordinary files.
- **What are setuid and the sticky bit?**: Setuid makes a program run with the rights of its owner, setgid makes a directory pass its group on, and the sticky bit on a directory like /tmp lets only a file's owner delete it. They go in an optional leading fourth digit, for example 4755.

## Related tools

The tool does one job. If the same thing should happen automatically in your bot, server or system, we build it.

- ### [CIDR subnet calculator](https://vulcode.com/en/tools/cidr-subnet-calculator)
  From an address with a mask, get the range, broadcast, hosts and subnets.

- ### [Cron expression generator and explainer](https://vulcode.com/en/tools/cron-expression-generator)
  Turn a cron expression into a plain sentence and see the next run times.

- ### [Text diff checker: compare two texts](https://vulcode.com/en/tools/text-diff-checker)
  Paste two versions, see the changed lines and get a unified diff patch.

## Tell us what you want to build.

A free quote comes back within an hour during working hours. You talk to the person who writes the code.

[Free quote](https://vulcode.com/en/quote) [Free consultation](https://vulcode.com/en/consultation)

- [hello@vulcode.com](mailto:hello@vulcode.com)

- [+48 576 043 920](tel:+48576043920)

- [discord.gg/vulcode](https://discord.gg/vulcode)
