Skip to main content
Code Tools
Recently added

Chmod Calculator

Calculate Linux file permissions as octal, symbolic letters, and a chmod command.

Introduction

Chmod Calculator converts Linux file permissions between octal (755, 644) and symbolic form (rwxr-xr-x). Paste an ls -l line, tick owner, group, and others, and copy a chmod command. A umask tab shows the default mode for new files and folders. The recursive helper writes find commands so directories and files are not given the same mode.

How chmod numbers work

Each digit is read (4) + write (2) + execute (1) for one of owner, group, and others.

NumberLettersMeaning
0---no access
1--xexecute only
2-w-write only
3-wxwrite and execute
4r--read only
5r-xread and execute
6rw-read and write
7rwxread, write and execute

Common chmod values

ValueLettersUse it for
644rw-r--r--Normal files: HTML, CSS, images
755rwxr-xr-xFolders and scripts
600rw-------.env files and SSH private keys
700rwx------Private folders such as ~/.ssh
777rwxrwxrwxAlmost never — anyone can change the file
400r--------Read-only keys, for example an AWS .pem

Features

  • Owner, group, others, and special bits (setuid, setgid, sticky)
  • Octal, symbolic, and ls -l stay in sync
  • chmod command in numeric and symbolic form
  • Recursive find helper and umask defaults
  • Presets for keys, web files, and shared folders

How to use

  • 1
    Tick Read, Write, and Execute, or type an octal mode such as 755.
  • 2
    Paste a symbolic string or a full ls -l line to decode it.
  • 3
    Copy the chmod command, or open the umask tab for new-file defaults.

Example

Script mode

Input
755
Output
rwxr-xr-x
chmod 755 file

Benefits

  • Use Chmod Calculator without installing a desktop app or browser extension.
  • Works well alongside Base Converter and Dockerfile for adjacent steps in the same workflow.
  • Results stay in this browser tab until you copy or download them.

FAQs

The owner can read, write, and run the file. The group and everyone else can read and run it, but not change it. In letters that is rwxr-xr-x.

644 is rw-r--r-- and has no execute bit, so it fits normal files. 755 is rwxr-xr-x and adds execute, so it fits scripts and folders.

777 lets any user on the system change or replace the file. On a web server that can turn into a site takeover. Use 755 for folders and scripts and 644 for other files.

Use 600 or 400 for the private key, and 700 for the ~/.ssh folder. SSH refuses keys that other users can read.

The sticky bit is the 1 in modes such as 1777. On a folder, users can delete only their own files. That is why /tmp is 1777, shown with a t in the last position.

umask is a mask subtracted from the default mode of new files and folders. With umask 022, new files are 644 and new folders are 755. With 077, they are 600 and 700.

No. Modes, filenames, and pasted ls -l lines stay in your browser and are not sent to a server.

Related guides

Read the guide: Chmod Permissions Explained: 755, 644, 777 and More

Learn what chmod 755, 644, 600 and 777 mean, how to read rwxr-xr-x, and how to set safe Linux file permissions with our free chmod calculator.


Developer resources