Home › Developer Tools › Chmod Calculator

Chmod Calculator

Work out Linux file permissions in seconds: tick the boxes or type an octal value like 755, symbolic text like rwxr-xr-x, or an expression like u+x, and copy the ready chmod command. Everything is calculated in your browser.

Last updated:

WhoRead 4Write 2Execute 1Value
Owner u 0
Group g 0
Others o 0
Special bits

755 -rwxr-xr-x
    Numeric chmod 755 file.txt
    Symbolic chmod u=rwx,g=rx,o=rx file.txt
    Common permissions
    Advertisement

    How to use the Chmod Calculator

    1. Tick the boxes for read, write and execute for the owner, the group and others, or press a preset such as 644 or 755.
    2. Or type a value: an octal number (755, 0644, 4755), an ls -l string (-rw-r--r--) or an expression (u+x,g-w).
    3. Add special bits (setuid, setgid, sticky) if you need them; the fourth octal digit appears automatically.
    4. Enter the file or folder name, choose whether to apply it recursively, and read the plain-English summary.
    5. Copy the chmod command and run it in your terminal.

    Permission values at a glance

    OctalBinarySymbolicMeaning
    0000---No access
    1001--xExecute only
    2010-w-Write only
    3011-wxWrite and execute
    4100r--Read only
    5101r-xRead and execute
    6110rw-Read and write
    7111rwxRead, write and execute

    Common chmod values and where to use them

    Models -lTypical use
    644-rw-r--r--Web pages, images, documents, most config files
    755-rwxr-xr-xScripts and binaries; directories on web servers
    600-rw-------SSH private keys, .env files, password files
    700drwx------~/.ssh and other private directories
    640-rw-r-----Configs readable by a service group (e.g. www-data)
    775 / 664drwxrwxr-x / -rw-rw-r--Folders and files shared by a team group
    1777drwxrwxrwt/tmp: everyone can write, only owners can delete
    2775drwxrwsr-xShared project folder where new files keep the group
    4755-rwsr-xr-xsetuid programs such as passwd (use with great care)

    Read, write and execute on directories

    On a directory the same bits mean something different: read lets you list the names inside, write lets you create, delete and rename entries (together with execute), and execute lets you enter the directory and access files by name. That is why folders almost always need x wherever they have r, and why 644 on a directory makes its contents unreachable.

    New files get their starting permissions from the umask: with the common umask 022, files are created as 644 and directories as 755. Symbolic expressions are handy for small changes without recalculating: chmod u+x script.sh adds execute for the owner, chmod go-w file removes write for group and others, and chmod -R a+rX dir makes a tree readable while adding execute only to directories.

    Frequently asked questions

    What does chmod 755 mean?

    755 gives the owner read, write and execute (7 = 4 + 2 + 1) and gives the group and everyone else read and execute (5 = 4 + 1). In symbolic form it is rwxr-xr-x. It is the usual mode for scripts, programs and directories that others need to open.

    What does chmod 644 mean?

    644 is rw-r--r--: the owner can read and write, the group and others can only read. It is the standard mode for ordinary files such as HTML pages, images and documents.

    How are octal permissions calculated?

    Each digit is the sum of read = 4, write = 2 and execute = 1 for one class of users: the first digit is the owner, the second the group and the third others. An optional leading digit adds setuid = 4, setgid = 2 and sticky = 1, so 4755 is 755 plus setuid.

    What do s, S, t and T mean in ls -l output?

    A lowercase s in the owner or group execute position means setuid or setgid is set and execute is also set. An uppercase S means the special bit is set without execute. Likewise, t in the others position is the sticky bit with execute, and T is sticky without execute.

    Should I use chmod 777?

    Almost never. 777 lets every user on the system read, modify and execute the file or create and delete files in the folder. Web hosts and security scanners flag it. Use 755 for directories and 644 for files, and give write access only to the owner or a specific group.

    What permissions should an SSH private key have?

    OpenSSH refuses private keys that others can read. Use chmod 600 (or 400) on the key file and chmod 700 on the ~/.ssh directory.

    Does chmod -R apply the same mode to files and folders?

    Yes, which is why chmod -R 755 also makes every file executable. A common alternative is to use find: find dir -type d -exec chmod 755 {} + and find dir -type f -exec chmod 644 {} +, or a symbolic mode with capital X (a+rX), which adds execute only to directories and files that are already executable.

    Are all the tools on FreeToolCabin tested for quality and accuracy?

    Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

    Related tools

    Subnet CalculatorCalculate IPv4 network, broadcast, host range, masks and host count, and split subnets.Cron Expression GeneratorBuild crontab schedules visually, read them in plain English and see the next run times.Htaccess & Nginx Redirect GeneratorBuild 301 redirects for .htaccess, Nginx and Netlify or Cloudflare _redirects.File Info ViewerCheck file size, type, date and MD5/SHA hashes.Dockerfile GeneratorGenerate a production Dockerfile and .dockerignore for Node, Python, Go or a static nginx site.Htpasswd GeneratorCreate .htpasswd entries with bcrypt, APR1-MD5 or SHA-1 for Apache and Nginx basic auth.JSON to Excel ConverterTurn JSON into a styled .xlsx spreadsheet; nested arrays become their own linked sheets.JSON to CSVConvert JSON data to CSV for spreadsheets.CSV to JSONConvert CSV data to JSON with live preview.Excel to CSVConvert XLSX spreadsheets to CSV.CSV ViewerOpen a CSV or TSV file as a sortable, filterable table.Excel Viewer (XLSX / XLS)Open XLSX, XLS and ODS spreadsheets in your browser without Excel.Line Ending ConverterConvert text and files between CRLF, LF and CR line endings.Markdown to HTMLConvert Markdown to clean HTML with a live editor.XML to JSONConvert XML to JSON with validation.Text Encoding ConverterDetect and convert text file encodings like UTF-8, UTF-16 and Latin-1.JSON ViewerExplore JSON as a collapsible tree, search keys and values and copy any node's path.TTF to WOFF2 ConverterConvert TTF and OTF fonts to WOFF2 or WOFF and get a ready @font-face CSS snippet.JSON to TypeScriptGenerate TypeScript interfaces or types from JSON, with nested types and optional fields.Morse Code TranslatorTranslate text to Morse code and back, then play it as sound or a blinking light, or save a WAV.HTML Table GeneratorBuild HTML tables in an editable grid with styles, header rows, CSV import and live preview.Hex to Text ConverterConvert hex to text and text to hex with UTF-8 support and space, 0x, \x or comma formats.JSON to XML ConverterConvert JSON to well-formed XML with attributes, arrays and pretty print.JSON to YAML ConverterConvert JSON to clean YAML as you type, with indent, quoting and sort options.YAML to JSON ConverterConvert YAML to pretty or minified JSON, with errors pinned to the exact line.HTML to Markdown ConverterTurn HTML or pasted rich text into clean Markdown with tables and live preview.Markdown Table GeneratorBuild Markdown tables in a grid or paste from Excel/CSV, with alignment and preview.JSON ValidatorCheck JSON with the exact line and column of each error, fix tips and one-click auto-fix.Image to Base64Convert images to Base64 data URIs, CSS backgrounds and HTML img tags in your browser.Base64 to ImagePaste a Base64 string or data URI to preview, identify and download the image.JSON CompareCompare two JSON documents and see every added, removed and changed path.Hex to DecimalConvert hex to decimal instantly with steps and signed mode.Decimal to HexConvert decimal to hex instantly with steps and signed mode.Binary to DecimalConvert binary to decimal instantly with steps and signed mode.Decimal to BinaryConvert decimal to binary instantly with steps and signed mode.Two's Complement CalculatorDecimal to two's complement binary and back for 4-64 bits, with invert-and-add-1 steps.XML to CSV ConverterConvert XML to CSV: detects repeating records, flattens nested data, pick your columns.CSV to XML ConverterConvert CSV to well-formed XML with custom root and row names, escaping and pretty print.JSON Merge ToolDeep-merge two or more JSON objects with array concat, replace or union and a conflict rule.JSONL to CSV ConverterConvert JSON Lines / NDJSON to CSV with flattened columns; streams large files locally.PHP Unserialize OnlineDecode PHP serialize() strings to JSON, a tree or print_r, and serialize JSON back to PHP.SQL Dialect ConverterTranslate SQL between MySQL, PostgreSQL, SQLite, SQL Server, Oracle, BigQuery and more.TSV to JSON ConverterTurn tab-separated data pasted from Excel or Sheets into a JSON array or keyed object.XLS to XLSX ConverterConvert old Excel 97-2003 .xls workbooks to modern .xlsx files in your browser, several at once.XML to Excel ConverterTurn repeating XML elements into an .xlsx spreadsheet with attributes and nested data as columns.XSD to XML Sample GeneratorGenerate a sample XML document from an XSD schema, with types, attributes and namespaces.YAML to CSV ConverterTurn a YAML list of objects into CSV with dot-notation columns, custom column order and download.DOCX to Markdown ConverterConvert Word .docx to clean Markdown with headings, lists, tables, links and images in a ZIP.ES6 to ES5 ConverterTranspile modern JavaScript (ES2015+) to ES5 with Babel: targets, module format and loose mode.JavaScript Object to JSONTurn JS object literals and Python dicts into valid JSON: quotes keys, fixes commas and values.JSON Graph VisualizerSee JSON as an interactive node graph with zoom, collapse and search; export PNG or SVG.KML ViewerOpen KML and KMZ files on an interactive map: placemarks, paths, polygons, folders, export.MySQL to PostgreSQL ConverterConvert MySQL dumps and CREATE TABLE statements to PostgreSQL: types, AUTO_INCREMENT, ENUMs, quotes.Text to CSV ConverterTurn space-aligned, fixed-width, pipe or tab separated text into clean CSV with a live preview.VCF File ViewerOpen vCard .vcf files as contact cards with photos, search and duplicate check, export CSV.XML ViewerBrowse XML as a collapsible tree with search, XPath of any node, attributes and big-file support.TOML to JSON ConverterConvert TOML to JSON and JSON to TOML with a full v1.0 parser and clear error lines.JSON to Go StructTurn JSON into Go structs with inferred types, nested structs and json tags.JSON to Python ClassGenerate Python dataclasses, Pydantic models or TypedDicts with type hints from JSON.JSON to C# ClassConvert JSON to C# classes or records with System.Text.Json or Newtonsoft attributes.JSON SorterSort JSON keys A-Z recursively, sort arrays by value or by a key, then pretty-print or minify.JSON to HTML TableConvert a JSON array of objects into clean HTML table code with CSS styles and a live preview.CSV to SQL ConverterConvert CSV to SQL CREATE TABLE and INSERT statements for MySQL, PostgreSQL, SQLite or SQL Server.IPv4 to IPv6 ConverterConvert IPv4 to IPv4-mapped, 6to4 and NAT64 IPv6, extract IPv4 from IPv6, and get int/hex/binary.cURL to Code ConverterConvert curl commands to JavaScript fetch, Axios, Python requests, Node.js, PHP and Go code.Code to ImageTurn code into a beautiful syntax-highlighted PNG with themes, window frame and background.Excel to JSON ConverterConvert Excel sheets (XLSX, XLS, ODS) to JSON with header row, type and shape options.CSV to Excel ConverterConvert CSV files to a real .xlsx workbook with typed numbers and dates, one sheet per file.
    See all 129 Data & File Format Converters →