Chmod Calculator

Chmod Calculator is a free online tool that helps you convert Linux file permissions between symbolic and numeric (octal) formats instantly. Whether you're trying to understand what chmod 755 means in terms of read, write, and execute permissions, or you need to calculate the octal value for a specific combination of user/group/other permissions, this calculator makes it easy. It displays permissions for Owner, Group, and Others with intuitive checkboxes for Read (r), Write (w), and Execute (x) on Linux, macOS, and Unix-based systems. The tool also supports special permission flags like SetUID, SetGID, and Sticky Bit for advanced permission scenarios.

What Is

chmod (change mode) is a Unix/Linux command that sets the permissions of files and directories. Each file has three types of permissions: Read (r), Write (w), and Execute (x), set independently for three categories of users: Owner (the file's creator), Group (members of the file's group), and Others (everyone else). Permission values explained: - Read (r) = 4: For files, allows viewing the file contents. For directories, allows listing files inside. - Write (w) = 2: For files, allows modifying the file. For directories, allows creating/deleting files inside. - Execute (x) = 1: For files, allows running the file as a program or script. For directories, allows accessing (cd into) the directory. Octal notation combines these values: - 7 (4+2+1) = Read + Write + Execute (rwx) - 6 (4+2) = Read + Write (rw-) - 5 (4+1) = Read + Execute (r-x) - 4 = Read only (r--) - 0 = No permissions (---) Common chmod values: - 755 (rwxr-xr-x): Owner has full access, group and others can read and execute. Standard for executables and directories. - 644 (rw-r--r--): Owner can read and write, group and others can only read. Standard for regular files. - 777 (rwxrwxrwx): Everyone has full access. Rarely recommended due to security risks. - 700 (rwx------): Only the owner has full access. Used for private scripts. - 600 (rw-------): Only the owner can read and write. Used for sensitive files like SSH keys. Special permission flags: - SetUID (4000): File executes with the owner's privileges, regardless of who runs it. - SetGID (2000): File executes with the group's privileges. On directories, new files inherit the group. - Sticky Bit (1000): Only the file owner can delete/rename files in a directory. Used in /tmp.

How to Use

  1. Select permissions for the Owner (User) by checking the Read, Write, and Execute checkboxes. The octal value updates automatically as you toggle each checkbox.
  2. Set permissions for the Group by checking the appropriate Read, Write, and Execute checkboxes. Group permissions apply to all users in the file's assigned group.
  3. Configure permissions for Others (everyone else on the system) using the same Read, Write, and Execute checkboxes. Be cautious with Write permission for Others as it allows any user to modify the file.
  4. Optionally enable special permission flags: SetUID (file runs with owner's privileges), SetGID (file runs with group's privileges), or Sticky Bit (restricts file deletion in directories).
  5. View the generated chmod command in the output area. It displays both the numeric (octal) format like 'chmod 755 filename' and the symbolic format like 'chmod u=rwx,g=rx,o=rx filename'.
  6. Copy the chmod command to your clipboard and paste it directly into your Linux/Unix terminal. The command is ready to use with your target file or directory name.

Examples

Input: User: rwx, Group: r-x, Other: r-x

Process: r=4,w=2,x=1 → 7,5,5

Result: chmod 755

Input: Full access for all

Process: 7+7+7 = rwx rwx rwx

Result: chmod 777

Input: Owner read-only, others no access

Process: 4+0+0 = r-- --- ---

Result: chmod 400

Related Searches

People also search for: chmod calculator, linux permissions, chmod command, file permissions.

chmod calculatorlinux permissionschmod commandfile permissions

Frequently Asked Questions

What does chmod 755 mean exactly?

chmod 755 means: Owner gets 7 (Read+Write+Execute = rwx), Group gets 5 (Read+Execute = r-x), and Others get 5 (Read+Execute = r-x). In symbolic notation, this is rwxr-xr-x. It is the most common permission for executable files and web directories because the owner has full control while others can read and execute but not modify the file.

What is the difference between chmod 644 and chmod 666?

chmod 644 (rw-r--r--) gives the owner read+write access, while group and others get read-only access. chmod 666 (rw-rw-rw-) gives everyone (owner, group, and others) read+write access. The 644 setting is standard for web files (HTML, CSS, images) because it prevents unauthorized users from modifying your files while still allowing the web server to read them.

When should I use chmod 777?

Almost never. chmod 777 gives every user on the system full read, write, and execute access to the file or directory. This is a significant security risk because any user or process can modify or delete the file. If you're having permission issues, try 755 for directories and 644 for files first. Only use 777 as a temporary troubleshooting step, and always revert to more restrictive permissions afterward.

