Chmod Calculator
Calculate Linux file permissions in octal and symbolic
Permission Matrix
| Role | Read (4) | Write (2) | Execute (1) | Value |
|---|---|---|---|---|
| owneru | 6 | |||
| groupg | 4 | |||
| otherso | 4 |
Octal Notation
Symbolic Notation
# Command Examples
Common Permission Presets
Free Chmod Calculator - Linux File Permission Calculator Online
Our Chmod Calculator makes it easy to understand and set Linux file permissions using an intuitive visual interface. Linux file permissions control who can read, write, and execute files, and every file and directory has three permission sets: one for the owner, one for the group, and one for all other users.
The chmod command (change mode) is the primary way to modify file permissions on Linux and Unix systems. Whether you prefer octal notation (like 755) or symbolic notation (like rwxr-xr-x), this calculator instantly converts between both formats and generates ready-to-use terminal commands you can copy with a single click.
Whether you are a system administrator configuring web server files, a developer setting up SSH keys, or a beginner learning Linux file permissions for the first time, this tool provides a clear, interactive way to understand exactly what each permission combination means and how to apply it correctly.
Key Features
- Interactive permission matrix: Toggle read, write, and execute permissions for owner, group, and others with visual checkboxes
- Dual notation display: See both octal (e.g., 755) and symbolic (e.g., rwxr-xr-x) notation simultaneously
- Octal input support: Type an octal value directly and see the permission matrix update instantly
- Ready-to-use commands: Copy chmod commands with single-file and recursive (-R) variants
- Common permission presets: Quick-access buttons for 777, 755, 644, 600, 700, 666, 444, and 400
- Color-coded values: Owner, group, and others segments are visually distinguished in symbolic notation
- One-click copy: Copy octal values, symbolic strings, or full commands to your clipboard instantly
- Real-time calculation: All values update instantly as you toggle permissions
- Per-role value display: See the numeric value (0-7) for each role at a glance
- Dark mode support: Comfortable usage in both light and dark themes
How to Use the Chmod Calculator
- Set permissions visually: Click the toggle buttons in the permission matrix to enable or disable read (4), write (2), and execute (1) for each role
- Or enter an octal value: Type a three-digit octal number (like 755) directly into the octal input field
- Use presets for common cases: Click any of the 8 common permission presets to quickly apply standard configurations
- Review both notations: Check the octal and symbolic representations to confirm the permissions are correct
- Copy the command: Click the copy button next to the chmod command example to copy it to your clipboard
Use Cases
- Web server configuration: Set correct permissions for HTML, CSS, JS files (644) and directories (755) on Apache or Nginx
- SSH key management: Ensure private keys use 600 and the .ssh directory uses 700 to prevent SSH authentication failures
- Shell script deployment: Make scripts executable with 755 for shared use or 700 for private scripts
- Application deployment: Configure proper file and directory permissions for deployed applications
- Security auditing: Verify that sensitive files like .env, credentials, and configuration files are not world-readable
- WordPress & CMS setup: Apply recommended permissions for WordPress files (644) and directories (755)
- Learning Linux: Understand how octal values map to read, write, and execute permissions interactively
- DevOps automation: Generate correct chmod commands for deployment scripts and CI/CD pipelines
Frequently Asked Questions
Is this tool free?
Yes, the Chmod Calculator is completely free to use with no limits, no registration, and no ads blocking the interface. Use it as often as you need.
Is my data secure?
Absolutely. This tool runs entirely in your browser. No data is sent to any server -- all calculations happen locally on your device.
What is the difference between octal and symbolic notation?
Octal notation uses three digits (like 755) where each digit represents the permissions for owner, group, and others. Symbolic notation uses letters (rwx) to represent read, write, and execute. Both express the same information in different formats.
Why should I never use chmod 777?
Permission 777 gives full read, write, and execute access to everyone, which is a serious security risk. Any user on the system can modify or delete the file. Use more restrictive permissions like 755 or 644 instead.
What does the -R flag do in chmod?
The -R (recursive) flag applies the permission change to all files and subdirectories within the specified directory. Use it carefully, as it affects everything inside the target directory.
What permissions should I use for SSH keys?
Private SSH keys must use 600 (owner read/write only) and the ~/.ssh directory must use 700 (owner full access only). SSH will refuse to use keys with incorrect permissions for security reasons.
Tips & Best Practices
- Follow the principle of least privilege: Only grant the minimum permissions needed for a file or directory to function correctly
- Use 644 for regular files: This allows the owner to read and write, while everyone else can only read
- Use 755 for directories: This gives the owner full access while allowing others to enter and list the directory
- Protect sensitive files with 600: Use this for SSH private keys, .env files, database credentials, and any file containing secrets
- Be cautious with recursive chmod: Always double-check the target directory before using chmod -R to avoid unintended permission changes
- Test permissions in development first: Verify that your permission settings work correctly in a test environment before applying them to production
Related Tools
CSS Specificity Calculator
Calculate and compare CSS selector specificity scores
Subnet Calculator
Calculate IPv4 subnets, network ranges, and CIDR notation
DCA Calculator
Simulate dollar-cost averaging strategy and compare with lump sum
Aspect Ratio Calculator
Calculate and convert aspect ratios for images, video, and screens
Loan Calculator
Calculate loan payments, interest rates, and amortization
Savings Goal Calculator
Plan how much to save monthly to reach your financial goal
Compound Interest Calculator
Calculate compound interest and investment growth
BMI Calculator
Calculate Body Mass Index and health status
Sleep Calculator
Calculate optimal sleep and wake times
Salary Calculator
Calculate take-home pay with federal and state tax deductions
YouTube Revenue Calculator
Estimate YouTube earnings from views and RPM by niche
Age Calculator
Calculate age in years, months, days, hours
Last Added Free Tools
YouTube Thumbnail Downloader
Download any YouTube video thumbnail in HD and all other resolutions
YouTube Tag Extractor
Reveal the hidden tags of any YouTube video and copy them in one click
YouTube Channel ID Finder
Convert any handle or channel URL to the permanent channel ID with RSS feed
YouTube Subscriber Counter
Track any channel's subscriber count live with auto-refresh
YouTube Dislike Checker
See the hidden dislike count and like ratio of any YouTube video
YouTube Banner Maker
Design 2560x1440 channel art with safe-area guides and export as PNG
YouTube Watch Time Calculator
Calculate watch hours and track progress toward 4000 hours for monetization
YouTube Embed Code Generator
Generate responsive iframe embed code with start time, autoplay, and privacy mode
YouTube Timestamp Link Generator
Create YouTube links that start at an exact time
YouTube Subscribe Link Generator
Build channel links that open with a subscribe confirmation popup
YouTube Font Generator
Convert text into fancy Unicode fonts for titles, comments, and channel names
YouTube Channel Name Generator
Generate unique channel name ideas by niche and keyword