How to Zip a File — Windows, Mac, Linux, iPhone, Android (2026)

How to Zip a File — Windows, Mac, Linux, iPhone, Android (2026)
Quick Answer

Windows: select your file(s), right-click › Send to › Compressed (zipped) folder. A .zip is created instantly. Mac: right-click › Compress — done. To unzip on either platform, just double-click the .zip file. No extra software required on either OS.

Zipping a file is one of those tasks everyone needs to do at some point — sending a folder by email, reducing storage space, archiving old projects, or packaging files for a client. Yet the steps are slightly different on every platform, and the terminology can be confusing (zip vs archive vs compress vs extract).

This guide walks you through every method on every major platform in 2026 — including the built-in tools that require zero software installs, the best third-party tools for advanced features like encryption and split archives, and a clear breakdown of when to use ZIP versus other formats like RAR, 7z, and tar.gz.

2 sec
To zip via right-click on Windows or Mac
5
Platforms covered in this guide
AES-256
Encryption available with 7-Zip (free)

Platform Quick Reference

Choose your platform for the full step-by-step instructions, or scroll down for the detailed guide:

Windows Mac Linux iPhone / iPad Android

How to Zip a File on Windows

Windows 10 and Windows 11 both include a built-in ZIP tool. You do not need to install anything. For advanced features like password protection or better compression, 7-Zip (free, open-source) is the recommended upgrade.

Windows 10 & 11 — Built-In (No Software Needed)

EASIEST — Start Here

Works for: any file or folder. Creates a standard .zip file instantly. No password or split-archive support without extra tools.

  • No software required — built into every Windows installation
  • Recipient can open with no special software on Windows, Mac, iPhone, or Android
  • Right-click method unchanged from Windows 7 through Windows 11
1

Select Your File(s) or Folder

Navigate to the file or folder you want to compress in File Explorer. To select multiple files, hold Ctrl and click each one, or hold Shift to select a range. You can also click and drag to select a group.

2

Right-Click and Choose "Send to"

Right-click any selected file. In the context menu, hover over Send to. A sub-menu will appear. Click Compressed (zipped) folder. On Windows 11, you may instead see a Compress to ZIP file option directly in the context menu without needing "Send to".

3

Name Your ZIP File

A new .zip file appears in the same folder with the name highlighted for editing. Type your preferred name and press Enter. Your original files are untouched — the zip is a separate compressed copy.

Windows 11 shortcut: In Windows 11, select your files, right-click, and you will see "Compress to ZIP file" directly in the top-level context menu — no need to hover through "Send to" first.

Using PowerShell to Zip Files on Windows

If you prefer the command line or need to automate compression in a script, PowerShell makes it straightforward. Open PowerShell (Win + X › Windows PowerShell) and run:

Compress-Archive -Path "C:\Users\You\Documents\ProjectFolder" -DestinationPath "C:\Users\You\Desktop\ProjectFolder.zip"

To add files to an existing zip without overwriting it, append -Update to the command. To compress with maximum compression level, add -CompressionLevel Optimal.

Windows with 7-Zip — Best Free Tool

RECOMMENDED for Power Users

7-Zip (7-zip.org) is free, open-source, and adds right-click integration. Use it for password-protected zips, split archives, and higher compression ratios.

  • Supports ZIP, 7z, TAR, GZ, RAR (extract only), and 20+ other formats
  • AES-256 encryption built in
  • Consistently achieves 30–70% better compression than Windows built-in on many file types
1

Install 7-Zip

Download from 7-zip.org (the .exe installer for 64-bit Windows). Run the installer and click Install. After installation, 7-Zip adds itself to your right-click context menu automatically.

2

Right-Click › 7-Zip › Add to Archive

Select your file(s), right-click, hover over 7-Zip in the context menu, and click Add to archive.... The 7-Zip archive dialog opens. Set the Archive format to zip for maximum compatibility.

3