What is the SetUID bit and when is it used?

SetUID (Set User ID) is a special permission that causes an executable to run with the privileges of the file's owner rather than the user who launched it. The most famous example is /usr/bin/passwd, which needs root privileges to modify /etc/shadow. SetUID is represented by an 's' in the owner's execute position (rwsr-xr-x) or by adding 4000 to the octal value (e.g., chmod 4755). Use SetUID sparingly as it can create security vulnerabilities.

How do I apply chmod recursively to all files in a directory?

Use the -R (recursive) flag: chmod -R 755 /path/to/directory. This applies the permission to the directory and all files and subdirectories within it. Be careful with recursive chmod, especially with 777, as it can expose all files in the tree. A common pattern is to set directories to 755 and files to 644 separately using find: find /path -type d -exec chmod 755 {} \; and find /path -type f -exec chmod 644 {} \;.

Related Tools

UUID Generator

Generate universally unique identifiers (UUIDs) instantly with our free online UUID Generator. Whether you are a software developer creating database keys, a system administrator managing distributed systems, a QA engineer generating test data, or a data engineer partitioning datasets, this tool provides RFC 4122-compliant UUIDs in multiple versions. Generate version 1 (time-based), version 4 (random), version 5 (namespace-based), and other UUID variants with a single click. Set the number of UUIDs to generate, choose uppercase or lowercase output, and optionally include or exclude hyphens. Copy individual UUIDs or download the entire list. Perfect for database seeding, distributed system identifiers, session tokens, request tracking, and any scenario requiring guaranteed-unique identifiers without a central coordination authority.

JWT Decoder

Decode and inspect JSON Web Tokens instantly with our free online JWT decoder. Paste any JWT to see its header, payload, and signature components decoded and displayed in readable format. Whether you are debugging authentication flows, verifying token claims, examining third-party tokens, understanding JWT structure, or troubleshooting authorization issues, this tool provides complete transparency into token contents with support for HS256, RS256, ES256, and other common signing algorithms. All decoding happens in your browser for security.

Password Strength Checker

Worried your password might be too weak to protect your accounts? Our Password Strength Checker gives you an instant, accurate assessment of any password's real-world security. It evaluates multiple critical factors — length, character diversity, common patterns, dictionary words, and keyboard sequences — to produce a comprehensive strength score. You also get an estimated crack time that shows exactly how long it would take an attacker to break your password using modern hardware. The entire analysis runs locally in your browser, so your password never touches a server. Whether you are creating a new password, auditing existing ones, or setting organizational security policies, this tool provides clear, actionable feedback to help you make smarter security decisions.

JSON Formatter

Format, beautify, and validate JSON data instantly with our free online tool. Paste raw JSON to get a properly indented, syntax-highlighted, and human-readable version with comprehensive error detection and reporting. Whether you are debugging API responses, cleaning up configuration files, analyzing log data, preparing JSON for documentation, or learning JSON structure, this formatter provides instant results with customizable indentation levels. The built-in validator catches syntax errors with precise line and column indicators for fast troubleshooting.

Base64 Encode & Decode

Base64 Encode & Decode is a free, instant online tool for converting text and binary data to and from Base64 format. Base64 is a binary-to-text encoding scheme that represents binary data using 64 ASCII characters, making it safe to transmit over text-based protocols like email (MIME), JSON, XML, and URLs. This tool handles both encoding (converting your data to Base64) and decoding (converting Base64 back to original text or binary). It supports UTF-8 text, handles large inputs efficiently, and works entirely in your browser with no data sent to any server. Perfect for developers working with API authentication headers, data URIs, JWT tokens, or any scenario requiring Base64 conversion.

URL Encode Decode

Encode and decode URLs instantly with our free online URL Encode/Decode tool. Whether you are a web developer handling query parameters, an API engineer working with HTTP requests, a data analyst processing web logs, or anyone who needs to safely transmit special characters in URLs, this tool provides instant, accurate conversion in both directions. URL encoding converts special characters into a format that can be safely transmitted over the internet, while URL decoding reverses this process to recover the original text. Simply paste your URL or string and get the encoded or decoded result in real-time. The tool handles Unicode characters, spaces, symbols, and all special characters defined in RFC 3986. Input your data and click the corresponding button to transform it instantly.

Hash Generator

