# ZIP File

> One file that packs many files and makes them smaller. Unzip it to get them all back.

**Field:** Software Development  
**Category:** Files & Formats  
**Also known as:** ZIP Archive, .zip File, Zipped Folder, Compressed Folder

## Think of it like

Think of it like a suitcase. You pack many things into one bag and squeeze it shut.

## Definition

A ZIP file packs many files and folders into one file. It often squeezes them too, which is called compression. Nothing is lost, and unzipping gives back the exact files. Text shrinks a lot. Photos and videos barely shrink, because they are already squeezed. Windows and macOS can open ZIP files with no extra app.

## Example

Emma has 40 report files to email. She zips them into reports.zip and attaches just one file.

## Example code

```console
$ zip notes.zip notes.txt
  adding: notes.txt (deflated 94%)
```

This text file shrank by 94 percent when it went into the ZIP.

## Why it matters

One small file is easier to send, upload or keep than hundreds of loose ones.

## Common mistake

Zipping photos to make them much smaller. They are already squeezed, so the ZIP is about the same size.

## Three principles

- **Many into one.** A whole folder becomes one file.
- **Nothing lost.** Unzip it and every byte comes back.
- **Text shrinks most.** Pictures and video barely shrink.

## Related terms

- [Binary File](https://learn.benibix.com/term/development/binary-file)
- [File Format](https://learn.benibix.com/term/development/file-format)
- [Directory](https://learn.benibix.com/term/development/directory)
- [Image Compression](https://learn.benibix.com/term/design/image-compression)

## Taught in

- [Plain Text and Binary Files](https://learn.benibix.com/learn/development-formats/plain-text-and-binary-files): File Formats, 2/11

![Three files on the left, notes.txt, plan.txt and photo.jpg, go through an arrow marked zip into one box called files.zip, then through an arrow marked unzip back into the same three files. Under it, two bars: notes.txt alone at 4,011 bytes, and the same file zipped at 394 bytes, a much shorter bar.](https://learn.benibix.com/diagrams/dev2-zip-file.svg)

---

Source: https://learn.benibix.com/term/development/zip-file
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