Configure Options and Click OK

Change the archive name if desired. Set the Compression level (Normal is fine for most uses; Ultra for smallest size). To add a password, enter it in the Encryption section and select AES-256 as the method. Click OK to create the archive.

WinRAR alternative: WinRAR (rarlab.com) works similarly and is free for personal use after the trial. It creates RAR files natively but can also create ZIP. If your recipients are on Windows and also have WinRAR, the .rar format gives slightly better compression than ZIP.

How to Zip a File on Mac

macOS includes a built-in Compress option in the Finder right-click menu. For password protection, you can use Terminal or install Keka (a free, well-regarded archiver for Mac).

macOS — Finder "Compress" (Built-In)

EASIEST — Start Here

Works on all modern macOS versions (Ventura, Sonoma, Sequoia). Creates a standard .zip file in seconds. No password support through this method alone.

  • Zero software required — part of Finder on every Mac
  • Compressing multiple items creates one zip called "Archive.zip"
  • Works with files, folders, or a mix of both
1

Select Your File(s) in Finder

Open Finder and navigate to the file or folder you want to compress. To select multiple items, hold Command and click each one.

2

Right-Click and Choose "Compress"

Right-click (or Control-click) your selection. In the context menu, click Compress "filename" (or Compress X Items if you selected multiple files). The .zip file appears in the same folder instantly.

3

Rename If Needed

The zip will be named after your file (e.g., Report.zip) or Archive.zip for multiple items. Click once on the name to rename it. Press Enter to confirm.

Zip with Password on Mac — Terminal Method

The built-in Compress option does not add password protection. To create a password-protected zip on Mac without extra software, use Terminal (Applications › Utilities › Terminal):

zip -e ~/Desktop/archive.zip ~/Documents/file.txt # For an entire folder: zip -er ~/Desktop/archive.zip ~/Documents/ProjectFolder/

Terminal will prompt you to enter and verify a password. The -e flag enables encryption, -r makes it recursive (includes subfolders).

Keka for Mac: Keka (keka.io) is a free, polished Mac archiver that adds a GUI for password-protected zips, 7z archives, and split archives. It integrates with Finder and is the most recommended third-party option for Mac users.

How to Zip Files on Linux

Linux distributions typically include zip and tar utilities by default. Most desktop environments also have right-click archive managers (Nautilus on GNOME, Dolphin on KDE).

Linux Terminal — zip Command

# Zip a single file zip archive.zip filename.txt # Zip an entire folder recursively zip -r archive.zip foldername/ # Zip multiple files zip archive.zip file1.txt file2.pdf image.png # Password-protected zip zip -e archive.zip filename.txt

Linux Terminal — tar Command (tar.gz)

On Linux, tar.gz (gzip-compressed tar archive) is often preferred over ZIP for its better handling of Unix file permissions and symlinks:

# Create a tar.gz archive tar -czvf archive.tar.gz foldername/ # Extract a tar.gz archive tar -xzvf archive.tar.gz

Linux Desktop (GNOME / Nautilus — Right-Click)

1

Select Files in Nautilus File Manager

Open Nautilus (Files). Select one or more files or folders. Right-click the selection.

2

Click "Compress..."

Click Compress... in the context menu. Choose your format (zip, tar.gz, 7z), enter a name, and click Create. The archive appears in the current folder.

How to Zip Files on iPhone and iPad

iOS 16 and later include native zip support in the Files app. No third-party app is required on any modern iPhone or iPad.

iPhone / iPad — Files App (iOS 16+)

NO APP NEEDED

The Files app on iPhone and iPad handles both zipping and unzipping natively since iOS 16. Works with files in iCloud Drive, On My iPhone storage, and connected cloud services.

  • Built into Files app — no App Store download needed
  • Works with multiple files and folders at once
  • Created zip is standard and openable on any platform
1

Open the Files App

