Skip to content
  1. LuzineDebug
  2. Tools
  3. Chmod calculator

Chmod calculator: Linux permissions in octal and rwx

Tick the permissions and get 755 or rwxr-xr-x (and back), with the ready-to-copy command and safe presets by use case. Everything happens in your browser.

Read r · 4Write w · 2Execute x · 1
Owner u
Group g
Others o

Apply the right permissions to a whole project

Do not run chmod -R 755: files would become executable. Handle folders and files separately:

bash
find . -type d -exec chmod 755 {} +
find . -type f -exec chmod 644 {} +

For Laravel, the web server must be able to write to storage and bootstrap/cache: sudo chown -R $USER:www-data storage bootstrap/cache then chmod -R ug+rwX storage bootstrap/cache (capital X only adds execute to folders).

Frequently asked questions

Should I run `chmod 777` to fix “Permission denied”?

No. 777 lets any user on the server modify or replace your files, which opens the door to code injection. The real issue is almost always the owner: fix it with chown (for example to www-data) then keep 755 for folders and 644 for files.

What does “Permissions 0644 for “id_rsa” are too open” mean?

SSH refuses a private key that other users can read. Set it to 600 (chmod 600 ~/.ssh/id_ed25519) and the ~/.ssh folder to 700.

What does “x” mean on a folder?

On a folder, x lets you enter it and reach the files inside; r only lets you list their names. A folder without x is unusable even if it is readable.

Errors this tool helps solve

Other tools

Error finder

Paste an error message or a log: the tool recognises the error and opens the right fix.

JSON validator

Validate, format and minify JSON, with the exact line and column of the error.

Regex tester

Test a regular expression live: highlighted matches, groups, replacement.

JWT decoder

Decode a JWT: header, payload, readable expiry dates and whether the token has expired.

HTTP status codes

All the common HTTP codes (401, 403, 404, 419, 429, 500, 502…): meaning, causes and what to do.

Text diff

Compare two versions line by line: additions, deletions, invisible whitespace.

Base64 & URL encoder

Encode and decode Base64 (standard and URL-safe), URL, HTML entities and Unicode escapes, with proper UTF-8 handling.

Hash generator

Computes MD5, SHA-1, SHA-256, SHA-384, SHA-512 and HMAC of a text or file, and compares with an expected hash.

Timestamp converter

Converts a Unix timestamp (seconds, milliseconds, microseconds) to a readable date in any time zone, and back.

Cron explainer

Turns a cron expression into a plain sentence, lists the next runs and flags the traps (day of month AND day of week, time zone).

YAML validator

Validates YAML (docker-compose, GitHub Actions, Kubernetes), shows the faulty line and tabs, and converts it to JSON.

cURL converter

Paste a cURL command (DevTools “Copy as cURL”): get the fetch, axios, Node, PHP (Laravel Http or curl) or Python requests code.

Stack trace formatter

Formats a stack trace (JS, Python, PHP, Java, .NET, Go), separates your code from libraries and points to the line to open first.