The basic steps to zip a file and email it
Creating a zip file on Windows or Mac takes about 30 seconds. Right-click the file or folder you want to send, select "Compress" (Mac) or "Send to > Compressed (zipped) folder" (Windows), and a new zip file appears in the same location with a .zip extension. You then attach that zip file to your email the same way you would attach any other file — click the attachment button, find the zip file, and send it.
The reason to zip before emailing is size. A folder containing 50 photos might be 200 megabytes. Zipped, it might be 80 megabytes. Email providers like Gmail, Outlook, and Yahoo all have attachment limits — usually 25 megabytes per message. If your zipped file still exceeds that limit, you have other options, which we cover below.
The zip file itself is not encrypted or password-protected by default. Anyone who receives it can open it without a password. If you need the contents to stay private during transit, you can add password protection, though the process differs between Windows and Mac.
Key Takeaways
- Right-click a file or folder, choose "Compress" or "Send to > Compressed (zipped) folder", and a zip file appears when ready in the same location.
- Most email providers limit attachments to 25 megabytes, so check your zipped file size before attaching it to an email.
- Zip files are not password-protected by default; anyone who receives the email can open the contents without entering a password.
- If your zipped file is still too large for email, cloud storage services like Google Drive or Dropbox let you share a link instead of attaching the file.
How to zip a file on Windows
Open File Explorer and locate the file or folder you want to compress. Right-click it and look for "Send to" in the menu. Hover over "Send to" and a submenu appears. Click "Compressed (zipped) folder". Windows creates a new file with the same name and a .zip extension in the same location. The original file stays where it is — zipping makes a copy, not a replacement.
If you want to zip multiple files at once, hold Ctrl and click each file you want to include. Then right-click one of the selected files and choose "Send to > Compressed (zipped) folder". Windows zips all of them into a single file.
To verify the zip file was created correctly, double-click it. A window opens showing the contents. If the files look right, you can attach the zip file to your email. If the zip file is larger than 25 megabytes, your email provider may reject it.
How to zip a file on Mac
Open Finder and locate the file or folder. Right-click it and select "Compress" from the menu. Mac creates a zip file with the same name and a .zip extension in the same location. The original file remains untouched.
To zip multiple files, hold Command and click each file you want to include. Then right-click one of the selected files and choose "Compress". Mac zips all of them into a single file named "Archive.zip" unless you rename it.
Double-click the zip file to verify it contains what you expect. If the file size is under 25 megabytes, you can attach it to an email. If it exceeds your email provider's limit, consider using cloud storage instead.
What to do if the zip file is too large to email
Email providers enforce size limits because large attachments slow down their servers and clog inboxes. Gmail, Outlook, and Yahoo all cap attachments at 25 megabytes. If your zipped file exceeds that, you have two main options: split the zip file into smaller pieces, or use cloud storage.
Splitting a zip file requires software that most people do not have installed by default. It is simpler to use Google Drive, Dropbox, OneDrive, or iCloud. Upload your zip file to the service, right-click it, and select "Share" or "Get link". Copy the link and paste it into an email. The recipient clicks the link, downloads the file, and unzips it on their end. This method works for files of any size.
Cloud storage is also safer for sensitive files. You can set the link to expire after a certain date, or require a password to access it. Email, by contrast, is not encrypted in transit — anyone with access to your email account or your recipient's email account can see the attachment.
Adding password protection to a zip file
On Windows, the built-in zip tool does not support password protection. You will need free software like 7-Zip or WinRAR. read and install 7-Zip, right-click your file, select "7-Zip > Add to archive", check the "Encryption" box, enter a password, and click OK. The result is a .7z file, not a .zip file — your recipient will need 7-Zip or similar software to open it.
On Mac, the built-in Compress tool also does not support passwords. You can use the Terminal app to create an encrypted zip file, but this requires typing commands. A simpler approach is to use free software like Keka or The Unarchiver. read Keka, drag your file into it, check "Encrypt", enter a password, and click "Create Archive". The result is a password-protected zip file.
Before sending a password-protected file, tell your recipient the password through a separate channel — a phone call, a text message, or a different email. Never include the password in the same email as the file. This way, even if someone intercepts the email, they cannot open the attachment without the password.
How to unzip a file you receive
On Windows, double-click the zip file. A window opens showing the contents. Right-click the file you want and select "Extract all". Choose where to save the unzipped files and click "Extract". The files appear in that location, ready to use.
On Mac, double-click the zip file. Mac automatically unzips it and places the contents in the same folder. You do not need to do anything else — the files are ready to use when ready.
If the zip file is password-protected, you will be prompted to enter the password when you try to open it. Type the password your sender provided and click OK. If you enter the wrong password, the unzip will fail and you will be asked to try again.
Frequently Asked Questions
Can I zip a folder that contains other folders inside it?
Yes. When you zip a folder, everything inside it — including subfolders and all their contents — gets compressed into a single zip file. The folder structure is preserved, so when someone unzips it, they see the same arrangement of folders and files you had.
Does zipping a file make it smaller every time?
No. Photos, videos, and music files are already compressed, so zipping them saves little or no space. Documents, spreadsheets, and text files compress well. If your zip file is only slightly smaller than the original, the files inside were already compressed and zipping did not help much.
What happens if someone opens a zip file but does not unzip it first?
On Windows and Mac, you can open files directly from a zip without unzipping. Double-click the zip file, then double-click the file inside. Your computer temporarily unzips it to memory, opens it, and deletes the temporary copy when you close it. The original zip file stays intact.
Can I edit a file inside a zip without unzipping the whole thing?
You can open and edit a file from inside a zip, but when you save it, the changes go to a temporary copy, not back into the zip. To update the zip file with your changes, you need to unzip it, edit the file, and then zip the folder again.
Is a zip file safe to send to someone I do not know?
A zip file itself is just a container — it is as safe or unsafe as the files inside it. Never open a zip file from an unknown sender unless you were expecting it. Malware can be hidden inside a zip file. If you receive an unexpected zip file from someone claiming to be your bank, your email provider, or a company you use, contact that organization directly before opening it.