How to zip and unzip a file on Mac

Zipping a file and unzipping files on Mac is a common task when we want to send or receive many files from someone. Of course, Mac also has this feature, but it has not met users’ needs. Problems with the default Zip feature on Mac that you may encounter when you first buy a Macbook are:

  • Failure to decompress the zip file.
  • I cannot add a password for the Zip file on Mac.
  • Zip files from Mac containing hidden files __MACOSX and .DS_Store.

So Lucid Gen will show you how to zip a file on Mac cleanly and unzip files on Mac without errors.

How to unzip files on Mac

Use the built-in unzip files feature on Mac

Normally you can use the zip file extraction feature on Mac available in two ways:

  1. Double-click the Zip file to extract it.
  2. Right-click the Zip file > Open with > Archive Utility.
Use the built-in unzip files feature on Mac
Use the built-in unzip files feature on Mac

But if you get an error that you cannot decompress Zip files on Mac, you must use another application to unzip files on Mac.

Error when unzipping files on Mac
Error when unzipping files on Mac

Use the application to unzip files on Mac

Not only with Zip files, but we also need an application that can extract all types of files on the computer. Lucid Gen has tried many applications on the App Store and selected The Unarchiver as the most useful application for the following reasons:

  • Not from China.
  • Completely free and does not insert ads or invite Pro upgrades at all.
  • Decompress compressed files.
  • Simple to use.
Use the application to unzip files on Mac
Use the application to unzip files on Mac

After downloading The Unarchiver, you must right-click on the Zip file > Open With > The Unarchiver.

Unzip a file on Mac with The Unarchiver
Unzip a file on Mac with The Unarchiver

Using The Unarchiver, you can decompress many types of files without errors like Mac’s Archive Utility.

How to zip a file on Mac

Use the built-in zip file feature on Mac

To zip a file on Mac, select one or more files > right click on the file > Compress.

Use the built-in zip file feature on Mac
Use the built-in zip file feature on Mac

The problem arises that this zip file contains the default Mac hidden files such as __MACOSX and .DS_Store. If you unzip files on Mac, you won’t see them, but other operating systems like Windows or Linux will see these files.

Hidden files __MACOSX and .DS_Store in Macbook Zip
Hidden files __MACOSX and .DS_Store in Macbook Zip

This is confusing or annoying for people who unzip your files. So you need to do the following steps to delete __MACOSX and .DS_Store in your Zip file.

Step 1: Copy the path of your zip file. There are two ways:

  1. Select the Zip file > Command + Option + C.
  2. Turn on showing the path bar (Command + Option + P) > right click on the zip file on the path > select Copy as Pathname.
Copy Zip file path on Mac
Copy Zip file path on Mac

Step 2: Run the command to delete hidden files in Zip file on Mac. Replace the path of your zip file in the place /Users/username/Folder/File.zip in the code below > Paste the completed code into Terminal (Command + Space + find Terminal) > Enter.

zip -d "/Users/username/Folder/File.zip" "__MACOSX*" "*.DS_Store"
Delete hidden files in Zip file on Mac
Delete hidden files in Zip file on Mac

So when you send Zip files to users of other operating systems, they will not see hidden files on Mac when you unzip them.

Use the app to zip a file on Mac

If you often zip a file on Mac, the above method is inconvenient; every time you zip a file, you must run the code to delete the hidden file. So Lucid Gen will introduce you to a very compact and powerful application for compressing files on Mac, which is Archiver. And here are the information and advantages that Lucid Gen has selected:

  • The app costs $20, but it’s free to download at Lucid Gen.
  • The interface is simple, easy to use, and without complicated settings; drag and drop.
  • Automatically remove hidden files on Mac when compressed.

Step 1: Install Archiver. You open the dmg file > drag and drop the Archiver icon into the Applications section. If you can’t install it, turn off Gatekeeper.

Install Archiver for powerful compression and decompression on Mac
Install Archiver for powerful compression and decompression on Mac

Step 2: Compress Zip files on Mac with Archiver. You open the Archiver > drag and drop the files and folders to be compressed into the Archiver.

Drag and drop to zip a file on Mac using Archiver
Drag and drop to zip a file on Mac using Archiver

You click the Archive button in the upper right corner > select the format to compress, for example, Zip > name the file > enable Encrypt if you want to add a password > click the Archive button to zip a file on Mac.

Select archive type and set archive password on Mac
Select archive type and set archive password on Mac

Archiver is also capable of decompressing all files. You must right-click on the compressed file > Open With > Archiver like the decompression methods introduced above.

Unzip a file on Mac with Archiver
Unzip a file on Mac with Archiver

Conclusion

With this article, Lucid Gen believes that you have a perfect and clean way to compress and unzip files on Mac. Regarding the two applications that Lucid Gen has introduced, you can choose according to your needs: choose Archiver if you often compress files to send to others, choose The Unarchiver if you usually decompress but rarely zip. a file on Mac.

If you found this article valuable and helpful, please leave a comment below to share your feelings with Lucid Gen.

Related articles

Hieu Tran Ngoc Minh

Hieu Tran Ngoc Minh

I am currently working as a Data Analyst; before that, I worked in Digital Marketing. Blogging is a joy, helping me share my knowledge and experiences from life and work. You can donate to me here.

Leave a Comment

Feel free to leave your comment, and we will review and respond as soon as possible. Please use a real email to ensure your comment is approved and to receive notifications when we reply. You can also add an avatar to your email.