What is a ZIP file?
Definition
A ZIP file is one file that holds many files and folders, usually compressed to take less space. It lets you send a whole folder as a single download, and the person who gets it unzips it to see the files.
Also called: Zip archive, .zip file, Compressed folder, Zipped folder
What is the difference between compressing and archiving?
Archiving bundles many files into one, and compressing makes data smaller; a ZIP does both. Each file inside is packed and, by default, shrunk on its own, so you can take out one file without unpacking the rest. A .docx, .xlsx or .pptx file is a ZIP under the hood.
How much a ZIP saves depends on what is inside. Text, spreadsheets and code often shrink a lot. Photos, videos and music are already compressed, so zipping them saves little and rarely gets a big file under an attachment limit. Then the ZIP is useful as a bundle, not as a way to make files smaller.
Why share a big folder as one ZIP link?
One link is easier to send and to receive than dozens of files. The folder structure stays intact, nothing gets missed, and the recipient saves everything with one download. Upload the ZIP to a file host and you get a download page or a direct download link you can paste anywhere. It works well for:
- Project files, such as a design package with fonts and assets.
- Code, data exports or a built website folder, which some hosts can publish as a static site.
- Many small files that would be slow to download one by one.
- Anything where the folder layout matters.
When is a ZIP the wrong choice?
When people need to look before they download. A browser can't preview what is inside a ZIP, so the recipient has to download and unzip it first, which is awkward on a phone. For photos or a handful of documents, an album or separate links let people view each file right away.
Be careful with ZIPs from strangers, too. An archive can hide a program behind a harmless-looking name, so only open the ones you expect, and let your antivirus check them first.
| Option | What the recipient gets | Best for |
|---|---|---|
| One ZIP link | One download, folders kept | Project files, code, many small files |
| Album link | A gallery to view, plus a download of everything | Photos and files people want to look at |
| Separate links | One link per file | A few files people open on their own |
ZIP file: common questions
Does zipping a file make it smaller?
Text, documents and code usually get smaller. Photos, videos and music barely change, because they are already compressed.
How do I open a ZIP file on my phone?
Tap it in the Files app on an iPhone or in your downloads on Android, and it unzips. Most phones can do this without an extra app.
Can a ZIP file have a password?
Yes. Most zip tools can encrypt the contents with a password, but the file names inside can often still be seen. For sharing, a password on the link itself is often simpler.
Is it safe to open a ZIP file?
The ZIP itself is harmless, but what is inside may not be. Only open archives you expected, and never run a program from one unless you trust the sender.
Is there a size limit for ZIP files?
The original ZIP format tops out at about 4 GB, and the ZIP64 extension lifts that limit. In practice, the limit that matters is the one your email or file host sets.
Related terms
- File transferFile transfer is moving a file from one person to another, usually once. Transfer services are built for big files and short-lived downloads, and the link typically expires after a few days.
- Attachment limitAn attachment limit is the biggest email a provider will send or accept, around 25 MB for most mainstream providers. It applies to the encoded message, so the usable file size is smaller, and bigger files should go as a link.
- Direct download linkA direct download link is a link that starts the download straight away instead of showing a preview page first. It suits installers, datasets and scripts that fetch a file, and is less useful when you want the reader to look before they save.
- Static siteA static site is a website made only of ready-made files (HTML, CSS, JavaScript and images) with no server code or database. You can publish one by uploading a ZIP of the folder.
- Magic bytesMagic bytes are the first few bytes of a file, which reveal its real format whatever its name says. A PDF starts with %PDF, for example, so checking them catches a program renamed to look like a document.
Go deeper
Updated