To compress files on a Mac, select them in the Finder, Control-click and choose Compress. You get a .zip file, and double-clicking it unzips it again.
The quick answer
| Goal | Method | Result |
|---|---|---|
| Send or archive files | Finder: Control-click > Compress | A .zip copy; the original stays |
| Free up space | Zip, test the zip, trash the original | Space back once the Trash is emptied |
| Lock files with a password | An encrypted disk image in Disk Utility, or zip -e in Terminal |
A disk image that opens on a Mac, or a locked .zip |
| Make a PDF smaller | Preview > File > Export | A smaller PDF, maybe at lower quality |
| Make a video smaller | QuickTime Player > File > Export As | A new .mov at the resolution you pick |
| Keep files usable but smaller | macOS’s own file compression, by a Terminal copy | A compressed copy that needs no unzipping |
| Keep files usable but smaller | Disk Whisk Compress | Same files in place; estimates and Uncompress free, compressing is Pro |
Each method below is marked Safe (makes a new file, original untouched), Check first (replaces, removes or locks something) or Leave alone (won’t help, or macOS already does it).
How to zip a file on a Mac
Safe. Apple’s steps to zip and unzip are the same on macOS Sequoia 15, Tahoe 26 and macOS 27.
- In a Finder window or on the desktop, Control-click the file or folder.
- Choose Compress.
The .zip takes the item’s name; look for it beside the original.
Several items? Select them all, Control-click one and choose Compress. You get one file named Archive.zip, which you can rename.
To unzip, double-click the .zip. The item appears in the same folder, and the .zip stays until you delete it.
If a zip won’t open, or Compress fails
- A zip won’t open. Apple suggests two checks: make sure there’s enough free space for the unzipped item, and if someone sent it, ask them to zip it and send it again.
- Compress fails. Check the item’s permissions. Select it, choose File > Get Info, open Sharing & Permissions, and make sure your user name has Read & Write or Read only.
- An extra
__MACOSXfolder. People who open your zip on another system may see it. It’s where Finder-style zips keep Mac-only file details.
A zip is a copy, not a smaller original
Check first, before you delete anything. Apple presents compressing as a way to back up or send your files. The zip is a new file and the original stays, so for now you’re using more space, not less.
To use a zip again you unzip it first, so this suits things you’re finished with.
- Compress the folder.
- Test the zip (see the Terminal check below). For files you can’t replace, also unzip it in another folder and look through it.
- Move the original folder to the Trash.
Prefer Terminal? Test a zip before you delete
unzip -t ~/Documents/Reports.zip
This reads every file in the zip and checks it against the checksum stored with it. It changes nothing. On macOS Tahoe 26.6, a pass ends with a line saying no errors were detected. That shows the zip can be read back, not that everything is in it.

What shrinks, and what barely does
How much smaller a zip gets depends on what’s in it.
- Text shrinks well. Typically to a half or a third of its size.
- Photos, video and music barely shrink. Leave alone. They often have their own compression already.
- Word, Excel and PowerPoint files barely shrink. Leave alone. Their formats already use zip compression.
- A zip inside a zip doesn’t shrink.
So a zipped folder of videos comes out close to the size you started with: handy for sending, no help for space. If big media is the problem, find your largest files and decide what to move or delete.
Why some files don’t shrink
- The zip manual puts typical compression for text at 2:1 to 3:1, and notes that image and sound files often have their own compression already.
- Apple describes HEIF and HEVC, formats an iPhone 7 or later can capture in, as compressing better than JPEG and H.264, which are compressed formats too.
- Microsoft says the .docx, .xlsx and .pptx formats already use zip compression.
- By default,
zipstores files ending in .zip, and a few older archive types, without trying to compress them. - For each file,
zippicks whichever is better: compressing it or storing it as it is.

