How to Zip a File on a Mac

If you have a lot of old documents and files taking up space on your computer, you can compress them into an archive to save space. Mac OS X allows you to compress files directly from the operating system. You can also download third-party...
Method 1 of 4:

Use the Finder

  1. How to Zip a File on a Mac Picture 1How to Zip a File on a Mac Picture 1
    Open Finder. You can open Finder by clicking the Finder icon on the Dock. It looks like a square blue face. Once the Finder opens, navigate to the files that you want to compress.
    1. To easily compress multiple files from various locations into one .zip file, first create a new folder. Copy all of the files that you want to compress into this folder.
  2. How to Zip a File on a Mac Picture 2How to Zip a File on a Mac Picture 2
    Select your files. You can select individual files out of a list by holding the Command button and clicking on each file. Once you have the files you want selected, right-click one of the selected files. If your mouse only has one button, hold Ctrl and click the file.
    1. If you want to compress a folder containing multiple files, right-click the folder.
  3. How to Zip a File on a Mac Picture 3How to Zip a File on a Mac Picture 3
    Compress the files. Select Compress from the right-click menu. Wait for the process to complete. Depending on how many files you are compressing, this could take several minutes. The filename will be the same as the file or folder that you selected to compress.
    1. Compressing multiple files or folders will create a file named Archive.zip.
    2. Compressed files will be about 10% smaller than the original. This will vary depending on what is being compressed.
Method 2 of 4:

Use a Third-Party Program

  1. How to Zip a File on a Mac Picture 4How to Zip a File on a Mac Picture 4
    Find a compression program. There are several options available online for both free or purchase. Some compression formats, such as .rar, require proprietary software to create the archive. Others, such as .zip, can be made by nearly every compression program.
    1. Other proprietary compression methods may compress your files smaller than the standard .zip compression available through Mac OS X.
  2. How to Zip a File on a Mac Picture 5How to Zip a File on a Mac Picture 5
    Add your files. Once you've installed and opened your compression program, add the files and folders that you'd like to compress. The method varies from program to program, but you can often just drag and drop your files into the compression window.
  3. How to Zip a File on a Mac Picture 6How to Zip a File on a Mac Picture 6
    Secure your file. Many compressions allow you to add a password to your compressed file. Check the Security section, or click the File Menu and select Add Password or Encrypt.
Method 3 of 4:

Zipping one file using the Terminal

  1. How to Zip a File on a Mac Picture 7How to Zip a File on a Mac Picture 7
    Open the Terminal.
  2. How to Zip a File on a Mac Picture 8How to Zip a File on a Mac Picture 8
    Type cd, press spacebar, and drag in the folder that you want the resulting zip file to end up in. Press Return.
  3. How to Zip a File on a Mac Picture 9How to Zip a File on a Mac Picture 9
    Type zip Archive.zip and then drag in the file or folder you want to zip. You can change Archive.zip to any filename for the archive you like. Press Return.
Method 4 of 4:

Zipping multiple files using the Terminal

  1. How to Zip a File on a Mac Picture 10How to Zip a File on a Mac Picture 10
    Open the Terminal.
  2. How to Zip a File on a Mac Picture 11How to Zip a File on a Mac Picture 11
    Type cd, press spacebar, and drag in the folder that files you want to zip are in. Press Return.
  3. How to Zip a File on a Mac Picture 12How to Zip a File on a Mac Picture 12
    Type mkdir zip. Press Return.
  4. How to Zip a File on a Mac Picture 13How to Zip a File on a Mac Picture 13
    Type cp file1 zip, replacing file1 with the name of the file, including the file extension. Press Return. Repeat for each file.
    1. If there is a space in the filename, type it like this: cp file 1 zip. Make sure to use a backslash, not a forward slash.
  5. How to Zip a File on a Mac Picture 14How to Zip a File on a Mac Picture 14
    When you have finished, type ls zip and press Return. Check to see that every file you want to zip is there.
  6. How to Zip a File on a Mac Picture 15How to Zip a File on a Mac Picture 15
    Type zip -r zip zip and press Return.
4 ★ | 2 Vote