Open the Files app on your iPhone or iPad. Navigate to the folder containing the files you want to zip (On My iPhone, iCloud Drive, or another cloud service).

2

Select the Files

Tap the three-dot menu (...) in the top right corner and choose Select. Tap each file or folder you want to include. Selected items show a blue checkmark.

3

Tap "Compress"

Tap the three-dot menu (...) at the bottom of the screen (with items selected). Tap Compress. A zip file named Archive.zip appears in the same folder. Tap and hold its name to rename it.

To unzip on iPhone: Tap the .zip file in the Files app. It expands automatically in the same folder, no extra steps required.

How to Zip Files on Android

Android does not have a universal built-in zip tool, but Google's Files by Google app (pre-installed on many Android phones, or free on Google Play) handles zip creation and extraction cleanly.

Android — Files by Google

FREE — Available on Play Store

Files by Google is a clean, lightweight file manager with built-in zip/unzip support. Available free on Google Play and pre-installed on many Android devices.

  • Free, no ads, developed by Google
  • Supports zip creation and extraction
  • Also works as a general file manager and storage cleaner
1

Open Files by Google

Open the Files by Google app. Tap Browse at the bottom and navigate to the folder containing your files (Internal Storage, Downloads, etc.).

2

Long-Press to Select Files

Long-press the first file or folder you want to compress. The file is selected (checkmark appears). Tap additional files to add them to the selection.

3

Tap the Three-Dot Menu › Compress

Tap the three-dot menu (...) or the More icon in the top-right corner of the screen. Tap Compress. A zip file is created in the same folder. Tap it to rename it.

To unzip on Android: Tap the .zip file in Files by Google. You will see a preview of the contents and an Extract button. Tap Extract and choose a destination folder.

Need Help with File Compression, Backup, or Data Transfer?

IT Cares handles cloud backup setup, bulk file migration, and data transfers remotely — flat rate of $59. No fix, no charge.

How to Password-Protect a Zip File

A standard ZIP file offers zero security — anyone can open it. If you are sharing sensitive documents, you need AES-256 encryption. Here is how to add a password on each platform.

Password-Protect ZIP on Windows (7-Zip)

  1. Right-click your file(s) › 7-Zip › Add to archive...
  2. Set Archive format to zip
  3. In the Encryption section, enter your password twice
  4. Set Encryption method to AES-256
  5. Click OK
Avoid ZipCrypto: Some tools default to ZipCrypto encryption, which is weak and can be broken. Always select AES-256 when the option is available.

Password-Protect ZIP on Mac (Keka or Terminal)

Using Terminal (no software needed):

zip -e ~/Desktop/secure-archive.zip ~/Documents/sensitive-file.pdf

Terminal prompts you to enter and verify a password. The zip is created with standard ZIP encryption. For AES-256 specifically on Mac, use Keka: drag your files into the Keka window, enable the password field, and click Archive.

Password-Protect ZIP on Linux (zip command)

zip -e secure-archive.zip file1.txt file2.pdf # For AES-256 (requires zip 3.0+ with AES support): zip --encrypt --password yourpassword archive.zip file.txt

How to Split a Large ZIP File

If your zip is too large to email (most providers cap attachments at 25 MB) or upload to a service, you can split it into multiple smaller chunks. The recipient extracts all parts together.

Split ZIP on Windows (7-Zip)

  1. Right-click your files › 7-Zip › Add to archive...
  2. Set Archive format to zip
  3. In the Split to volumes, bytes field, enter the size per chunk — for example 20M for 20 MB parts
  4. Click OK
  5. 7-Zip creates files named archive.zip.001, archive.zip.002, etc.

Split ZIP on Mac (Terminal)

# Split into 20 MB pieces using the split command (after zipping): zip -r archive.zip foldername/ split -b 20m archive.zip archive-part- # Recipients reassemble and extract: cat archive-part-* > archive.zip unzip archive.zip

ZIP vs RAR vs 7z vs tar.gz — Which Format to Use?

