How to Compress Files for Email Attachments

Oleh FileConvertLab

Diterbitkan: | Diperbarui:

Compress files for email: measured ZIP savings per file type and the real attachment budget after Base64 encoding
Diagram showing a 25 MB email limit shrinking to about 18 MB of files after Base64 encoding, next to bars of measured ZIP savings for CSV, BMP, PDF, DOCX, JPG and MP4

To send files that are too big for email, zip them into one archive and check the size against a realistic limit. Most providers cap a message at 20–25 MB, and attachments grow by about a third in transit. That leaves roughly 15–18 MB of actual files. Zipping helps a lot with text, spreadsheets exported as CSV and uncompressed images. It does almost nothing for photos, videos, PDFs and Office files, and those need a different fix, covered below.

Email Attachment Size Limits by Provider

ProviderLimit per messageWhat happens above it
Gmail25 MB to send, 50 MB to receiveGmail offers a Google Drive link instead
Outlook.com / Hotmail25 MB including the message textShare a OneDrive link
Outlook desktop app with a POP/IMAP account20 MB by defaultDepends on your mail server
Yahoo Mail25 MBShare a cloud link
iCloud Mail20 MBMail Drop sends up to 5 GB as a link
Work and school mailboxesSet by the administratorAsk IT, or use a link

Sources: the providers' own help pages (Google, Microsoft, Yahoo, Apple). The recipient's limit counts too. A 24 MB Gmail message bounces off a 20 MB server.

Why a 20 MB file fails a 25 MB limit

Email turns attachments into text (Base64 encoding) before sending. We encoded a 10,000,000-byte file the way mail programs do and got 13,509,081 bytes, 35% bigger. Under a 25 MB cap, that means your files should total about 18 MB. Under 20 MB caps, about 14 MB. Aim for 15 MB or less and you'll rarely bounce.

What Zipping Actually Saves

We zipped typical email attachments and measured the result:

FilesBeforeAfter ZIPSaved
CSV export, 150,000 rows7.84 MB2.18 MB72%
Screenshot saved as BMP5.82 MB0.03 MB99%
20 PDFs19.14 MB17.45 MB9%
20 Word documents (DOCX)3.14 MB2.89 MB8%
Phone photo (JPG)2.71 MB2.69 MBunder 1%
MP4 video10.85 MB10.84 MBunder 1%

The pattern: files that are already compressed don't shrink again. DOCX, XLSX and PPTX are ZIP archives internally. JPG, MP4 and MP3 are compressed by design, and most PDFs compress their contents too. Zipping them still bundles many files into one attachment, which is useful, but it won't get you under a limit.

Compression level barely matters either. On a 14.3 MB mixed folder, the default ZIP level gave 7.83 MB, maximum (level 9) 7.82 MB, and 7-Zip's Ultra ZIP setting 7.75 MB. That's about a 1% difference, not worth installing anything for.

How to Zip Files on Windows

  1. Select the files or the folder in File Explorer.
  2. Right-click → Compress to → ZIP File (Windows 11 24H2 and later), Compress to ZIP file (earlier Windows 11), or Send to → Compressed (zipped) folder (Windows 10).
  3. Rename the new .zip if you like, then attach it.

To check the size before attaching, select the ZIP and look at the status bar, or right-click → Properties.

How to Zip Files on Mac

  1. Select the files or folder in Finder.
  2. Right-click (Control-click) → Compress.
  3. One folder becomes FolderName.zip; several files become Archive.zip.

Press Command-I on the ZIP to see its exact size. macOS ZIPs open fine on Windows. The recipient may see an extra __MACOSX folder, which they can ignore.

ZIP or 7Z for Email?

ZIP. Every computer and phone opens it without extra software, while a 7Z makes the recipient find an app first. 7Z saves real space only on text-heavy files (the measured numbers are in 7Z vs ZIP). It won't rescue the photos and PDFs that usually blow the limit. If someone emails you a 7Z you can't open, our 7Z to ZIP converter turns it into a regular ZIP.

Compress Large Files for Email Before Zipping

