
A ZIP file combines one or more files or folders into a single compressed archive. On a Mac, you can create a ZIP file in Finder by Control-clicking an item and choosing Compress, then open most ZIP files by double-clicking them. macOS uses the built-in Archive Utility to create and extract ZIP archives.
ZIP files are useful when you want to email several files, upload a folder, reduce the amount of storage they use, or make a group of items easier to share.
Quick Answer
To zip files or a folder on a Mac
- Open Finder and locate the files or folder.
- Select one or more items.
- Control-click the selection, or click with two fingers on a trackpad.
- Choose Compress.
- Find the new
.zipfile in the same location.
To unzip a ZIP file on a Mac
- Locate the
.zipfile in Finder. - Double-click it.
- macOS extracts the contents into a new folder in the same location.
You can also open a ZIP file by Control-clicking it and choosing Open With > Archive Utility.
What Is a ZIP File?
A ZIP file is an archive that stores one or more files and folders together. It can also compress data, which may make the archive smaller. The amount of space saved depends on the file type. Documents and uncompressed data may shrink significantly, while photos, videos, music, and other files that are already compressed may not become much smaller.
A ZIP file normally has the .zip extension. For example:
Project Documents.zip
Creating a ZIP archive does not remove or alter the original files. It creates a separate compressed copy.
How to Zip a Folder in Finder
Finder is the simplest way to compress a folder on macOS.
- Open Finder from the Dock.
- Browse to the folder you want to compress.
- Control-click the folder.
- Choose Compress from the shortcut menu.
macOS creates a ZIP file in the same location. The new archive usually uses the original folder’s name, followed by .zip.
For example, compressing a folder named Vacation Photos creates:
Vacation Photos.zip
The original Vacation Photos folder remains where it was.
Rename the ZIP file
You can rename the archive just like any other Finder item:
- Click the ZIP file once.
- Press Return, or Control-click it and choose Rename.
- Enter a new name.
- Press Return again.
Avoid changing the .zip extension unless you know why you are doing so. If Finder does not show the extension, the archive can still function normally.
How to Zip Multiple Files on a Mac
You can compress several files together without placing them in a folder first.
- Open Finder and go to the location containing the files.
- Select the items you want to include:
– Hold Command while clicking individual files.
– Hold Shift to select a range of adjacent items.
– Press Command-A to select everything in the current folder. - Control-click one of the selected items.
- Choose Compress.
If you select multiple items, macOS creates an archive named something similar to:
Archive.zip
You can rename it afterward.
Check what the ZIP contains
Before sending an archive, double-click it to extract a copy and verify that it contains the intended files. This is particularly useful when the selection includes many items or files from different locations.
How to Unzip Files on a Mac
The standard way to extract a ZIP file is to double-click it in Finder.
- Open Finder.
- Locate the ZIP file.
- Double-click the archive.
- Wait while macOS extracts its contents.
Archive Utility normally creates a new folder beside the ZIP file. The extracted files are placed inside that folder, and the original ZIP file remains intact.
Depending on how the archive was created, macOS may extract a single file directly rather than creating a separate folder.
Open a ZIP file with Archive Utility
If double-clicking does not work as expected, open the archive through the built-in utility:
- Control-click the ZIP file.
- Choose Open With.
- Select Archive Utility.
Archive Utility is a macOS system app that handles common archive formats, including ZIP files. You may not see it in the Dock or Applications folder because macOS generally launches it when needed.
How to Extract a ZIP File to a Different Location
By default, macOS extracts a ZIP archive next to the original file. If you want the contents somewhere else:
- Double-click the ZIP file to extract it.
- Select the newly extracted folder or files.
- Drag them to another Finder location.
Alternatively, you can move the ZIP file to the desired folder before opening it. Archive Utility will generally place the extracted contents beside the archive.
Moving the extracted files does not delete the original ZIP file. If you no longer need the archive, move it to the Trash manually.
How to Create a Password-Protected ZIP File
Finder’s Compress command does not provide a password field. To create a password-protected ZIP archive, use Terminal, which is included with macOS.
Before using Terminal, make sure you understand where the archive will be created and which files it will contain. A password-protected ZIP file is only useful if the password is strong and shared securely. Do not put the password in the same email or message as the archive.
Create a password-protected ZIP archive in Terminal
- Open Terminal using one of these methods:
– Open Applications > Utilities > Terminal.
– Press Command-Space, typeTerminal, and press Return. - Type
zip -e, followed by a space. Do not press Return yet. - Drag the file or folder from Finder into the Terminal window. macOS inserts its full path.
- Type a space, then enter the name and location for the ZIP file.
- Press Return.
- Enter a password when prompted, then press Return.
- Enter the password again to confirm it.
A general example looks like this:
zip -e -r ~/Desktop/PrivateFiles.zip "/path/to/Folder"
What the options mean:
zipstarts the ZIP archive command.-eencrypts the archive with a password.-rincludes the contents of a folder and its subfolders.~/Desktop/PrivateFiles.zipis the archive’s destination and name."/path/to/Folder"is the file or folder being compressed.
The password will not appear on screen while you type. This is normal.
If you are compressing one file rather than a folder, you can omit -r:
zip -e ~/Desktop/PrivateFile.zip "/path/to/file"
Important password-protection limitations
Password-protected ZIP files are not a replacement for a dedicated encrypted disk image or secure file-sharing service. ZIP encryption methods can vary, and some archive tools may handle them differently. Also, a password does not protect the original uncompressed files, any extracted copies, or a copy of the archive that someone already has.
To test the archive, double-click it and enter the password when macOS requests it. Keep the original files until you confirm that the protected archive works.
How to Open a Password-Protected ZIP File
To extract a password-protected archive:
- Double-click the ZIP file in Finder.
- Enter the archive password when prompted.
- Choose where to save or extract the files if macOS presents a location prompt.
- Open the extracted files from Finder.
If the password is incorrect, extraction will fail. ZIP passwords generally cannot be recovered through Finder or Archive Utility. You will need the correct password from the person who created the archive.
Archive Utility Settings and Behavior
Archive Utility works in the background when Finder creates or opens a ZIP file. You can open it directly from Applications > Utilities, but its most useful controls are available through its settings.
To view its settings:
- Open Finder.
- Select Applications > Utilities.
- Open Archive Utility.
- In the menu bar, choose Archive Utility > Settings.
Available options can vary by macOS version. Settings may include where extracted files are saved and what happens to the archive after extraction. Read each option carefully before changing it.
A setting that automatically moves or deletes an archive after extraction can affect your files. If you change such an option, confirm that you have a backup or another copy of any archive you want to keep.
Common Problems When Zipping or Unzipping Files
Double-clicking the ZIP file does nothing
Try opening it explicitly:
- Control-click the archive.
- Choose Open With > Archive Utility.
If that fails, the file may be incomplete, damaged, or not a standard ZIP archive. Download it again if it came from the internet or was sent as an attachment.
macOS says the archive is damaged
An archive can be damaged if a download was interrupted, a file transfer failed, or the ZIP was created incorrectly. Delete the incomplete copy only if you can download or obtain it again, then get a fresh copy from the original source.
Do not assume that changing the file extension will repair it. Renaming a non-ZIP file to .zip does not turn it into a valid archive.
The password does not work
Check for:
- Uppercase and lowercase letters.
- Spaces before or after the password.
- The difference between similar characters, such as
0andO. - Whether the sender provided a separate password.
- Whether the archive was created with a different encryption method.
If you still cannot open it, ask the sender to confirm the password or create a new archive.
Some files are missing after extraction
The archive may not have included every file originally intended for it. Ask the creator to check the archive’s contents and send a new copy if necessary.
Also check whether the extracted files are inside a nested folder. Search the extracted location in Finder if you do not immediately see them.
The extracted files have strange names or extra folders
Some ZIP archives are created on other operating systems and may include hidden metadata folders or file names with characters that macOS displays differently. These extra items can usually be ignored. Do not delete anything from the original archive; delete unwanted extracted items only after confirming they are not needed.
The ZIP file is not much smaller
Compression does not reduce every file equally. JPEG images, MP4 videos, many PDFs, and other compressed formats may show little or no size reduction. The main advantage may be combining several items into one file rather than saving storage space.
The archive is too large to send
A ZIP file can still be larger than an email service’s attachment limit. In that case, use a file-sharing service, cloud storage, or another transfer method that supports the archive’s size. Compressing the file again usually will not help and can create unnecessary nested archives.
Should You Keep the Original Files?
Yes, until you verify the ZIP archive or extracted files.
Creating a ZIP file normally leaves the source files unchanged. After you confirm that the archive opens and contains everything you need, you can delete or move the original files if appropriate. Before deleting anything, make sure you have another reliable copy if the files are important.
Warning: Moving files to the Trash is not the same as securely preserving a backup. If you empty the Trash, recovering deleted files may be difficult or impossible.
Frequently Asked Questions
Does zipping a folder delete the original folder?
No. Finder’s Compress command creates a ZIP archive and leaves the original folder in place.
Can I zip files on a Mac without installing an app?
Yes. Finder and Archive Utility handle standard ZIP files without additional software.
Where does macOS put the ZIP file?
Finder creates the ZIP file in the same folder or location as the selected files. You can move or rename it afterward.
Where does macOS put extracted files?
By default, Archive Utility places the extracted contents beside the original ZIP file. Its behavior may be affected by settings in Archive Utility > Settings.
Can I open a ZIP file on an iPhone or Windows PC?
Usually, yes. ZIP is a widely supported archive format, although password-protected archives and unusual compression methods may not work identically in every app.
Does a ZIP file protect my files?
A regular ZIP file is not private or secure. Anyone who receives it may be able to open it. If you need protection, create a password-protected archive and share the password separately.
Can I add more files to an existing ZIP file in Finder?
Finder does not provide a direct command for adding individual files to an existing ZIP archive. Extract the archive, add the files to the extracted folder, and create a new ZIP archive. This preserves the original archive while you create the updated version.
Can I unzip a file without opening it?
Archive Utility must process the archive to extract its contents, but you do not need to open every extracted file. Double-clicking the ZIP starts extraction; it does not automatically launch the documents inside.
Final Thoughts
Finder provides the quickest way to zip files on a Mac: select the items, Control-click, and choose Compress. To unzip an archive, double-click it and let Archive Utility extract the contents. For sensitive files, Terminal can create a password-protected ZIP archive, but keep the password separate and verify the archive before deleting the original files.