Chmod Permission Calculator Tool - Unix File Permission Calculator with Umask Support

First Published:
Last Updated:

Free chmod calculator and Unix file permission converter with special bits support. All processing is performed entirely within your browser - no data is transmitted to any server.

IMPORTANT DISCLAIMER:

  • This tool is provided "AS IS" without any warranties of any kind.
  • The author accepts no responsibility for incorrect permission settings or security issues arising from the use of this tool.
  • Always verify permissions before applying them to production systems.
  • By using this tool, you accept full responsibility for any outcomes.

Privacy: This tool operates entirely within your browser using client-side JavaScript. No data is transmitted to servers, and all processing happens locally on your device. Once loaded, this tool continues to work even without an internet connection. For more details, please refer to our Web Tools Disclaimer.

Read (r = 4) Write (w = 2) Execute (x = 1)
Owner (u)
Group (g)
Other (o)
Special Bits
Symbolic Notation
rwxr-xr-x
ls -l Output
-rwxr-xr-x
chmod command (numeric)
chmod 0755 filename
chmod command (symbolic)
chmod u=rwx,g=rx,o=rx filename

The umask (user file-creation mode mask) determines the default permissions for newly created files and directories. It works by subtracting permissions from the system defaults (0777 for directories, 0666 for files).

New Directories (0777 & ~umask)
0755
rwxr-xr-x
New Files (0666 & ~umask)
0644
rw-r--r--

Features:

  • Interactive Permission Matrix: Visual 3x3 grid with checkboxes for owner/group/other read/write/execute permissions
  • Special Bits Support: Full setuid, setgid, and sticky bit support with correct s/S/t/T notation
  • Bidirectional Conversion: Octal input instantly updates checkboxes and all displays; checkbox changes update octal
  • ls -l Output: Shows the full ls -l style permission string with selectable file type prefix
  • Dual chmod Commands: Generates both numeric and symbolic chmod commands ready to copy and use
  • Security Warnings: Real-time warnings for dangerous permission combinations (world-writable, setuid risks, etc.)
  • 15 Common Presets: One-click presets with descriptions and real-world usage examples (755, 644, 600, 4755, 1777, etc.)
  • Umask Calculator: Dedicated tab to calculate default file/directory permissions from umask values
  • Human-Readable Explanations: Plain-English description of what each permission setting means
  • Client-Side Processing: All calculations performed locally in your browser
  • Mobile Friendly: Responsive design works on all devices
  • Privacy First: No data is ever transmitted to any server

Common Use Cases:

  • Server Administration: Set correct permissions for web server files, SSH keys, configuration files, and log directories
  • AWS/Cloud: Configure EC2 instance file permissions, Lambda deployment packages, and SSH key files (chmod 400)
  • Web Development: Set 755 for directories and CGI scripts, 644 for HTML/CSS/JS/images
  • Security Auditing: Identify overly permissive files with the built-in security warnings
  • DevOps: Generate chmod commands for deployment scripts and infrastructure automation

References:
Tech Blog with curated related content
Web Tools Collection

Written by Hidekazu Konishi