When zipping doesn't help, shrink the files themselves:

  • PDFs: a PDF compressor re-encodes the images inside, which ZIP can't do. Scanned and image-heavy PDFs shrink the most; text-only PDFs are usually small already. Lower the quality slider step by step until the file fits
  • Photos: compress images at around 75% quality, or send smaller dimensions. A phone photo rarely needs its full resolution in an email. Compression also strips location data (EXIF/GPS), which is a good idea before sending photos to strangers
  • Office files full of pictures: export to PDF and compress the PDF
  • Video: email is the wrong channel for all but the shortest clips. Video compression helps, but a link is usually the better answer

Then zip the smaller files together if you want a single attachment.

When the ZIP Is Still Too Large

Send a link instead of an attachment:

  • Gmail: attach anything over 25 MB and Gmail uploads it to Google Drive and inserts a link. Check the sharing setting so the recipient can open it
  • Outlook.com: attach from OneDrive, or upload and share a link
  • Apple Mail / iCloud: Mail Drop handles files up to 5 GB and keeps them available for 30 days
  • Any provider: Dropbox, WeTransfer or your company's file share

You could split a big archive into numbered parts and send one per email. That only works if the recipient knows to put every part together and has 7-Zip or a similar tool, so a link is almost always easier.

Files Email Refuses Even in a ZIP

Size isn't the only reason for a bounce. Gmail blocks executable file types such as .exe, .bat and .js, even inside a ZIP, and many company servers do the same. Password-protected ZIPs are often held back by corporate filters too, because their contents can't be scanned. If a ZIP is rejected despite being small, this is the likely cause, and a shared link is the workaround.

Summary

To compress files for email, zip them and aim for 15 MB or less. That leaves room for the 35% Base64 overhead and the recipient's limit. ZIP shrinks text and CSV dramatically, but not photos, video, PDFs or Office files. For those, use a PDF compressor or image compressor first, or send a link.

Related Tools

Pertanyaan yang Sering Diajukan

What is the maximum email attachment size?

Gmail allows 25 MB per message when sending and 50 MB when receiving. Outlook.com and Yahoo Mail allow 25 MB per message, iCloud Mail 20 MB, and the Outlook desktop app with a POP or IMAP account 20 MB by default. Work mailboxes are set by the administrator. The recipient's limit applies too.

Why does my 20 MB file bounce from a 25 MB limit?

Email encodes attachments as text before sending, which makes them bigger. We measured 35 percent growth, so 20 MB of files becomes about 27 MB in transit. Keep attachments to about 18 MB for a 25 MB limit, or 15 MB to be safe everywhere.

How much smaller will my files be after zipping?

It depends on the file type. In our tests a CSV export shrank by 72 percent and an uncompressed BMP by 99 percent, while PDFs shrank by 9 percent, Word documents by 8 percent, and a JPG photo and an MP4 video by less than 1 percent. Already-compressed files don't shrink again.

Should I use ZIP or 7Z for email attachments?

ZIP. Every computer and phone opens it without extra software, while a 7Z makes the recipient install an app first. 7Z saves noticeable space only on text-heavy files, not on the photos and PDFs that usually push an email over the limit.

How do I zip files on Windows and Mac?

On Windows, select the files, right-click and choose Compress to ZIP File, or Send to Compressed (zipped) folder on Windows 10. On a Mac, select the files in Finder, Control-click and choose Compress. Both create a ZIP next to the originals.

My ZIP is still too large to email. What do I do?

Shrink the big files themselves, for example with a PDF or image compressor, or send a link. Gmail offers a Google Drive link above 25 MB, Outlook.com can share from OneDrive, and iCloud Mail Drop sends files up to 5 GB as a link that stays available for 30 days.

Can I compress a PDF to make it smaller for email?

Yes, but not with ZIP, which saved only 11 percent on our PDFs. A PDF compressor re-encodes the images inside the file, which works best on scanned and image-heavy PDFs. Lower the quality setting until the file fits and keep the original.

Why was my ZIP attachment blocked even though it's small?

Gmail and many company mail servers block executable file types such as .exe, .bat and .js even inside a ZIP. Password-protected ZIPs are also often held back because their contents can't be scanned. Share the file through a cloud link instead.