Skip to content
Tech News
← Back to articles

Make ZIP files smaller with ZIP Shrinker

read original get WinZip Compression Software → more articles
Why This Matters

ZIP Shrinker offers a simple yet effective way to reduce ZIP file sizes by re-compressing entries with higher efficiency, removing unnecessary metadata, and eliminating redundant directory entries. This tool benefits both developers and consumers by optimizing storage and transfer times for a variety of compressed formats, including APKs and EPUBs. Its approach leverages advanced compression techniques and WebAssembly to deliver faster, more compact archives, making it a valuable addition to the file management toolkit.

Key Takeaways

Make ZIP files smaller with ZIP Shrinker

I built ZIP Shrinker, a little browser tool to shrink ZIP files. It also works with formats that are secretly ZIPs underneath, like APK, EPUB, JAR, and many more.

Try it out!

How does it work?

At a high level, this tool (1) re-compresses every file in the ZIP archive with higher compression (2) removes all metadata (3) removes entries for directories.

Re-compressing

ZIP files are typically compressed with an algorithm called Deflate.

There are a few tools that can re-compress Deflate data and make it smaller, usually by spending more time on the computation. I took one of these tools, libdeflate, and applied it to each compressed entry in the ZIP. I chose libdeflate because of its performance; alternatives like Zopfli can achieve marginally smaller results but take much longer.

I created libdeflate.js, a WebAssembly wrapper for libdeflate, as part of this work. (I always relish my time working with WASM!)

Removing metadata and directories

... continue reading