NoUpload

How to create a ZIP that opens everywhere

ZIP is for compatibility, not maximum ratio. Deflate the text, store the already-compressed, and test one archive before sending a batch.

NoUpload engineering teamLast updated

Key facts

  • Deflate level 6 is the default; level 9 is typically only 1–3% smaller and several times slower.
  • Already-compressed formats such as JPEG, PDF, DOCX and MP4 are stored with level 0 instead of being deflated.
  • The creator preserves folder paths, renames duplicates to name (2), caps the input at 1 GB and omits empty directories.

ZIP is the only archive format that opens without installing anything on Windows, macOS, Linux, iOS and Android. That compatibility is its whole value. If maximum compression were the goal, 7z would win; if the recipient is a person with a locked-down work laptop, ZIP is the format that does not generate a support conversation.

The ZIP creator builds archives in the tab. A few of its decisions are worth understanding, because they explain why the result is sometimes much smaller than the inputs and sometimes barely smaller at all.

What gets compressed, and what does not

Deflate shrinks redundancy. It does well on:

  • Text: .txt, .csv, .json, .xml, .md, source code, logs.
  • Uncompressed images: .bmp, .tiff, raw camera files.
  • Databases and dumps that are not already compressed.

It does almost nothing for files that are already compressed, because there is no redundancy left to find:

  • JPEG, PNG, WebP, AVIF, HEIC
  • PDF (usually), DOCX, XLSX, PPTX (they are ZIP containers already)
  • MP3, AAC, FLAC, MP4, MOV, MKV
  • ZIP, 7z, RAR, GZ, XZ

The creator recognises those extensions and stores them with compression level 0 instead of spending CPU to make them marginally larger. Ten phone photos therefore produce a ZIP roughly the size of the photos plus a few kilobytes of headers. That is correct behaviour, not a failure — but it is why “zip the photos to make them smaller” never works. Resize or re-encode them first; see the image compression guide.

Store versus maximum

The toggle chooses deflate level 6 or 9 for the files that are worth compressing:

Level Speed Size on text
6 (default) Fast The sensible baseline
9 (maximum) Several times slower Typically 1–3% smaller

Level 9 is worth it for a one-off archive of logs you will keep; it is not worth it for a folder of mixed documents where most of the bytes are already-compressed images. The difference is small, and the CPU time is not.

“Store” is not a separate mode here, but the effect appears per file: pre-compressed entries are stored automatically.

Folders, duplicates and paths

Dropping a folder preserves its internal structure: project/src/main.ts stays at that path inside the archive. Two details:

  • Empty folders are not included. ZIP can represent them, but an archive is usually a delivery mechanism for files; an empty directory carries no data. Recreate it after extraction if it matters.
  • Duplicate names are renamed, not overwritten. Dropping report.pdf twice produces report.pdf and report (2).pdf. Silently replacing the first file is how archives lose data.

Paths are sanitised on the way in: backslashes become slashes, .. segments are removed and characters that break Windows downloads (< > : " | ? *) are replaced. That prevents an archive from writing outside the folder it is extracted into, and it prevents a file that Windows cannot create.

Folder traversal stops at 24 levels deep. That is far beyond normal project structure and prevents a symlink loop from turning a drop into an infinite walk.

Limits

The total input size is capped at 1 GB, and the archive is assembled in memory before download. The limit is about the tab, not a server: a 900 MB archive may work on a desktop and fail on a phone with less free memory.

If the files are larger than that, ZIP is the wrong tool for a browser tab. Use a command-line archiver on the machine where the files live, or split the job into several archives.

Encryption

Turning on the password field writes an AES-256 ZIP. That is the strong scheme, and the one to use — but it is also the one older Windows builds may refuse to open. The password guide covers compatibility, what stays visible, and how to send the password separately.

A ZIP is not a secure container by default. Without a password, anyone who intercepts it can read everything.

What ZIP cannot do

  • It does not preserve permissions or symlinks the way TAR does. If you are archiving a Linux project, TAR is the correct format.
  • It does not deduplicate. Two identical files are stored twice.
  • It does not repair. A truncated ZIP is truncated; there is no recovery record unless the tool that made it added one.
  • It does not replace a backup. A ZIP on the same disk as the originals is a copy, not a backup.

Before you send it

  1. Open the finished archive once and confirm the file count.
  2. Check that the names are readable — the creator writes UTF-8, so they should be.
  3. If encrypted, test the password on a second device.
  4. If the recipient is on an old Windows machine, prefer a plain ZIP without AES, and send the password-protected version only when the contents require it.

The archive is built locally with zip.js in a Web Worker. The files are read from disk and the ZIP is written back; nothing is uploaded, and no account is involved.

Questions this guide answers

Why is my ZIP file barely smaller than the originals?

Most of the bytes were already compressed. JPEG, PNG, PDF, DOCX and MP4 have no redundancy left for deflate to remove, so the creator stores them at level 0. A ZIP of photos is roughly the size of the photos; resize or re-encode them first if size matters.

What compression level should I use for ZIP?

Level 6, the default, for almost everything: it is fast and within a few percent of the best result. Level 9 is worth it only for a one-off archive of text or logs where CPU time does not matter.

Does a ZIP preserve folders and empty directories?

Folder paths are preserved for files. Empty directories are skipped, because an archive is normally a delivery mechanism for files; recreate them after extraction if they matter.

Sources