
How to Zip a File on Windows, Mac, Linux, Android, iOS & Online
Most people compress files without thinking twice — until they’re trying to email a folder that’s 30MB over the limit, or wrestling with Linux command-line syntax they haven’t touched since college. This guide covers every major platform you might actually use, from the one-click shortcuts on your desktop to the apps living in your pocket.
Standard file extension: .zip · Gmail attachment limit: 25MB · Supported platforms: Windows, Mac, Linux, Android, iOS · Compression method: Lossless
Quick snapshot
- Exact performance gains vary by file type and hardware
- WinZip benchmarks may differ across OS versions
- ZIP: 1989 · TAR: 1979 · GZIP: 1992 · 7Z: 1999 · XZ: 2009
- TAR predates ZIP by a decade; formats co-exist rather than replace each other
- Zstandard gaining ground for multi-file backups but still niche
- Cloud-native formats may reduce local ZIP dependency over time
The following table summarizes key ZIP file characteristics and platform support across major operating systems.
| Label | Value |
|---|---|
| Definition | Archive format for compressing files |
| Native Windows tool | Compressed (zipped) folder |
| Mac shortcut | Compress from Finder |
| Gmail workaround | ZIP smaller files, use Google Drive for larger ones |
How do you create a zip file?
Every major operating system ships with built-in zipping tools — no download required. The steps differ slightly by platform, but the concept stays the same: select your files, trigger compression, get an archive.
On Windows
Open File Explorer, hold Ctrl and click to select multiple files (or click one to zip a single item). Right-click the selection, then choose Send to > Compressed (zipped) folder (Microsoft Support documentation). Windows names the archive after your first selected file by default — rename it after creation if needed.
The Windows native tool skips advanced encryption. For AES-256 protection, third-party apps like WinZip compression tool offer password-protected archives with stronger security.
On Mac
Control-click your file or folder in Finder, then select Compress (Business Insider computing guide). macOS creates a file named item.zip in the same location. For Terminal fans, running zip -r archive.zip folder/ gives you more control over output naming and compression level.
On Linux
Press Ctrl+Alt+T to open Terminal, navigate to your folder with cd, then run zip -r myarchive.zip foldername (Business Insider technology reference). Add the -9 flag for maximum compression or -e to encrypt with a password. For graphical Linux desktops, file managers like GNOME Files often include a right-click “Compress” option that wraps the zip command.
How to zip a file on Mac?
Beyond the standard Control-click flow, macOS offers both Finder-based and command-line approaches depending on your comfort level.
Using Finder
Select one or more items in Finder, then right-click (or Control-click) the selection and choose Compress. The resulting item.zip file appears in the same directory. If you compress a folder, the archive contains the folder itself — not just its contents. To compress just the folder’s contents, open the folder first.
Using Terminal
Running zip -r archive.zip ./myfolder from the parent directory creates a ZIP with the folder intact. Adding -9 boosts compression, while -e -9 archive.zip prompts for a password and applies high compression (WinZip file format guide).
Finder’s drag-and-drop simplicity works for quick tasks. Terminal adds granular control — compression level, password encryption, recursive archiving — that power users and sysadmins rely on daily.
How to zip a file Windows?
Windows File Explorer has included native ZIP support since XP. Here’s how to use it well.
Built-in method
Right-click any file or folder, then choose Send to > Compressed (zipped) folder (Microsoft Windows help center). That’s it — no extra software, no menus to navigate. Rename the output if you want something other than the default name.
Multiple files
Hold Ctrl while clicking each file you want included, right-click the group, and choose Send to > Compressed (zipped) folder. Windows bundles everything into a single archive. For better compression ratios or encryption, WinZip official site and Luxa archive comparison both offer free versions with stronger algorithms.
How to ZIP files and email them?
Email providers cap attachments, and ZIPs help you squeeze under those limits. But there’s a ceiling: Gmail blocks messages over 25MB.
Sending in Gmail
Compress your files to bring the total under 25MB, then attach normally. If compression alone doesn’t get you there, Gmail automatically prompts you to attach via Google Drive instead — the file lives in the cloud and the recipient gets a download link (Business Insider email guide).
Handling files over 25MB
Split large archives into multiple ZIPs under 25MB each, or upload the single archive to Google Drive, OneDrive, or Dropbox and share the cloud link (UK Copyright Service file handling advice). For files exceeding 2GiB, standard ZIP hits its structural limit — use 7-Zip or split tools to work around this.
Standard ZIP files top out at 2GiB per file by default. Archives larger than that — common with video or raw image collections — need tools like 7-Zip that support files up to 16 EB theoretically.
Is it better to zip or compress?
The right answer depends on what you’re doing and who needs to open the file.
ZIP vs general compression
ZIP offers fair compression, fast speed, and universal compatibility — every OS reads it natively (Luxa archive format analysis). 7Z delivers 30–70% better compression but at moderate-to-slow speeds and with less widespread support. TAR.gz preserves Unix file permissions better than ZIP, making it the standard for Linux system backups (Built In systems comparison). GZIP excels at single files and ships natively on Unix/Linux systems.
PDF compression vs ZIP
ZIP bundles multiple files into one archive but doesn’t reduce the size of individual PDFs. Tools like YouCompress PDF optimization service and Adobe Acrobat offer lossy or lossless PDF-specific compression that can shave 50–80% off a document’s size without archiving. ZIP a compressed PDF if you need to email multiple documents; compress the PDF first if a single oversized document is your problem.
Upsides
- Native support on Windows, macOS, Linux — no software install required
- Universal compatibility: recipients on any platform can extract without special tools
- Lossless compression preserves exact file content
- Supports AES-256 encryption for sensitive data
- Fast compression and extraction with low CPU overhead
- Streaming extraction lets you read archive contents without fully unpacking
Downsides
- 2GiB per-file size limit in standard ZIP — archives above that need split or 7Z tools
- Compression ratio trails 7Z by 30–70% on many file types
- No native GUI on Linux — Terminal required unless you install a file manager
- Doesn’t reduce individual file sizes like PDF-specific tools can
- Basic encryption only without third-party software
The comparison below breaks down how ZIP stacks up against other archive formats on key attributes like compression efficiency, speed, platform support, and security features.
| Format | Compression | Speed | Compatibility | Encryption | Release Year |
|---|---|---|---|---|---|
| ZIP | Fair | Fast | Universal | AES-256 basic | 1989 |
| 7Z | 30–70% better than ZIP | Moderate-slow | Limited (needs 7-Zip) | AES-256 strong | 1999 |
| TAR | No compression alone | Fast | Linux/macOS native | None | 1979 |
| TAR.GZ | Better than ZIP on Unix files | Moderate | Linux/macOS native | Depends on tool | 1992 |
| GZIP | Single-file optimized | Fast | Unix/Linux native | None | 1992 |
| XZ | Excellent, rivals 7Z | Slow | Linux native | None | 2009 |
How to zip a file on mobile
Android
Open your file manager (Samsung Users, look in My Files; Pixel owners, use Files by Google), long-press to select files, tap the three-dot menu, and choose Compress (Business Insider mobile guide). The WinZip Android app adds a dedicated ZIP button and cloud storage integration if you need more power.
iOS
Launch the Files app, navigate to your documents, tap the three dots, select Select, choose your files, then tap Compress (Business Insider iOS tutorial). iOS creates an Archive.zip in the same folder. For password-protected ZIPs on iPhone, third-party apps like WinZip are your best option.
Mobile ZIP tools work well for basic bundling, but they lack the compression-level controls and encryption options that desktop apps provide. Keep expectations modest for anything beyond quick file grouping.
How to zip a file online
Browser-based tools handle ZIP creation without installing anything — useful when you’re on a shared device or need a quick result fast.
Aspose ZIP web tool and ezyZip browser compressor both accept drag-and-drop uploads and generate downloadable ZIPs directly in the browser (Aspose online compression service). ezyZip also handles format conversions like TAR to ZIP and supports extraction for incoming archives.
Online tools process your files on third-party servers — even briefly. Don’t upload sensitive documents like tax returns, medical records, or corporate contracts. Use local software for anything that needs strict privacy.
“ZIP: Fair compression, Fast speed, Universal compatibility.”
— Luxa Archive Format Guide
“7Z offers 30–70% better compression than ZIP with AES-256 encryption.”
— Luxa Compression Comparison
For anyone who needs to share multiple files across platforms, ZIP remains the pragmatic default — universally readable, natively supported, and fast enough for daily use. The tradeoff is compression efficiency: if you’re archiving large media collections or need password protection with strong encryption, 7Z tools are worth the learning curve. For quick email attachments, the operating system’s built-in right-click option does the job without any extra software.
What are the downsides of ZIP files?
ZIP compression ratios trail newer formats by 30–70%, the standard format caps individual files at 2GiB, and built-in Windows and Mac tools don’t offer password-protected encryption without third-party software.
Can I put a PDF in a ZIP file?
Yes — ZIP archives bundle any file type, including PDFs. ZIPping a PDF doesn’t compress it further if it’s already compressed (like a scanned document), but for text-based PDFs, you’ll typically see 20–40% size reduction.
How do you convert a file to a ZIP file?
ZIP is an archive format, not a file format converter — you can’t “convert” a PDF into a ZIP the way you might convert a DOCX to PDF. Instead, you place the file inside a ZIP archive using the platform’s native compress option, and the archive becomes the container for your file.
How to zip a file on Linux?
Open Terminal with Ctrl+Alt+T, navigate to your directory, then run zip -r archive.zip folder/. Add -9 for maximum compression or -e for password encryption. GNOME Files and other desktop environments often include a right-click Compress option for users who prefer a GUI.
How to create a ZIP file on mobile?
On Android: use your file manager’s three-dot menu → Compress. On iOS: open the Files app, tap Select, choose files, then tap Compress. WinZip and Files by Google offer more features if the built-in tools feel limited.
How to zip a file on iPhone?
Open the Files app, tap the three dots on any folder, choose Select, highlight your files, then tap Compress. The archive appears in the same folder. For encrypted ZIPs, download WinZip from the App Store.
How can I send a ZIP file larger than 25MB?
Gmail and most email providers block attachments over 25MB. Upload the ZIP to Google Drive, OneDrive, or Dropbox, then share the cloud link with your recipient — they download at full speed without email restrictions.
Related reading: How to Check Oil · Full Synthetic Oil Change
help.2brightsparks.com, copyrightservice.co.uk, apyhub.com, peazip.github.io
Once you grasp ZIP file basics like compression mechanics and history, compressing files across platforms becomes straightforward.