Generate cryptographic hashes instantly with our free online Hash Generator. Compute MD5, SHA-1, SHA-256, SHA-384, SHA-512, and other hash values from text or file input. This essential tool for developers, security professionals, and data integrity verification supports multiple hash algorithms with instant results. Use it to verify file integrity, generate checksums, hash passwords for testing, create unique identifiers, or learn about cryptographic hashing. The tool processes everything locally in your browser — your sensitive data never leaves your device, ensuring complete security and privacy for confidential inputs.

JSON to CSV Converter

Convert JSON data to CSV format instantly with our free online transformer. Upload or paste JSON arrays and get properly formatted CSV output with automatic header detection, customizable delimiters, and nested object flattening. Whether you are exporting API data for spreadsheet analysis, migrating JSON databases to tabular formats, preparing data for Excel or Google Sheets import, generating reports from structured data, or integrating JSON feeds with legacy systems, this converter handles complex structures including nested objects, arrays of objects, mixed data types, and large datasets with configurable options for optimal output.

QR Code Generator

Need a professional QR code for your website, business card, event, product packaging, or marketing campaign? Our free QR Code Generator creates high-quality, scannable QR codes in seconds — no sign-up, no limits, no watermarks. Simply enter your URL, text, contact information, Wi-Fi credentials, or any other data type, and get an instantly scannable QR code that works with every modern smartphone and QR scanner app. Customize colors to match your brand, choose between PNG and SVG output formats, and download your QR code immediately. Whether you are a small business owner sharing contact details, a marketer linking to a landing page, an event organizer distributing tickets, or a restaurant displaying a digital menu, this tool makes QR code creation effortless and accessible to everyone.

HTML Entity Encoder/Decoder

Encode any text into HTML entities for safe web display with our free online HTML Entity Encoder. Convert special characters and symbols into their HTML entity equivalents to prevent rendering issues and security vulnerabilities. This focused tool handles all reserved HTML characters, Unicode symbols, emoji, and multilingual text encoding. Use it to sanitize user input before displaying in web pages, encode code snippets for safe preview, prepare multilingual content for HTML embedding, or ensure cross-browser compatibility for special characters. The encoder supports named entities, numeric decimal, and hexadecimal output formats.

User Agent Generator

Generate realistic User-Agent strings for any browser, device, or operating system with our free online User-Agent Generator. Whether you are a web developer testing responsive layouts, a QA engineer simulating different client environments, a data scientist preparing web scraping configurations, or a security professional analyzing request headers, this tool provides instant access to thousands of real-world User-Agent strings. Select from popular browsers (Chrome, Firefox, Safari, Edge), operating systems (Windows, macOS, Linux, Android, iOS), and device types (desktop, mobile, tablet). Copy individual strings or export lists for automated testing. Customize by browser version, OS version, and device type to match your exact testing requirements.

Regex Tester

Test and debug your regular expressions in real-time with our free online Regex Tester. Whether you are a developer writing pattern-matching code, a data analyst extracting information from text, or a system administrator configuring log filters, this tool provides instant feedback on your regex patterns. Simply enter your regular expression, provide a test string, and immediately see all matches highlighted with detailed group captures. The tool supports all standard regex features including character classes, quantifiers, anchors, lookaheads, backreferences, and flags. Get helpful error messages when your pattern has syntax errors, and use the built-in regex reference guide for quick syntax lookups. No more guessing whether your pattern works — see results instantly and iterate until your regex is perfect.

Popular Tools

EMI Calculator

Planning to take a home loan, car loan, or personal loan and wondering what your monthly payment will look like? Our...

BMI Calculator

Ever stepped on a scale and wondered what that number actually means for your health? Our BMI calculator takes the gu...

Body Fat Percentage Calculator

Have you ever felt like the scale does not tell the whole story? You can weigh the same as someone else but look comp...

CAGR Calculator

When you invest in stocks, mutual funds, or any market-linked asset, one number tells you the real story of how your...

Unit Converter

From cooking to construction, from science to shopping, unit conversion is one of those things you need all the time...

Age Calculator

Figuring out someone's exact age isn't as simple as subtracting birth year from current year. Leap years, different m...

JSON Formatter

Format, beautify, and validate JSON data instantly with our free online tool. Paste raw JSON to get a properly indent...

QR Code Generator

Need a professional QR code for your website, business card, event, product packaging, or marketing campaign? Our fre...

Salary Calculator (Gross to Net)

Understanding your true take-home pay is essential for budgeting, planning, and making smart career decisions, yet mo...

Tip Calculator

Dining out, getting a haircut, taking a taxi, or receiving any kind of personal service often comes with the question...

Word Counter

Need an accurate word count for your essay, article, or document? This word counter gives you instant, precise counts...

Color Code Converter

Color Code Converter is a free online tool that instantly converts color values between different formats used in web...