It’s simple to create a zip file on your Mac. Creating a password-protected zip file takes a little more effort, but it’s still relatively easy. Don’t believe me? This article will walk you through the process.
How to Zip and Unzip files
We’ll start out with how to zip or compress a file on your Mac.
- Find the file or folder you want to zip.
- Right-click the file. Most Macs don’t have a right mouse button, but you can still “right click” by holding two fingers down on your Mac trackpad, or by holding Ctrl while clicking.
- Select “Compress” (whatever the name of your file or folder is), and click your trackpad or mouse. Now the file or folder will be zipped to the location you choose.
Macs use a built-in Archive Utility, so it’s as easy as that. Your file’s zipped.
To unzip a file or folder on your Mac, double-click it with your trackpad or mouse. Or, if you want to unzip the file or folder with something other than the Archive Utility:
- Right-click on the zipped file or folder with your trackpad or mouse and scroll to “Open With.”
- Select the application you want to use to open the file.
How to Create a Password-Protected Zip File
This will require using the Terminal application on your Mac.
- First, navigate to the Terminal application by one of the following two methods:
- Use the shortcut/hotkey: Command + Space bar. (You can learn more about MacOS hotkeys and shortcuts here.) This will open the Spotlights search bar on your Mac. Type “Terminal” in Spotlight, then double-click on Terminal to open it.
- Alternatively, you can go to Finder, scroll down to “Utilities,” and then select “Terminal” from the Utilities programs folder.
- In Terminal, type: “zip -e archive_name target_folder” to encrypt a file, or “zip -er archive_name target_folder” to encrypt a folder. The “-e” or “-er” instructs your Mac to create an encrypted zip file. Replace “archive_name” with what you want your archive to be called. Replace “target_folder” with the name of the folder or file you want to archive.
- The archive utility window will pop up a field for you to enter a password. Type the password that you will use for this archive and click OK.
- You’ll verify the password you’ve chosen by typing it in again when prompted. Then click OK to complete the password-protection process.
You’re all done! Now you know how to zip or compress files on your Mac, as well as how to unzip them. And you can add a password to your zipped files that contain sensitive data or anything else you don’t want spying eyes to see.