The format you choose depends on your priorities: compatibility, compression ratio, or features. Here is how the most common formats compare:

Format Opens Natively On Compression Encryption Best For
.zip Windows, Mac, iPhone, Android, Linux Good AES-256 (with 7-Zip) Universal sharing, email attachments
.7z Needs 7-Zip or compatible app Excellent AES-256 built-in Maximum compression when you control both ends
.rar Needs WinRAR / 7-Zip to extract Very Good AES-256 Multi-volume archives, recovery records
.tar.gz Mac, Linux natively; Windows needs 7-Zip Good None (add separately) Linux/Unix software packages, server backups
Bottom line: Use .zip when you are sharing with anyone and want zero compatibility hassle. Use .7z when you need the smallest possible file size and both sender and recipient can install 7-Zip. Use .tar.gz on Linux servers and for developer toolchains. Avoid creating .rar files unless you have WinRAR and your recipients do too.

Compression Tool Comparison

Tool Platform Cost Password Zip Split Archive
Windows Built-In Windows Free No No
7-Zip Windows, Linux Free Yes (AES-256) Yes
WinRAR Windows Free (trial) Yes (AES-256) Yes
Mac Finder (Compress) Mac Free No No
Keka Mac Free Yes (AES-256) Yes
Files App (iOS 16+) iPhone / iPad Free No No
Files by Google Android Free No No

Frequently Asked Questions

How big can a zip file be?

The ZIP format theoretically supports files up to 4 GB using the original specification, but the ZIP64 extension (used by 7-Zip, WinRAR, and modern Windows) removes that limit entirely — allowing archives of up to 16 exabytes. In practice, your limiting factor is available disk space. If you need to send a large zip by email or upload it to a service, use the split archive feature to break it into chunks of 10–25 MB.

ZIP vs RAR vs 7z — which is best?

ZIP is the universal choice — every operating system opens it natively, no software needed. RAR offers better compression than ZIP and supports multi-volume archives natively, but requires WinRAR to create (free to extract). 7z achieves the highest compression ratios of the three, is completely free and open-source via 7-Zip, but requires 7-Zip or a compatible app to open. For everyday sharing, use ZIP. For maximum compression of large files you control end-to-end, use 7z.

How do I password-protect a zip file?

On Windows, open 7-Zip, select your files, click Add to archive, set the Archive format to zip, enter a password in the Encryption section, and choose AES-256. On Mac, use Keka (free) or Terminal: zip -e archive.zip file.txt — you will be prompted for a password. Note that Windows built-in zip does not support password protection; you need a third-party tool like 7-Zip.

Why can't I open a zip file?

The most common reasons are: the file is corrupt (incomplete download — re-download it), it requires a password you do not have, the file extension was changed and it is not actually a zip, or it is a newer format like 7z or RAR that Windows cannot open natively. Try right-clicking and opening with a different app, or install 7-Zip (free) which supports over 30 archive formats.

How do I zip files without extra software on Windows?

Windows 10 and 11 have built-in zip support. Select the files or folders you want to compress, right-click the selection, and choose Send to › Compressed (zipped) folder. A .zip file is created instantly in the same location. You can also use PowerShell: Compress-Archive -Path 'C:\folder' -DestinationPath 'C:\archive.zip'

Are zip files secure?

An unencrypted ZIP file is not secure — anyone can open it. However, a ZIP file encrypted with AES-256 (via 7-Zip or WinRAR) is very secure — essentially unbreakable with a strong password. The older ZipCrypto encryption built into some tools is weak and should not be used for sensitive data. Always use AES-256 when security matters, and use a strong, unique password of at least 12 characters.

IT Cares — File Compression, Cloud Backup & Data Transfer

Need to migrate large file libraries, set up automated cloud backups, or recover data from a failing drive? Our certified technicians handle it remotely for a flat $59. Satisfaction guaranteed — no fix, no charge.