Linux tool

Chmod & Linux Permissions Calculator

A chmod calculator that is also a Linux permissions calculator. Read, write, execute, setuid, setgid, sticky, then copy chmod 755 or Node fs.chmod. It all stays on your device.

Like the tool? Find a bug?Share with us

Calculator

Toggle read, write, and execute, or paste 755 / rwxr-xr-x. Copy a chmod command or a Node fs.chmod snippet. Files stay on this device.

Kind
umask
WhoRead 4Write 2Exec 1Octal
Owner6
Group4
Other4

Special bits

Supported files: .txt, .json, .html, .htm, .md, .csv, .b64
0 / 50,000

644

-rw-r--r--

Owner can read and write. Group can read. Others match group.

0644 · 0o644

Owner
read and write
Group
read
Other
read
chmod 644 file
chmod u=rw,g=r,o=r file
import { chmod } from "node:fs/promises";

// 644 rw-r--r--
await chmod("file", 0o644);

Guide

How this chmod calculator works

01

Octal is three (or four) bits

Owner, group, and other each get read 4, write 2, execute 1. Add them: 7 is rwx, 5 is r-x, 4 is r--. A leading digit is setuid, setgid, and sticky: 4755.

02

Execute means different things

On a file, execute runs the program. On a directory, execute is “enter” — you need it to cd or resolve a path inside. Read on a directory lists names. Write creates or deletes.

03

Next.js uses 0o755

The Next.js snippet calls chmod from node:fs/promises with an octal literal. That works in Node server runtimes, not on the Edge. Windows Node ignores POSIX mode bits.

Use it

What to paste

755, 0755, rwxr-xr-x, an ls -l line, chmod 644 file, or symbolic u=rwx,g=rx,o=rx. umask 022 on a file is 644; on a directory it is 755. Input is capped at 50,000 characters.

FAQ

Questions

Does this upload my files?

No. The calculator never chmods anything on this machine. Generating and copy run in the browser. There is no account and no API call.

644 or 755?

644 is a typical file: owner read/write, everyone else read. 755 is a typical directory or executable: owner rwx, others rx. Private keys often use 600.

What does umask do?

New files start at 666 and directories at 777, then bits in the umask are turned off. umask 022 yields files 644 and directories 755.

Is there a size limit?

Paste is capped at 50,000 characters so a huge dump cannot freeze the tab.