Skip to content
tools.best

Browse all tools

ZIP Converter

Packs the files you choose into one ZIP archive with DEFLATE compression, built in your browser without uploading anything.

Runs in your browser. Your files are not uploaded. Sources: PKWARE ZIP specification, RFC 1951 Updated

You can choose several files at once. Folders are not supported.
Without compression the files are stored in the archive unchanged.

No files chosen yet.

What the ZIP converter does

It packs the files you choose into one ZIP archive and gives you the archive as a download. Everything happens in your browser: the files are read from your device, the archive is built in memory, and the download comes from memory. Nothing is sent to a server.

It creates archives only. It does not open, extract or repair ZIP files, and it does not convert a ZIP into another format.

ZIP compression: DEFLATE or stored

With Compress the files ticked, each file is compressed with DEFLATE, the method almost every ZIP tool uses, through the browser's built-in CompressionStream. The tool then compares the two sizes:

  • If the compressed data is smaller, it goes into the archive. The table shows the method as DEFLATE.
  • If it is not smaller, the file goes in unchanged. The table shows the method as Stored.

With the box unticked every file is stored unchanged. The same happens in a browser that has no CompressionStream support for raw DEFLATE; the tool tells you when that is the case.

How much a file shrinks depends on what is in it:

Kind of fileWhat to expect
Plain text, CSV, JSON, HTML, XML, SVG, source codeUsually much smaller
Uncompressed images and audio such as BMP and WAVSmaller, by an amount that depends on the content
JPEG, PNG, GIF, MP3, MP4, PDF, DOCX, XLSX, other ZIP filesLittle or no change, because they are already compressed

What is inside a ZIP file

The archive follows the published ZIP specification. For each file it holds:

  • a local file header, followed by the file's data;
  • an entry in the central directory at the end of the archive, which is the index that unzip tools read first;
  • a CRC-32 checksum of the original data, so an unzip tool can detect a damaged file (a short fingerprint, like the hashes of the hash generator, but built only to catch accidental damage);
  • the original and compressed sizes, and the file's last-modified time;
  • the file name in UTF-8, flagged as such, so accents and non-Latin scripts survive.

The archive ends with the end of central directory record. There is no encryption, no password and no archive comment.

We checked archives made by this code with three independent programs: Info-ZIP's unzip, ditto on macOS, and Python's zipfile module. All three returned every file byte for byte, including files with accented, Japanese and emoji names. We have not tested every unzip program.

How big is a ZIP file? A worked example

For each file the ZIP format adds a 30-byte local header and a 46-byte directory entry, each followed by the file name, and the archive ends with a 22-byte record.

archive size = data + files × 76 + 2 × (bytes in all file names) + 22

Take one file of 1,000 bytes called notes.txt, stored without compression. The name is 9 bytes long, so the archive is 1,000 + 76 + 18 + 22 = 1,116 bytes. With compression on, the 1,000 bytes of data are replaced by however many bytes DEFLATE needs for that file.

An image that is already compressed, such as a PNG from the QR code generator, is usually stored unchanged, so its archive is that file plus the headers. More file and format tools are under everyday tools.

Layout of a ZIP file holding notes.txt, 1,000 bytes stored: a 30-byte local file header, the 9-byte name, the data, a 46-byte central directory entry, the name again and a 22-byte end record, 1,116 bytes in all.
The file name is written twice, once before the data and once in the central directory.

ZIP converter limits: 4 GB and 65,534 files

  • Size. The tool writes the standard format without the ZIP64 extension. Each file and the finished archive must stay under 4 GB (4,294,967,295 bytes), and one archive can hold up to 65,534 files. It stops with a message if you go over.
  • Memory. The archive is built in memory, so very large files can be too much for a phone or an older computer. If that happens the tool reports that the archive could not be created.
  • Folders. Folders cannot be chosen, and all files sit at the top level of the archive. If two chosen files have the same name, the second is renamed, for example report (2).pdf.
  • Dates. ZIP stores the last-modified time in local time, in two-second steps, and cannot store a date before 1980.

ZIP Converter: FAQ

Are my files uploaded?
No. The browser reads the files you choose, builds the archive in memory and offers it as a download from memory. No file content or file name is sent to a server.
Why is the ZIP not smaller than my file?
Formats such as JPEG, PNG, MP4, MP3, PDF, DOCX and ZIP are already compressed, so DEFLATE finds little left to remove. When compressing a file would not make it smaller, the tool stores it unchanged. The archive is then slightly larger than the file because of the ZIP headers.
Is there a size limit?
The tool writes the standard ZIP format, without the ZIP64 extension. Each file and the whole archive must stay under 4 GB, and an archive can hold at most 65,534 files. In practice the limit is your device's memory, because the archive is built in memory before you download it.
Can it open a ZIP or convert a ZIP to another format?
No. This tool only creates ZIP archives. To open one, use the file manager on your computer or phone. Windows and macOS open ZIP files without extra software, and so do the file apps on current phones.
Can I protect the ZIP with a password?
No. The tool does not encrypt. Anyone who has the archive can open it.

Sources