Skip to content
ZeroServer.tools

ZIP File Compressor

Compress files and folders into a .zip, and see what each file saved. Everything happens in this tab; nothing is uploaded.

Files and folders

Drop files or folders here, or click to choose filesAny kind of file. Folders keep their structure in the ZIP.

Archive

Compression
JPEG photos, videos, MP3s, Office files and other ZIPs are compressed already, so storing them is faster and the ZIP comes out about as small: a measured JPEG shrank 1.5% with Deflate.

The files are read and the ZIP written in this tab, by the page's own code. Nothing is uploaded.

A file compressor that zips in your browser

A ZIP shrinks each file with Deflate, the method every ZIP reader knows, and keeps the files and their folders in one archive, which the file managers of Windows and macOS open on their own. This page writes that archive in your browser tab: it reads each file as a stream, works out its CRC-32 checksum and its compressed form in one pass, and hands the browser the finished .zip to save. The files never leave your computer, and once the page has loaded it works with no network at all.

How much smaller a ZIP gets depends on what is in it. Measured on real files, Deflate made a CSV 67% smaller, plain text 71%, code 75%, JSON 78% and a log 94%. Files that are compressed already shrink little: a JPEG photo lost 1.5%, two PNGs 4% and 17%, and a Word template 1.6%, as an Office file is a ZIP itself. A PDF depends on how it was made; one of Firefox's own lost 67%. The page stores any file that Deflate would not make smaller as it is, and says which. To make photos themselves smaller, lower their quality with the image compressor before zipping them.

Every name is written in UTF-8 and flagged so: on Windows 10, File Explorer, PowerShell, 7-Zip and Python read names in Japanese, Greek, Hebrew and emoji as written. Before it compresses, the page names any file that Windows' own extractor cannot write as it is, such as one with a colon, so it can be renamed first. The archive holds up to 65,534 files and just under 4 GB, the limits of a ZIP without the ZIP64 extension. For a single text file meant for a server, Gzip is the usual format instead. To open a ZIP, use the ZIP file extractor.

What this tool is used for

  • Sending a folder of documents as one email attachment, with its subfolders kept, instead of attaching each file on its own.
  • Shrinking a large CSV export, a log or a JSON dump before attaching it somewhere with a size limit; text like that loses two thirds or more.
  • Zipping files on a work or school computer where installing 7-Zip or WinRAR is not allowed.
  • Bundling thousands of small files into one archive, which copies to a USB stick or a cloud folder as a single file.
  • Packing files named in Japanese, Greek or another script for someone on Windows, whose own extractor reads the page's UTF-8 names as written.
  • Archiving a project folder without the .DS_Store and Thumbs.db files that macOS and Windows leave in it.

How it works in practice

A worked example

An analyst has to email a project folder of exports and a photo, and wants to know whether zipping it will bring the folder under the mail's attachment limit.

Input
project/console.log          79,000 bytes
project/lock-screen.jpg   1,557,291 bytes
project/package-lock.json   387,234 bytes
project/registry.csv        150,902 bytes
Output
project.zip: 1.6 MB from 2.1 MB, 23% smaller
project/console.log          77.1 KB    4.0 KB   94%
project/lock-screen.jpg       1.5 MB    1.5 MB    1%
project/package-lock.json   378.2 KB   82.5 KB   78%
project/registry.csv        147.4 KB   47.8 KB   67%

The three text files lost between two thirds and 94% of their size, because a CSV, a JSON file and a log repeat the same words, keys and timestamps, which Deflate replaces with short references back. The photo lost 1.5%, which the page rounds down to 1%: a JPEG is compressed already, so Deflate finds almost nothing to repeat. The archive as a whole is therefore only 23% smaller, as the photo is nearly three quarters of the folder. To get under a limit, make the photo itself smaller first, with a lower quality or fewer pixels, and then zip.

The edge case that catches people

A file named on a Mac can carry a character Windows forbids, such as a colon or a question mark. Measured on Windows 10, a single such name made PowerShell's Expand-Archive extract nothing at all, not even the other files: it reported that the archive was empty, that the path held illegal characters, or that the path's format was not supported. File Explorer extracted the rest, turning a colon into an underscore and skipping the file with a question mark. The page names such files before it compresses, so they can be renamed first.

When not to use this tool

To make photos or videos smaller, a ZIP is the wrong tool: lower their quality or resolution instead. For one text file that a web server will send, Gzip is the usual format. For an archive of more than 4 GB or 65,534 files, use 7-Zip, which writes ZIP64. And to protect files with a password, use 7-Zip's AES-256 encryption, as a plain ZIP, such as this page writes, opens for anyone who has it.

Frequently Asked Questions

Does a ZIP make my files smaller?
It depends on what they hold. Measured on real files, Deflate made a CSV 67% smaller, plain text 71%, code 75%, JSON 78% and a log 94%, while a JPEG photo shrank 1.5% and two PNGs 4% and 17%, as those are compressed already. After it writes the archive, the page shows what each file saved.
Are my files uploaded anywhere?
No. The page reads each file in your browser tab, in pieces, and writes the ZIP there with its own JavaScript. Nothing is sent to a server, and once the page has loaded it works with no network at all. The finished archive is handed to your browser to save, like any download.
Can I zip a whole folder?
Yes. Drop the folder on the page, or use Choose a folder, and its files keep their paths in the ZIP, such as photos/2024/beach.jpg. A dropped folder keeps its empty folders too, as the folder picker lists only files. .DS_Store, Thumbs.db and desktop.ini are left out unless you untick that option.
Will the ZIP open on Windows?
Yes. On Windows 10, File Explorer, PowerShell's Expand-Archive and 7-Zip extracted the page's archives byte for byte, names in Japanese, Greek, Hebrew and emoji included, as each name is written in UTF-8 and flagged so. Info-ZIP's unzip 6.00 from Git for Windows garbled names past ASCII.
Why did some files not get any smaller?
Deflate shrinks data by finding repeats, and compressed data has few left: JPEG, PNG, MP3, video, Office files and other ZIPs. A measured Word template shrank 1.6%. When Deflate would not make a file smaller at all, the page stores it as it is, which every ZIP reader accepts, and says so.
How large can the archive be?
Up to 65,534 files and just under 4 GB, the limits of a ZIP without the ZIP64 extension; past them the page says so rather than write an archive readers would misread. It reads each file in pieces: while it zipped a 2.25 GB file in Chrome, the page's JavaScript memory stayed under 15 MB.
Why does the page warn about names Windows cannot extract?
Windows forbids < > : " | ? * and control characters in names, names ending in a dot or a space, device names such as CON, and names that differ only in case. Measured on Windows 10, one name with such a character, or a device name, made Expand-Archive extract nothing, and File Explorer skip or rename that file.

Common errors and gotchas

  • Zipping photos or videos to make them smaller. They are compressed already, and a measured JPEG shrank 1.5%; lower the photo's quality with an image compressor instead.
  • Putting a ZIP inside a ZIP to save more space. The inner archive is compressed already: a measured Java archive, which is a ZIP, shrank 6.9%.
  • Sending a file named on a Mac with a colon or a question mark to someone on Windows. Windows' own extractors refuse, skip or rename such names; rename the file first.
  • Expecting the folder picker to keep empty folders. Browsers list only a folder's files there; drop the folder on the page instead to keep its empty folders.
  • Taking a ZIP for a locked file. A plain ZIP has no password, so anyone who has it can open it; this page does not encrypt.

Related Encoders & Decoders tools

Private & free — this tool runs entirely in your browser.

IndieKit — Ship your Next.js startup in days.affiliate