How to password protect a zip file on a Mac
Compress has no documented password option. Use one of two other built-in tools.
Option 1: an encrypted disk image, in Disk Utility
Check first. A disk image is a file that holds other files and folders. Disk Utility can encrypt and compress one as it makes it. This is Apple’s suggestion for confidential documents.
- Put what you want to protect in one folder.
- Open Disk Utility and choose File > New Image > Image from Folder.
- Select the folder and click Open.
- Name the image and choose where to save it.
- Click the Encryption pop-up menu and choose an option. Enter the password twice, then click Choose.
- Click the Image Format pop-up menu and choose Read-only Compressed (ULFO). On macOS Sequoia 15 it’s named Compressed.
- Click Save, then Done.
The image opens on your desktop. Eject it when you’re finished, because anyone using your Mac can read the files while it’s open.
Disk image limits
- Opening it again. Double-click the image file.
- It’s read-only. A compressed image can’t be changed after it’s made.
- It’s a Mac format. Apple’s guide covers opening it on a Mac. The
hdiutilmanual lists ULFO as needing OS X 10.11 or later, and the encryption choices as AES with a 128-bit or 256-bit key.
Option 2: a password-protected zip, in Terminal
Check first. This makes a zip anyone can open with the password. The zip manual calls its encryption “relatively weak,” so use a disk image where security truly matters.
Make a password-protected zip
cd ~/Documents
zip -er Private.zip Private
The first line moves to the folder that holds the item, here Documents. The second makes Private.zip from the folder named Private. -r includes everything inside it. -e asks for a password twice and encrypts the contents; nothing shows as you type. The original folder stays. If a name has spaces, put it in quotes, as in "Tax 2025".
To add a password to a zip you already have, use zipcloak. With -O it writes a new, locked zip and leaves the original as it is. Its manual says it doesn’t yet support files or archives over 2 GB.
zipcloak -O ~/Desktop/Locked.zip ~/Desktop/Archive.zip
To open the zip, unzip Private.zip asks for the password, then unzips into the folder you’re in and asks before it overwrites anything. Archive Utility, the built-in app that expands archives, also has a password prompt on macOS Tahoe 26.6. We didn’t test it with a zip made this way.
- Names may show. The manual says
-eencrypts the contents. It doesn’t say file names are hidden, so keep anything sensitive out of them. - Don’t use
-P. It puts the password in the command itself, which the manual calls insecure.
How to compress a PDF on a Mac
Check first. Unlike a zip, this changes the document. Apple notes the smaller PDF may be lower quality than the original.
On macOS Tahoe 26 and macOS 27:
- Open the PDF in Preview.
- Choose File > Export.
- In the Quartz Filter pop-up menu, choose Reduce File Size.
- Type a new name in the Export As field, then click Save.
More control, and macOS Sequoia 15
Apple’s second method uses two checkboxes in the same dialog instead: “Optimize images for screen” and “Save images as JPEG.” On macOS Sequoia 15, Apple’s guide lists those two checkboxes and not the filter. Both act on the images in the PDF.
How to compress a video on a Mac
Safe. QuickTime Player exports a copy at the resolution you pick. The steps are the same on macOS Sequoia 15, Tahoe 26 and macOS 27.
- Open the video in QuickTime Player.
- Choose File > Export As, then a resolution: 4K, 1080p, 720p or 480p. Resolutions larger than the movie’s own are dimmed.
- For 4K or 1080p, click the Format pop-up menu and choose Smaller File Size, which exports in HEVC. Greater Compatibility exports in H.264.
- Name the file, choose where to save it, and click Save.
What to expect:
- No promised size. Apple says the result depends on the original. Compare the two files before you delete anything.
- A .mov file. QuickTime Player doesn’t export MP4.
- HEVC needs newer devices. Viewing it fully takes iOS 11 or macOS High Sierra 10.13 or later.
For Final Cut or Premiere projects, see what creators can delete on a Mac.
How to make files smaller on a Mac without zipping them
macOS has a second kind of compression. It can store a file compressed, in place. The file keeps its name, place and contents, opens the usual way and never needs unzipping. macOS uses this on many of its own files.
Check first. We found no Finder command for this in Apple’s guides. One built-in tool that does it is a Terminal command, ditto, and it makes a compressed copy rather than shrinking a file where it sits. Start with a folder you have backed up, of your own files that you open but rarely change.
Prefer Terminal? Make a compressed copy of a folder
- Copy the folder with the command below, to a folder name that doesn’t exist yet.
- Compare the two folders with the
dulines further down, and open a few files from the copy. - When you’re happy, move the original folder to the Trash and rename the copy. You can put the original back until the Trash is emptied. After that it’s gone for good.
ditto --hfsCompression ~/Documents/Archive ~/Documents/Archive-compressed
ditto stores each copied file compressed when it judges that worthwhile. If the destination already exists, it merges into it and overwrites files already there, so the name must be new.
To reverse it, macOS Tahoe 26.6 includes afscexpand. It makes no copy: it decompresses the files where they sit. Use the folder’s current name.
afscexpand ~/Documents/Archive-compressed
Check whether a file is stored compressed
These commands only read.
ls -lO /bin/ls
-O adds a column of file flags. On macOS Tahoe 26.6 it reads restricted,compressed for this file. A file with no flags shows a hyphen. To check a file of your own, type ls -lO and a space, drag the file into the Terminal window to fill in its path, then press Return.
du -sh ~/Documents/Archive
du -sAh ~/Documents/Archive
The first line shows the space a folder takes on disk. The second, with -A, shows its apparent size, which the du manual suggests for compressed volumes. If the first number is clearly smaller, ls -lO tells you whether compression is the reason.
Limits, and how we tested it
- Apple didn’t build the option for your documents. The
dittomanual says it’s meant only for installation and backup scenarios that involve system files. - It needs an HFS+ or APFS volume. APFS is the disk format modern Macs use, and the default on Macs running macOS 10.13 or later. The manual doesn’t mention MS-DOS (FAT) or ExFAT, the Windows-compatible formats. See formatting an external drive.
- You can’t switch it on by hand. Apple’s system manual lists a file flag named
UF_COMPRESSED, a file compressed at the file system level. It calls the flag internal, says programs can’t set or clear it themselves, and calls the result of trying undefined. So don’t usechflagsfor this. - Edited files may not stay compressed. In Apple’s published source for the older HFS+ file system, a compressed file turns back into an ordinary one when it’s opened for writing. We found no Apple source that says the same of APFS, but on an APFS volume on macOS Tahoe 26.6, a compressed test file lost the flag as soon as text was added. Check a file with
ls -lOafter you change it. - You need room for the copy, and not every file shrinks. Both folders take space until the original is gone, and
dittodecides which files to compress. Measure the result. - How we tested it. The
afscexpandmanual speaks of HFS+ compression and doesn’t mention APFS. We ran both commands on a test folder on an APFS volume on macOS Tahoe 26.6: a text file was stored compressed, a file of random data wasn’t, the copies matched the originals, andafscexpandreversed it. On that version thelscommand itself is stored compressed and runs like any other program. - Leave alone: apps and system folders. On macOS Tahoe 26.6, many of macOS’s own programs are already stored this way, and by default nothing can write to the system part of the disk. We found no Apple-documented way to swap a hand-made copy in for an installed app.
What not to do
- Don’t delete originals before you’ve tested the zip. Test it first.
- Don’t trust a zip password with anything that matters. Apple’s suggestion for confidential documents is an encrypted disk image.
- Don’t paste
sudocommands that promise to compress your whole disk.sudoruns a command as root, past the checks that normally stop you.
If the real goal is a less full disk, start with how to free up space on a Mac, or check what’s using your storage first.
Sources and how we checked
Steps were checked against Apple’s guides for macOS Sequoia 15, macOS Tahoe 26 and macOS 27, and Terminal commands against the manuals (man ditto, man unzip, man zip, man zipcloak, man ls, man afscexpand) on macOS Tahoe 26.6.
- Zipping and unzipping in the Finder: Apple Mac User Guide
- If Compress fails: Apple Mac User Guide
- Trash, Put Back and permanent deletion: Apple Mac User Guide
- Text compression ratios and media files: Apple’s copy of the zip manual
- HEIF and HEVC, and the devices that can view HEVC: Apple Support
- Office formats already use zip compression: Microsoft
- Encrypted, compressed disk images: Disk Utility User Guide, and the macOS Sequoia 15 version
- Making a PDF smaller: Preview User Guide, and the macOS Sequoia 15 version
- Exporting video: QuickTime Player User Guide
- The
UF_COMPRESSEDflag: Apple’s chflags manual - Dragging a file into Terminal: Terminal User Guide
- Apparent size with
du -A: Apple’s du manual - APFS as the default from macOS 10.13: Disk Utility User Guide
- Compressed files turning ordinary on write, in HFS+: Apple’s HFS source
- No process can write to the system volume by default: Apple Platform Security
